Debian Codegraph @

crt/s2n/lib/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 OBJS = $(wildcard ../utils/*.o ../stuffer/*.o ../tls/*.o ../tls/*/*.o ../iana/*.o ../crypto/*.o ../error/*.o)
17
18 .PHONY : all
19 all: libs2n.a libs2n.so libs2n.dylib
20
21 include ../s2n.mk
22
23 libs2n.a: ${OBJS}
24 $(AR) cru libs2n.a ${OBJS}
25 $(RANLIB) libs2n.a
26
27 libs2n.so: ${OBJS}
28 ${CC} ${FUZZCOV_FLAGS} -shared -o libs2n.so ${OBJS} ${LIBS} -L${LIBCRYPTO_ROOT}/lib ${CRYPTO_LIBS}
29
30 libs2n.dylib: ${OBJS}
31 test ! -f /usr/lib/libSystem.dylib || libtool -dynamic ${LIBS} -L${LIBCRYPTO_ROOT}/lib ${CRYPTO_LIBS} -o libs2n.dylib ${OBJS}
32
33 $(libdir):
34 @mkdir -p $(libdir)
35
36 install: libs2n.a libs2n.so $(libdir)
37 @cp libs2n.* $(libdir)
38 @cp ../api/s2n.h $(includedir)
39 @mkdir -p $(includedir)/s2n
40 @cp -r ../api/unstable $(includedir)/s2n
41
42 uninstall:
43 @rm -f $(libdir)/libs2n.*
44 @rm -f $(includedir)/s2n.h
45 @rm -rf $(includedir)/s2n/