Changeset 600
- Timestamp:
- 08/26/08 15:41:00
- Files:
-
- openpgpsdk/trunk/Makefile (modified) (3 diffs)
- openpgpsdk/trunk/configure (modified) (2 diffs)
- openpgpsdk/trunk/include/openpgpsdk/Makefile (modified) (1 diff)
- openpgpsdk/trunk/src/app/Makefile.template (modified) (2 diffs)
- openpgpsdk/trunk/tests/Makefile.template (modified) (3 diffs)
- openpgpsdk/trunk/tests/tests.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/Makefile
r593 r600 12 12 default: 13 13 set -e; for d in $(SUBDIRS); do \ 14 $(MAKE) -w -C $$d || exit 1;\14 cd $$d; $(MAKE) -w || exit 1; cd ..;\ 15 15 done 16 16 … … 30 30 rm -rf oink-links 31 31 -rm lib/* 32 # reinstall the CUnit libs33 (cd CUnit-2.1-0; make install)34 32 35 33 Makefiles: … … 48 46 cd doc && $(MAKE) 49 47 50 cunit:51 if [ ! -d CUnit-2.1-0 ]; then \52 gunzip CUnit-2.1-0-src.tar.gz; \53 tar xvf CUnit-2.1-0-src.tar; \54 (cd CUnit-2.1-0 && ./configure --prefix $(PWD) && make && make install); \55 fi48 #cunit: 49 # if [ ! -d CUnit-2.1-0 ]; then \ 50 # gunzip CUnit-2.1-0-src.tar.gz; \ 51 # tar xvf CUnit-2.1-0-src.tar; \ 52 # (cd CUnit-2.1-0 && ./configure --prefix $(PWD) && make && make install); \ 53 # fi 56 54 57 55 openpgpsdk/trunk/configure
r595 r600 48 48 $Subst{INCLUDES}.=" -I $loc"; 49 49 $Subst{ZLIB}="$loc/libz.a"; 50 }, 51 '--with-cunit=' => sub { 52 my $loc=shift; 53 $Subst{INCLUDES}.=" -I $loc/include"; 54 $Subst{CUNITLIB}="$loc/lib/libcunit.a"; 55 }, 56 '--with-otherlibs=' => sub { 57 my $loc=shift; 58 $Subst{OTHERLIBS}="$loc"; 50 59 }, 51 60 '--log=' => sub { … … 138 147 fileSubst('include/openpgpsdk/configure.h','/*','*/'); 139 148 140 print "make cunit\n";141 system('make cunit') == 0 || exit;142 149 print "make packet-show-cast.h\n"; 143 150 system('cd include/openpgpsdk; make packet-show-cast.h') == 0 || exit; openpgpsdk/trunk/include/openpgpsdk/Makefile
r579 r600 2 2 3 3 top: 4 $(MAKE) -C ../..4 cd ../..; $(MAKE) 5 5 6 6 headers: packet-show-cast.h openpgpsdk/trunk/src/app/Makefile.template
r579 r600 4 4 5 5 CFLAGS=-Wall -Werror -g $(DM_FLAGS) -I../../include %INCLUDES% %CFLAGS% -fPIC 6 # pickup _local.h headers from advanced directory7 CFLAGS+=-I../advanced8 6 9 LDFLAGS=-g 7 LDFLAGS=-g 10 8 LIBDEPS=../../lib/libops.a 11 LIBS=$(LIBDEPS) %CRYPTO_LIBS% -lz -lbz2$(DM_LIB)9 LIBS=$(LIBDEPS) %CRYPTO_LIBS% %ZLIB% %OTHERLIBS% $(DM_LIB) 12 10 EXES=openpgp 13 11 … … 15 13 16 14 headers: 17 $(MAKE) -w -S -C ../../include/openpgpsdk headers15 (cd ../../include/openpgpsdk; $(MAKE) -w headers) 18 16 19 17 $(LIBDEPS): 20 $(MAKE) -w -S -C ../ lib18 (cd ..; $(MAKE) -w lib) 21 19 22 20 openpgp: openpgp.o $(LIBDEPS) openpgpsdk/trunk/tests/Makefile.template
r567 r600 3 3 CC=%CC% 4 4 5 CUNIT_LIB=../lib/libcunit.a6 CUNIT_INC=../include/CUnit7 8 9 5 CFLAGS=-Wall -Werror -g $(DM_FLAGS) -I../include %INCLUDES% %CFLAGS% 10 6 LDFLAGS=-g %CFLAGS% 11 7 LIBDEPS=../lib/libops.a 12 LIBS=$(LIBDEPS) %CRYPTO_LIBS% %ZLIB% $(DM_LIB) $(CUNIT_LIB)8 LIBS=$(LIBDEPS) %CRYPTO_LIBS% %ZLIB% %CUNITLIB% %OTHERLIBS% $(DM_LIB) 13 9 14 10 COMMONTESTSRC= test_packet_types.c \ … … 25 21 all: Makefile .depend tests 26 22 27 tests: $( CUNIT_LIB) $(TESTOBJ) $(COMMONTESTOBJ) $(LIBDEPS)23 tests: $(TESTOBJ) $(COMMONTESTOBJ) $(LIBDEPS) 28 24 $(CC) $(LDFLAGS) -o tests $(TESTOBJ) $(COMMONTESTOBJ) $(LIBS) 29 25 … … 33 29 rm -f TAGS 34 30 35 .depend: *.[ch] ../include/openpgpsdk/*.h $(CUNIT_INC)31 .depend: *.[ch] ../include/openpgpsdk/*.h 36 32 $(CC) $(CFLAGS) -E -M *.c > .depend 37 33 openpgpsdk/trunk/tests/tests.c
r573 r600 46 46 } 47 47 48 //#ifdef XXX49 48 if (NULL == suite_crypto()) 50 49 { … … 73 72 return CU_get_error(); 74 73 } 75 //#endif76 74 77 75 if (NULL == suite_rsa_signature()) … … 81 79 return CU_get_error(); 82 80 } 83 //#ifdef XXX 81 84 82 if (NULL == suite_rsa_verify()) 85 83 { … … 102 100 return CU_get_error(); 103 101 } 104 //#endif105 102 106 103 // Run tests
