1CFLAGS = /decc $(CC_OPTIONS)/Diagnostics /Define=(NDEBUG) /Object=$@ /Include=([]) 2 3LINKFLAGS = /map=$(MMS$TARGET_NAME)/cross_reference/exec=$(MMS$TARGET_NAME).exe 4 5LINKER = cc 6 7OBJS = closure.obj, \ 8 error.obj, \ 9 lalr.obj, \ 10 lr0.obj, \ 11 main.obj, \ 12 mkpar.obj, \ 13 output.obj, \ 14 reader.obj, \ 15 yaccpar.obj, \ 16 symtab.obj, \ 17 verbose.obj, \ 18 warshall.obj 19 20PROGRAM = yacc.exe 21 22all : $(PROGRAM) 23 24$(PROGRAM) : $(OBJS) 25 @ write sys$output "Loading $(PROGRAM) ... " 26 @ $(LINK) $(LINKFLAGS) $(OBJS) 27 @ write sys$output "done" 28 29clean : 30 @- if f$search("*.obj") .nes. "" then delete *.obj;* 31 @- if f$search("*.lis") .nes. "" then delete *.lis;* 32 @- if f$search("*.log") .nes. "" then delete *.log;* 33 34clobber : clean 35 @- if f$search("*.exe") .nes. "" then delete *.exe;* 36 37$(OBJS) : defs.h 38