1 #
   2 # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   3 #
   4 # Licensed under the Apache License, Version 2.0 (the "License").
   5 # You may not use this file except in compliance with the License.
   6 # A copy of the License is located at
   7 #
   8 #  http://aws.amazon.com/apache2.0
   9 #
  10 # or in the "license" file accompanying this file. This file is distributed
  11 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12 # express or implied. See the License for the specific language governing
  13 # permissions and limitations under the License.
  14 #
  15 
  16 DIRS=$(wildcard */)
  17 SRCS=$(wildcard *.c)
  18 OBJS=$(SRCS:.c=.o)
  19 
  20 all: bin
  21         make -C tests
  22 
  23 include s2n.mk
  24 
  25 libs:
  26         make -C utils
  27         make -C error
  28         make -C stuffer
  29         make -C crypto
  30         make -C tls
  31         make -C lib
  32 
  33 bin: libs
  34         make -C bin
  35 
  36 indent:
  37         make -C tests indentsource
  38         make -C stuffer indentsource
  39         make -C crypto indentsource
  40         make -C utils indentsource
  41         make -C error indentsource
  42         make -C tls indentsource
  43         make -C bin indentsource
  44 
  45 pre_commit_check: all indent clean
  46 
  47 clean:
  48         make -C tests clean
  49         make -C stuffer decruft
  50         make -C crypto decruft
  51         make -C utils decruft
  52         make -C error decruft
  53         make -C tls decruft
  54         make -C bin decruft
  55         make -C lib decruft