X-Git-Url: https://pd.if.org/git/?p=pccts;a=blobdiff_plain;f=antlr%2Fwatantlr.mak;fp=antlr%2Fwatantlr.mak;h=37dc8c7d5f5a29692bae7ba96d9165faf5e1a406;hp=0000000000000000000000000000000000000000;hb=a5858ad3d85781b0412eac53847e35a1bf24e70d;hpb=780a935d52ff31d98a3f1083ab0f363a7aafb30d diff --git a/antlr/watantlr.mak b/antlr/watantlr.mak new file mode 100755 index 0000000..37dc8c7 --- /dev/null +++ b/antlr/watantlr.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) + +antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj & + fset.obj gen.obj globals.obj hash.obj lex.obj main.obj & + misc.obj set.obj pred.obj + $(LINK) -fe=antlr.exe *.obj -k14336 + copy *.exe ..\bin + +# *********** Target list of PC machines *********** +# +# Don't worry about the ambiguity messages coming from antlr +# for making antlr.c etc... [should be 10 of them, I think] +# +antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g + $(ANTLR) antlr.g + +antlr.$(OBJ_EXT): antlr.c mode.h tokens.h + +scan.$(OBJ_EXT): scan.c mode.h tokens.h + +scan.c mode.h: parser.dlg + $(DLG) -C2 parser.dlg scan.c + +set.$(OBJ_EXT): $(SET)\set.c + $(CC) $(CFLAGS) -c set.$(OBJ_EXT) $(SET)\set.c + +# +# ****** These next targets are common to UNIX and PC world ******** +# + +#clean up all the intermediate files +clean: + del *.obj + +#remove everything in clean plus the PCCTS files generated +scrub: + del $(PCCTS_GEN) + del *.$(OBJ_EXT) +EOF_watantlr.mak