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