Mercurial > dropbear
comparison demos/test/makefile @ 143:5d99163f7e32 libtomcrypt-orig
import of libtomcrypt 0.99
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Dec 2004 11:34:45 +0000 |
parents | 6362d3854bb4 |
children |
comparison
equal
deleted
inserted
replaced
15:6362d3854bb4 | 143:5d99163f7e32 |
---|---|
1 # make test harness, it is good. | 1 # make test harness, it is good. |
2 CFLAGS += -Wall -W -Os -I../../ -I./ | 2 CFLAGS += -Wall -W -Os -I../../ -I./ |
3 | |
4 # add -g3 for ccmalloc debugging | |
5 #CFLAGS += -g3 | |
6 | |
7 # if you're not debugging | |
8 CFLAGS += -fomit-frame-pointer | |
3 | 9 |
4 default: test | 10 default: test |
5 | 11 |
6 OBJECTS=test.o cipher_hash_test.o mac_test.o modes_test.o \ | 12 OBJECTS=test.o cipher_hash_test.o mac_test.o modes_test.o \ |
7 pkcs_1_test.o store_test.o rsa_test.o ecc_test.o dsa_test.c dh_tests.o | 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 | |
8 | 20 |
9 test: $(OBJECTS) | 21 test: $(OBJECTS) |
10 $(CC) $(OBJECTS) -ltomcrypt -o test | 22 $(CC) $(OBJECTS) /usr/lib/libtomcrypt.a $(CCMALLOC) -o test |
11 | 23 |
12 clean: | 24 clean: |
13 rm -f test *.o *.obj *.exe *~ | 25 rm -rf test *.o *.obj *.exe *~ .libs |