-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
107 lines (77 loc) · 2.38 KB
/
Makefile.in
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# Makefile for ciron
#
CC=gcc
AR=ar
.SUFFIXES : .o .c
.c.o:
$(CC) $(CFLAGS) -I ciron -o $*.o -c $<
CFLAGS= -std=c99 -pedantic -O2 -Wall -Iciron
LIBOPT=-lm -lcrypto
LIBOBJS=\
ciron/common.o \
ciron/crypto_openssl.o \
ciron/base64url.o \
ciron/seal.o \
OBJS=\
iron/iron.o \
LIB=ciron/libciron.a
$(LIB): $(LIBOBJS)
$(AR) rc $(LIB) $(LIBOBJS)
IRON=iron/iron
$(IRON): $(OBJS) $(LIB)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB) $(LIBOPT)
TESTOBJ=\
test/test_byte_to_hex.o \
test/test_fixed_time_equal.o \
test/test_base64url.o \
test/test_crypto.o \
test/test_keygen.o \
test/test_encrypt.o \
test/test_seal.o \
test/test_calc.o \
$(TEST): $(TO) $(LIB)
$(CC) $(CFLAGS) -Itest -o $@ $(TO) $(LIB) $(LIBOPT)
buildtest: $(LIB) $(TESTOBJ)
$(CC) $(CFLAGS) -Itest -o test/test_byte_to_hex test/test_byte_to_hex.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_fixed_time_equal test/test_fixed_time_equal.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_base64url test/test_base64url.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_crypto test/test_crypto.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_keygen test/test_keygen.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_encrypt test/test_encrypt.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_seal test/test_seal.o $(LIB) $(LIBOPT)
$(CC) $(CFLAGS) -Itest -o test/test_calc test/test_calc.o $(LIB) $(LIBOPT)
test: buildtest
test/test_byte_to_hex
test/test_fixed_time_equal
test/test_base64url
test/test_crypto
test/test_keygen
test/test_encrypt
test/test_seal
test/test_calc
cleantest:
rm -f test/test_byte_to_hex; rm -f test/test_byte_to_hex.o
rm -f test/test_fixed_time_equal; rm -f test/test_fixed_time_equal.o
rm -f test/test_base64url; rm -f test/test_base64url.o
rm -f test/test_crypto; rm -f test/test_crypto.o
rm -f test/test_keygen; rm -f test/test_keygen.o
rm -f test/test_encrypt; rm -f test/test_encrypt.o
rm -f test/test_seal; rm -f test/test_seal.o
rm -f test/test_calc; rm -f test/test_calc.o
all: $(LIB) $(IRON)
install:
cp ciron/ciron.h /usr/local/include
cp ciron/libciron.a /usr/local/lib
cp iron/iron /usr/local/bin
clean: cleantest
rm -f core; \
rm -f gmon.out; \
rm -f $(OBJS); \
rm -f $(LIBOBJS); \
rm -f $(LIB); \
rm -f $(IRON); \
distclean: clean
rm -f config.h;
rm -f config.status config.cache config.log Makefile;
rm -rf autom4te.cache