X-Git-Url: https://pd.if.org/git/?p=pccts;a=blobdiff_plain;f=support%2Fgenmk%2Fwatgenmk.mak;fp=support%2Fgenmk%2Fwatgenmk.mak;h=194a179cccc66686616186ebd7119d707839db04;hp=0000000000000000000000000000000000000000;hb=56dd00148e59773742903ee71be791eaa49a8616;hpb=cb15b978c765a661bf3154d865fa3e2401d649f5 diff --git a/support/genmk/watgenmk.mak b/support/genmk/watgenmk.mak new file mode 100755 index 0000000..194a179 --- /dev/null +++ b/support/genmk/watgenmk.mak @@ -0,0 +1,54 @@ +SET=..\..\support\set +PCCTS_H=..\..\h + +# +# Watcom +# +CC=wcl386 +ANTLR=..\..\bin\antlr +DLG=..\..\bin\dlg +CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DPC +OUT_OBJ = -o +OBJ_EXT = obj +LINK = wcl386 + +.c.obj : + $(CC) -c $[* $(CFLAGS) + +genmk.exe: genmk.obj + $(LINK) -fe=genmk.exe *.obj -k14336 + copy *.exe ..\..\bin + +#clean up all the intermediate files +clean: + del *.obj + +#remove everything in clean plus the PCCTS files generated +scrub: + del *.$(OBJ_EXT) +EOF_watgenmk.mak +cat << \EOF_makefile | sed 's/^>//' > makefile +SRC=genmk.c +OBJ=genmk.o +# Define PC if you use a PC OS (changes directory symbol and object file extension) +# see pccts/h/config.h +#CFLAGS=-I../../h -DPC +CFLAGS=-I../../h +CC=cc +BAG=../../bin/bag + +genmk: $(OBJ) $(SRC) ../../h/config.h + $(CC) -o genmk $(OBJ) + +clean: + rm -rf core *.o + +scrub: + rm -rf genmk core *.o + +shar: + shar genmk.c makefile > genmk.shar + +archive: + $(BAG) genmk.c watgenmk.mak makefile > genmk.bag +EOF_makefile