Changeset 127
- Timestamp:
- 05/16/05 17:17:07
- Files:
-
- openpgpsdk/trunk/Makefile (modified) (1 diff)
- openpgpsdk/trunk/configure (modified) (3 diffs)
- openpgpsdk/trunk/examples/Makefile.template (modified) (2 diffs)
- openpgpsdk/trunk/examples/configure.h.template (deleted)
- openpgpsdk/trunk/include/configure.h.template (moved) (moved from openpgpsdk/trunk/src/configure.h.template)
- openpgpsdk/trunk/ref/draft-ietf-openpgp-rfc2440bis-12-comments.txt (modified) (1 diff)
- openpgpsdk/trunk/src/Makefile.template (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/Makefile
r125 r127 7 7 SUBDIRS=src examples 8 8 9 CONFIGURE=$(PWD)/configure 9 all: default include/configure.h 10 10 11 default: Makefiles all 12 13 Makefiles: 11 default: 14 12 @for d in $(SUBDIRS); do \ 15 (cd $$d; make CONFIGURE=$(CONFIGURE) Makefile); \13 (cd $$d; echo "+++ make in $$d"; make; echo "--- $$d"); \ 16 14 done 17 15 18 all: 19 @for d in $(SUBDIRS); do \ 20 (cd $$d; make all); \ 21 done 16 include/configure.h: include/configure.h.template configure 17 echo re-run configure 22 18 23 19 force_depend: 24 20 @for d in $(SUBDIRS); do \ 25 (cd $$d; make force_depend); \21 (cd $$d; echo "+++ make force_depend in $$d"; make force_depend ; echo "--- $$d"); \ 26 22 done 27 23 28 24 clean: 29 25 @for d in $(SUBDIRS); do \ 30 (cd $$d; make clean); \26 (cd $$d; echo "+++ make clean in $$d"; make clean; echo "--- $$d"); \ 31 27 done 32 28 openpgpsdk/trunk/configure
r120 r127 50 50 fixSubst(); 51 51 52 open(D,'>.depend') || croak "Can't create .depend";53 c lose D;52 create('src/.depend'); 53 create('examples/.depend'); 54 54 55 fileSubst('Makefile','#',''); 56 fileSubst('configure.h','/*','*/'); 55 fileSubst('src/Makefile','#',''); 56 fileSubst('examples/Makefile','#',''); 57 fileSubst('include/configure.h','/*','*/'); 57 58 59 print "make clean\n"; 58 60 system 'make clean' || exit; 61 print "make force_depend\n"; 59 62 system 'make force_depend' || exit; 60 63 … … 120 123 121 124 open(T,"$file.template") || croak "Can't open $file.template: $!"; 125 unlink $file; 122 126 open(M,">$file") || croak "Can't create $file: $!"; 123 127 … … 139 143 } 140 144 } 145 146 sub create { 147 my $file=shift; 148 149 print "Creating $file\n"; 150 open(D,">$file") || croak "Can't create $file"; 151 close D; 152 } 153 openpgpsdk/trunk/examples/Makefile.template
r122 r127 5 5 CFLAGS=-Wall -Werror -g $(DM_FLAGS) -I../include %INCLUDES% 6 6 LDFLAGS=-g 7 LIBS=../src/libops.a -lcrypto -lz $(DM_LIB) 7 LIBDEPS=../src/libops.a 8 LIBS=$(LIBDEPS) -lcrypto -lz $(DM_LIB) 8 9 9 10 all: Makefile .depend packet-dump 10 11 11 packet-dump: packet-dump.o ../src/libops.a12 packet-dump: packet-dump.o $(LIBDEPS) 12 13 $(CC) $(LDFLAGS) -o packet-dump packet-dump.o $(LIBS) 13 14 … … 26 27 $(CC) $(CFLAGS) -E -MM *.c > .depend 27 28 28 Makefile: Makefile.template $(CONFIGURE)29 Makefile: Makefile.template ../configure 29 30 echo Makefile is older than templates, rerun configure. 30 31 exit 1 openpgpsdk/trunk/ref/draft-ietf-openpgp-rfc2440bis-12-comments.txt
r52 r127 38 38 "The concatenation of the data to be signed, the signature type and 39 39 creation time from the signature packet (5 additional octets) is hashed." 40 41 In 5.9: 42 43 " - File name as a string (one-octet length, followed by file name), 44 if the encrypted data should be saved as a file." 45 46 but no mention of what if it shouldn't be saved as a file. 0 length, 47 perhaps? 48 49 Then: 50 51 " - A four-octet number that indicates the modification date of the 52 file, or the creation time of the packet, or a zero that 53 indicates the present time." 54 55 I would _guess_ that it means modification date of the file if there's 56 a filename, the creation time if there isn't. I have no idea what zero 57 is supposed to mean. Nothing, would be the obvious interpretation - 58 "the present time" is nonsensical. 59 60 Once more, when I know what its supposed to mean, I'll suggest 61 wording. 62 openpgpsdk/trunk/src/Makefile.template
r126 r127 36 36 $(CC) $(CFLAGS) -E -MM *.c > .depend 37 37 38 Makefile: Makefile.template $(CONFIGURE)38 Makefile: Makefile.template ../configure 39 39 echo Makefile is older than templates, rerun configure. 40 40 exit 1
