1### Make file for CFRoute for OS/2 2### Compiler: EMX 0.9c or 0.9d 3### Requires gmake 3.76.1 or higher 4 5### Directory options 6SRCDIR=../src 7SMAPIDIR=../../smapi 8FCDIR=../../fidoconf 9 10### Compiler flags 11CFLAGS = -Zcrtdll -O2 -DOS_2 -DEMX -DSQUISHCFS -DOS2 -I../.. $(DEBUG) 12 13### Linker flags 14LFLAGS = -s -L$(SMAPIDIR) -L$(FCDIR) -Zcrtdll 15LIBS=-lsmapiemx 16LIBS2=-lfconfemx 17 18### Platform specifics 19DEL = rm 20CC = gcc 21OBJ = .o 22EXE = .exe 23 24### List of object files 25cfrobjs = cfroute$(OBJ) dirute$(OBJ) buffer$(OBJ) structs$(OBJ) fecfg146$(OBJ) inbounds$(OBJ) 26 27### Build rules 28.SUFFIXES: 29.SUFFIXES: .cpp $(OBJ) .c $(OBJ) .hpp 30 31VPATH=$(SRCDIR) 32.cpp$(OBJ): 33 $(CC) -c -o $*$(OBJ) -I$(SRCDIR) $(CFLAGS) $(REL) $< 34.c$(OBJ): 35 $(CC) -c -o $*$(OBJ) -I$(SRCDIR) $(CFLAGS) $(REL) $< 36 37all: cfroute$(EXE) fc2cfr$(EXE) 38 39cfroute$(EXE): $(cfrobjs) 40 $(CC) $(LFLAGS) -o cfroute$(EXE) $(cfrobjs) $(LIBS) 41 42cfroute$(OBJ): akas.cpp basic.cpp buffer.cpp config.cpp datetime.cpp \ 43 encdet.cpp errors.hpp fastecho.cpp handlers.cpp log.cpp macro.cpp \ 44 netmail.cpp password.cpp protos.hpp routing.cpp scontrol.cpp \ 45 errors.hpp fecfg146.h protos.hpp squish.cpp dirute.h structs.hpp 46 47dirute$(OBJ): dirute.c dirute.h 48structs$(OBJ): structs.cpp structs.hpp 49buffer$(OBJ): buffer.cpp errors.hpp protos.hpp buffer.hpp 50fecfg146$(OBJ): fecfg146.c fecfg146.h 51inbounds$(OBJ): inbounds.cpp inbounds.hpp 52 53fc2cfr$(EXE): fc2cfr$(OBJ) 54 $(CC) $(LFLAGS) -o fc2cfr$(EXE) fc2cfr$(OBJ) $(LIBS2) $(LIBS) 55 56clean: 57 -cmd /c del cfroute$(EXE) 58 -cmd /c del cfroute$(OBJ) 59 -cmd /c del dirute$(OBJ) 60 -cmd /c del buffer$(OBJ) 61 -cmd /c del structs$(OBJ) 62 -cmd /c del fecfg146$(OBJ) 63 -cmd /c del inbounds$(OBJ) 64 -cmd /c del fc2cfr$(EXE) 65 -cmd /c del fc2cfr$(OBJ) 66