forked from cisco/libacvp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.murl
58 lines (50 loc) · 1.43 KB
/
Makefile.murl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CC = gcc
CFLAGS+=-g -DUSE_MURL -O0 -fPIC -Wall
LDFLAGS+=-Lmurl
INCDIRS+=-I. -Isrc
SOURCES= src/acvp.c \
src/acvp_build_register.c \
src/acvp_capabilities.c \
src/acvp_aes.c \
src/acvp_des.c \
src/acvp_hash.c \
src/acvp_drbg.c \
src/acvp_transport.c \
src/acvp_util.c \
src/parson.c \
src/acvp_hmac.c \
src/acvp_cmac.c \
src/acvp_rsa_keygen.c \
src/acvp_rsa_sig.c \
src/acvp_dsa.c \
src/acvp_kdf135_tls.c \
src/acvp_kdf135_snmp.c \
src/acvp_kdf135_ssh.c \
src/acvp_kdf135_srtp.c \
src/acvp_kdf135_ikev2.c \
src/acvp_kdf135_ikev1.c \
src/acvp_kdf135_x963.c \
src/acvp_kdf135_tpm.c \
src/acvp_kdf108.c \
src/acvp_kas_ecc.c \
src/acvp_kas_ffc.c \
src/acvp_ecdsa.c
OBJECTS=$(SOURCES:.c=.o)
all: libacvp.a acvp_app
.PHONY: test testcpp
libacvp.a: $(OBJECTS)
ar rcs libacvp.a $(OBJECTS)
.c.o:
$(CC) $(INCDIRS) $(CFLAGS) -c $< -o $@
libacvp.so: $(OBJECTS)
$(CC) $(INCDIRS) $(CFLAGS) -shared -Wl,-soname,libacvp.so.1.0.0 -o libacvp.so.1.0.0 $(OBJECTS)
ln -fs libacvp.so.1.0.0 libacvp.so
acvp_app: app/app_main.c libacvp.a
$(CC) $(INCDIRS) $(CFLAGS) -o $@ app/app_main.c -L. $(LDFLAGS) -lacvp -lssl -lcrypto -lmurl -ldl
clean:
rm -f *.[ao]
rm -f src/*.[ao]
rm -f app/*.[ao]
rm -f libacvp.so.1.0.0
rm -f acvp_app
rm -f testgcm