]> git.zerfleddert.de Git - proxmark3-svn/blob - common/mbedtls/Makefile
Merge branch 'master' into fix_iso15693_fpga
[proxmark3-svn] / common / mbedtls / Makefile
1
2 LIB_A = libmbedtls.a
3 mbedtls_SOURCES = \
4 aes.c \
5 asn1parse.c \
6 asn1write.c \
7 base64.c \
8 bignum.c \
9 ctr_drbg.c \
10 entropy_poll.c \
11 entropy.c \
12 error.c \
13 timing.c \
14 ecp.c \
15 ecp_curves.c \
16 certs.c \
17 camellia.c \
18 blowfish.c \
19 cipher_wrap.c \
20 cipher.c \
21 cmac.c \
22 des.c \
23 ecdsa.c \
24 md.c \
25 md_wrap.c \
26 md5.c \
27 oid.c \
28 pem.c \
29 arc4.c \
30 pk.c \
31 pk_wrap.c \
32 pkwrite.c \
33 pkcs5.c \
34 pkcs12.c \
35 pkparse.c \
36 platform.c \
37 platform_util.c \
38 rsa.c \
39 rsa_internal.c \
40 sha1.c \
41 sha256.c \
42 sha512.c \
43 threading.c \
44 x509.c \
45 x509_crl.c \
46 x509_crt.c
47 mbedtls_LDFLAGS = \
48 -no-undefined \
49 -export-symbols-regex '^mbedtls_' \
50 -version-info 15:0:11
51
52
53 CFILES = $(filter %.c, $(mbedtls_SOURCES))
54 CMDOBJS = $(CFILES:%.c=%.o)
55 CLEAN = $(CMDOBJS)
56
57 CC= gcc
58 CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function
59 LDFLAGS= $(SYSLDFLAGS) $(mbedtls_LDFLAGS)
60 LIBS= -lm $(SYSLIBS) $(MYLIBS)
61 DEFAULT_INCLUDES = -I. -I..
62 DEFS = -DHAVE_STDINT_H
63
64 AR= ar rcs
65 RANLIB= ranlib
66 RM= rm -f
67 TST= echo
68
69 SYSLDFLAGS=
70 SYSLIBS=
71
72 MYLIBS=
73 MYOBJS=
74
75 all: $(CMDOBJS)
76 $(AR) $(LIB_A) $(CMDOBJS)
77 $(RANLIB) $(LIB_A)
78
79 clean:
80 $(RM) $(CLEAN)
81 $(RM) $(LIB_A)
82
83 %.o: %.c
84 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
85
86 .PHONY: all clean
87
Impressum, Datenschutz