# Makefile for PacketSorter and Utilities # 05.04.94 # (c) Rolf K. Wilms # Intended to use

---
Master Index Current Directory Index Go to SkepticTank Go to Human Rights activist Keith Henson Go to Scientology cult

Skeptic Tank!

# Makefile for PacketSorter and Utilities # # 05.04.94 # (c) Rolf K. Wilms # # Intended to use with gnumake under OS/2 # # which compiler to use CC = gcc # general compiler options CFLAGS = -Wall # code generation options #OFLAGS = -g OFLAGS = -s -O2 # linker options LFLAGS = -s #LFLAGS = # libraries to include LIB = -lgpp -liostream -lgcc -lc -lgcc -lemxst -los2 -lemx2 # library path LIBPATH = d:/emx/lib/ # making all all : pktsort.exe register.exe offset.exe makekey.exe # making pktsort.o pktsort.o : pktsort.cc llist.h swapper.h ordcoll.h dictiona.h hash.h reginfo.h mkkey.h secret.h regrem.h $(CC) -c pktsort.cc $(OFLAGS) $(CFLAGS) # making patchof.h which should read # # #define PATCHOFFSET offset # # where offset is the offset of REGMAGIC in pktsort.exe patchof.h : pktsort.exe echo #define PATCHOFFSET \\>patchof.h offset 4PSTREG pktsort.exe >>patchof.h # making register.o register.o : register.cc reginfo.h patchof.h $(CC) -c register.cc $(OFLAGS) $(CFLAGS) # making hash.o hash.o : hash.cc $(CC) -c hash.cc $(OFLAGS) $(CFLAGS) # making mkkey.o mkkey.o : mkkey.cc mkkey.h reginfo.h $(CC) -c mkkey.cc $(OFLAGS) $(CFLAGS) # making pktsort.exe pktsort.exe : pktsort.o hash.o mkkey.o ld -o $@ $(LFLAGS) $(LIBPATH)crt0.o -Ld:/emx/lib -L/emx/lib mkkey.o hash.o pktsort.o $(LIB) emxbind -a $@ -p # allow some space to spawn archiver under DOS # making register.exe register.exe : register.o ld -o $@ $(LFLAGS) $(LIBPATH)crt0.o -Ld:/emx/lib -L/emx/lib register.o $(LIB) # making offset.exe offset.exe : offset.cc $(CC) -o $@ $< $(CFLAGS) -O2 -s $(LIB) # making makekey.o makekey.o : makekey.cc reginfo.h mkkey.h secret.h $(CC) -c makekey.cc $(CFLAGS) $(OFLAGS) #making makekey.exe makekey.exe : makekey.o mkkey.o ld -o $@ $(LIBPATH)crt0.o -Ld:/emx/lib -L/emx/lib mkkey.o makekey.o $(LIB)

---

E-Mail Fredric L. Rice / The Skeptic Tank