diff 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
line wrap: on
line diff
--- a/demos/test/makefile	Tue Jun 15 14:07:21 2004 +0000
+++ b/demos/test/makefile	Sun Dec 19 11:34:45 2004 +0000
@@ -1,13 +1,25 @@
 # make test harness, it is good.
 CFLAGS += -Wall -W -Os -I../../ -I./
 
+# add -g3 for ccmalloc debugging 
+#CFLAGS += -g3
+
+# if you're not debugging
+CFLAGS += -fomit-frame-pointer
+
 default: test
 
 OBJECTS=test.o cipher_hash_test.o mac_test.o modes_test.o \
-pkcs_1_test.o store_test.o rsa_test.o ecc_test.o dsa_test.c dh_tests.o 
+pkcs_1_test.o store_test.o rsa_test.o ecc_test.o dsa_test.o dh_tests.o der_tests.o 
+
+#uncomment this to get heap checking [e.g. memory leaks].  Note 
+#that you *MUST* build libtomcrypt.a with -g3 enabled [and make install it]
+#
+#
+#CCMALLOC = -lccmalloc -ldl
 
 test: $(OBJECTS)
-	$(CC) $(OBJECTS) -ltomcrypt -o test
+	$(CC) $(OBJECTS) /usr/lib/libtomcrypt.a  $(CCMALLOC) -o test
 	
 clean:
-	rm -f test *.o *.obj *.exe *~	
+	rm -rf test *.o *.obj *.exe *~	.libs