15
|
1 # make test harness, it is good. |
|
2 CFLAGS += -Wall -W -Os -I../../ -I./ |
|
3 |
143
|
4 # add -g3 for ccmalloc debugging |
|
5 #CFLAGS += -g3 |
|
6 |
|
7 # if you're not debugging |
|
8 CFLAGS += -fomit-frame-pointer |
|
9 |
15
|
10 default: test |
|
11 |
|
12 OBJECTS=test.o cipher_hash_test.o mac_test.o modes_test.o \ |
143
|
13 pkcs_1_test.o store_test.o rsa_test.o ecc_test.o dsa_test.o dh_tests.o der_tests.o |
|
14 |
|
15 #uncomment this to get heap checking [e.g. memory leaks]. Note |
|
16 #that you *MUST* build libtomcrypt.a with -g3 enabled [and make install it] |
|
17 # |
|
18 # |
|
19 #CCMALLOC = -lccmalloc -ldl |
15
|
20 |
|
21 test: $(OBJECTS) |
143
|
22 $(CC) $(OBJECTS) /usr/lib/libtomcrypt.a $(CCMALLOC) -o test |
15
|
23 |
|
24 clean: |
143
|
25 rm -rf test *.o *.obj *.exe *~ .libs |