--- pgp/src/makefile 2018/04/24 16:42:00 1.1.1.3 +++ pgp/src/makefile 2018/04/24 16:43:23 1.1.1.4 @@ -1,6 +1,6 @@ # makefile for PGP (unix) # -# PGP 2.6 can be compiled to use either the modular exponentiation +# PGP 2.6.1 can be compiled to use either the modular exponentiation # routines that come with RSAREF or those that are built into the # multiprecision library (mpilib) that comes with PGP. For UNIX machines # (and probably VAX/VMS, too), we recommend using the RSAREF routines. @@ -9,7 +9,7 @@ # than the C code in RSAREF). To use the mpilib routines, you # should: # (1) make sure you have the version of RSAREF that comes with -# the PGP 2.6 distribution, +# the PGP 2.6.1 distribution, # (2) in this makefile, add the compiler switch -DUSEMPILIB to # CFLAGS for your system below, # (3) in the RSAREF makefile, add the compiler switch @@ -18,7 +18,7 @@ # fail to link, because they will be unable to find the modular # exponentiation routines. This is OK. # -# Alternatively, to build PGP 2.6 with the RSAREF exponentiation routines, +# Alternatively, to build PGP 2.6.1 with the RSAREF exponentiation routines, # (1) you can use any version of the March 16, 1994 distribution # of RSAREF. # (2) you need not modify this makefile, @@ -84,7 +84,7 @@ default: @echo " bsd, bsdgcc, vax_bsd43, rt_aos4, osf, sgigcc_asm, sgigcc, irix," @echo " irix_asm, newsgcc, newsasm, aux(*), aux-gcc, os2, djgpp, sun4sunos5gcc," @echo " hpux-pa-ansi, hpux-pa-gcc, hpux-pa(*), hpux-68k-ansi, hpux-68k-gcc" - @echo " hpux-68k(*), next, next486, netbsd" + @echo " hpux-68k(*), next, next486, nextHP, netbsd, qnx4" @echo "" @echo "for targets marked with (*) you must first get unproto, see" @echo "setup.doc for further details" @@ -96,7 +96,7 @@ all: $(PROJ) USEMPILIB = -DUSEMPILIB # For an RSAREF version, uncomment the following lines -RSADIR = ../../rsaref +RSADIR = ../rsaref RSALIBDIR = $(RSADIR)/install/unix RSAINCDIR = -I$(RSADIR)/source -I$(RSADIR)/test $(USEMPILIB) RSALIBS = $(RSALIBDIR)/rsaref.a @@ -146,7 +146,7 @@ $(PROJ): $(OBJS) linux: $(MAKE) all CC=gcc LD=gcc OBJS_EXT="_80386.o _zmatch.o" \ - CFLAGS="$(RSAINCDIR) -O6 -g3 -DUNIX -DIDEA32 -DASM" LDFLAGS="-v" + CFLAGS="$(RSAINCDIR) -O6 -g3 -DUNIX -DIDEA32 -DASM" 386bsd: $(MAKE) all CC=gcc LD=gcc OBJS_EXT="_80386.o _zmatch.o" \ @@ -159,16 +159,16 @@ netbsd: # Sun 3 with gcc # change -traditional-cpp to -traditional for gcc < 2.0 sun3gcc: - $(MAKE) all CC=gcc LD=gcc \ + $(MAKE) all CC=gcc LD=gcc OBJS_EXT=memmove.o \ CFLAGS="$(RSAINCDIR) -O -traditional-cpp -DUNIX -DHIGHFIRST -DIDEA32 -DPORTABLE" sun3asm: - $(MAKE) all CC=gcc LD=gcc OBJS_EXT=mc68020.o \ + $(MAKE) all CC=gcc LD=gcc OBJS_EXT="mc68020.o memmove.o" \ CFLAGS="$(RSAINCDIR) -O -traditional-cpp -DUNIX -DHIGHFIRST -DIDEA32" # Sun 3 with standard cc: compile with unproto sun3cc: unproto/cpp - $(MAKE) all CC=cc LD=cc \ + $(MAKE) all CC=cc LD=cc OBJS_EXT=memmove.o \ CFLAGS="$(RSAINCDIR) -Qpath unproto -O -DUNIX -DHIGHFIRST -DIDEA32 -DPORTABLE" # Sun 4 SPARC with gcc (tested with gcc 1.39 and newer, sparc.s can not be used @@ -181,7 +181,8 @@ sun4gcc: # Sun 4 SPARC with standard cc: compile with unproto sun4cc: unproto/cpp $(MAKE) all CC=cc LD=cc OBJS_EXT="sparc.o memmove.o" \ - CFLAGS="$(RSAINCDIR) -Qpath unproto -O -DUNIX -DHIGHFIRST -DIDEA32" + CFLAGS="$(RSAINCDIR) -Qpath unproto -Dconst= -O -DUNIX \ + -DHIGHFIRST -DIDEA32" # Sun 4 running Sunos5 (Solaris)... sun4sunos5gcc: @@ -210,6 +211,10 @@ newsasm: $(MAKE) all CC=gcc LD=gcc OBJS_EXT=mc68020.s \ CFLAGS="$(RSAINCDIR) -O -I. -traditional-cpp -DNOTERMIO -D_BSD -DUNIX -DHIGHFIRST -DIDEA32" +qnx4: + $(MAKE) all \ + CFLAGS="$(RSAINCDIR) -3 -O -I. -b -DNO_PARAM_H -DUNIX -DIDEA32 -DPORTABLE -DMPORTABLE $(BYTEORDER) -DMAX_NAMELEN=255" + sysv: $(MAKE) all CPP=/lib/cpp \ CFLAGS="$(RSAINCDIR) -O -DUNIX -DPORTABLE -DUSE_NBIO $(BYTEORDER)" @@ -225,12 +230,14 @@ xenix386: # Interactive Unix SVR3/386 version 3.2 with gcc isc: - $(MAKE) all CC=gcc LD=gcc LDFLAGS="-lcposix" \ - CFLAGS="$(RSAINCDIR) -O -DUNIX -DIDEA32 -DUSE_NBIO -DPORTABLE -DNO_ITIMER" + $(MAKE) all CC=gcc LD=gcc LDFLAGS="-lcposix -lrpc" OBJS_EXT=memmove.o \ + CFLAGS="$(RSAINCDIR) -O -DUNIX -DIDEA32 -DUSE_NBIO -DPORTABLE \ + -DNO_ITIMER" isc_asm: - $(MAKE) all CC=gcc LD=gcc OBJS_EXT=_80386.o ASMDEF=-DSYSV \ - CFLAGS="$(RSAINCDIR) -O -DUNIX -DIDEA32 -DUSE_NBIO -DNO_ITIMER" LDFLAGS="-lcposix" + $(MAKE) all CC=gcc LD=gcc OBJS_EXT="_80386.o memmove.o" ASMDEF=-DSYSV \ + CFLAGS="$(RSAINCDIR) -O -DUNIX -DIDEA32 -DUSE_NBIO -DNO_ITIMER" \ + LDFLAGS="-lcposix -lrpc" mach_386: $(MAKE) all CC=gcc LD=gcc CPP=/lib/cpp OBJS_EXT=_80386.o \ @@ -357,13 +364,19 @@ rs6000: next: $(MAKE) all \ - CFLAGS="$(RSAINCDIR) -O -DNEXT -DUNIX -DHIGHFIRST -DMACH -DPORTABLE -DNOTERMIO" + CFLAGS="$(RSAINCDIR) -O -arch m68k -DNEXT -DUNIX -DHIGHFIRST \ + -DMACH -DPORTABLE -DNOTERMIO" next486: $(MAKE) all \ - CFLAGS="$(RSAINCDIR) -O -DNEXT -DUNIX -DMACH -DPORTABLE \ + CFLAGS="$(RSAINCDIR) -O -arch i386 -DNEXT -DUNIX -DMACH -DPORTABLE \ -DIDEA32 -DNOTERMIO" +nextHP: + $(MAKE) all \ + CFLAGS="$(RSAINCDIR) -O -arch hppa -DNEXT -DUNIX -DMACH -DPORTABLE \ + -DNOTERMIO -DHIGHFIRST" + bsdgcc: $(MAKE) all CC=gcc LD=gcc \ CFLAGS="$(RSAINCDIR) -O -I. -DNOTERMIO -D_BSD -DUNIX -DPORTABLE -DUSE_NBIO $(BYTEORDER)" @@ -394,13 +407,13 @@ osf: # A/UX 3.0 using unproto (mine is invoked as a cpp using the CFLAGS shown # I placed the cpp in a subdirectory of /src/pgp called unproto aux: unproto/cpp - $(MAKE) all CC=cc \ - LDFLAGS=-lposix \ + $(MAKE) all CC=cc OBJS_EXT=memmove.o \ + LDFLAGS="-lposix -lbsd" \ CFLAGS="$(RSAINCDIR) -B unproto/ -tp -DSVR2 \ -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON" aux-gcc: - $(MAKE) all CC=gcc LD=gcc \ - LDFLAGS=-lposix \ + $(MAKE) all CC=gcc LD=gcc OBJS_EXT=memmove.o \ + LDFLAGS="-lposix -lbsd" \ CFLAGS="$(RSAINCDIR) -O2 -DSVR2 -DHIGHFIRST -DUNIX -DPORTABLE -DUSE_SELECT -DUPTON" # optimized version with 80386.S for emx 0.8e, OS/2 2.0 or DOS @@ -432,7 +445,7 @@ unproto/cpp:: cd unproto && $(MAKE) clean: - -rm -f *.o $(PROJ) core a.out tags + -rm -f *.o $(PROJ) core a.out tags *.err tags: ctags *.c *.h