Debian Codegraph @

crt/s2n/tls/Makefile

raw symbols SCIP
1 #
2 # Copyright 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 SRCS=$(wildcard *.c)
17 OBJS=$(SRCS:.c=.o)
18 SUB_BUILDS = $(patsubst %/Makefile, %, $(wildcard */Makefile))
19
20 BITCODE_DIR?=../tests/saw/bitcode/
21
22 BCS_1=s2n_handshake_io.bc s2n_handshake_type.bc s2n_connection.bc s2n_kex.bc \
23 s2n_tls13.bc s2n_quic_support.bc s2n_tls13_key_schedule.bc
24 BCS=$(addprefix $(BITCODE_DIR), $(BCS_1))
25
26 .PHONY : all
27 all: $(OBJS)
28 $(foreach subfolder, $(SUB_BUILDS), $(MAKE) -C $(subfolder);)
29
30 .PHONY : bc
31 bc: $(BCS)
32 $(foreach subfolder, $(SUB_BUILDS), $(MAKE) -C $(subfolder) bc;)
33
34 .PHONY : run-lcov
35 run-lcov: lcov
36 $(foreach subfolder, $(SUB_BUILDS), $(MAKE) -C $(subfolder) lcov;)
37
38 .PHONY : indent
39 indent: indentsource
40 $(foreach subfolder, $(SUB_BUILDS), ${MAKE} -C $(subfolder) indentsource;)
41
42 .PHONY : clean
43 clean: decruft
44 $(foreach subfolder, $(SUB_BUILDS), ${MAKE} -C $(subfolder) decruft;)
45
46 include ../s2n.mk