]> git.zerfleddert.de Git - proxmark3-svn/blob - common/mbedtls/Makefile
move from polarssl to mbedtls (#708)
[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 pkcs5.c \
33 pkcs12.c \
34 pkparse.c \
35 platform.c \
36 platform_util.c \
37 rsa.c \
38 rsa_internal.c \
39 sha1.c \
40 sha256.c \
41 sha512.c \
42 threading.c \
43 x509.c \
44 x509_crl.c \
45 x509_crt.c
46 mbedtls_LDFLAGS = \
47 -no-undefined \
48 -export-symbols-regex '^mbedtls_' \
49 -version-info 15:0:11
50
51
52 CFILES = $(filter %.c, $(mbedtls_SOURCES))
53 CMDOBJS = $(CFILES:%.c=%.o)
54 CLEAN = $(CMDOBJS)
55
56 CC= gcc
57 CFLAGS= -O2 -Wall -Wno-unused-variable -Wno-unused-function
58 LDFLAGS= $(SYSLDFLAGS) $(mbedtls_LDFLAGS)
59 LIBS= -lm $(SYSLIBS) $(MYLIBS)
60 DEFAULT_INCLUDES = -I. -I..
61 DEFS = -DHAVE_STDINT_H
62
63 AR= ar rcs
64 RANLIB= ranlib
65 RM= rm -f
66 TST= echo
67
68 SYSLDFLAGS=
69 SYSLIBS=
70
71 MYLIBS=
72 MYOBJS=
73
74 all: $(CMDOBJS)
75 $(AR) $(LIB_A) $(CMDOBJS)
76 $(RANLIB) $(LIB_A)
77
78 clean:
79 $(RM) $(CLEAN)
80 $(RM) $(LIB_A)
81
82 %.o: %.c
83 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(CFLAGS) -c -o $@ $< $(LIBS)
84
85 .PHONY: all clean
86
Impressum, Datenschutz