2012-05-03 09:57:52 +00:00
|
|
|
CFLAGS = /decc $(CC_OPTIONS)/Diagnostics /Define=(NDEBUG) /Object=$@ /Include=([])
|
|
|
|
|
|
|
|
LINKFLAGS = /map=$(MMS$TARGET_NAME)/cross_reference/exec=$(MMS$TARGET_NAME).exe
|
|
|
|
|
|
|
|
LINKER = cc
|
|
|
|
|
|
|
|
OBJS = closure.obj, \
|
2016-02-29 19:37:12 +00:00
|
|
|
error.obj,graph.obj, \
|
2012-05-03 09:57:52 +00:00
|
|
|
lalr.obj, \
|
|
|
|
lr0.obj, \
|
|
|
|
main.obj, \
|
2016-02-29 19:37:12 +00:00
|
|
|
mkpar.obj,mstring.obj, \
|
2012-05-03 09:57:52 +00:00
|
|
|
output.obj, \
|
|
|
|
reader.obj, \
|
2014-04-22 22:11:22 +00:00
|
|
|
yaccpar.obj, \
|
2012-05-03 09:57:52 +00:00
|
|
|
symtab.obj, \
|
|
|
|
verbose.obj, \
|
|
|
|
warshall.obj
|
|
|
|
|
|
|
|
PROGRAM = yacc.exe
|
|
|
|
|
|
|
|
all : $(PROGRAM)
|
2016-02-29 19:37:12 +00:00
|
|
|
@ write sys$output "All done"
|
2012-05-03 09:57:52 +00:00
|
|
|
|
|
|
|
$(PROGRAM) : $(OBJS)
|
|
|
|
@ write sys$output "Loading $(PROGRAM) ... "
|
|
|
|
@ $(LINK) $(LINKFLAGS) $(OBJS)
|
|
|
|
@ write sys$output "done"
|
|
|
|
|
|
|
|
clean :
|
|
|
|
@- if f$search("*.obj") .nes. "" then delete *.obj;*
|
|
|
|
@- if f$search("*.lis") .nes. "" then delete *.lis;*
|
|
|
|
@- if f$search("*.log") .nes. "" then delete *.log;*
|
|
|
|
|
|
|
|
clobber : clean
|
|
|
|
@- if f$search("*.exe") .nes. "" then delete *.exe;*
|
|
|
|
|
|
|
|
$(OBJS) : defs.h
|
2016-02-29 19:37:12 +00:00
|
|
|
|
|
|
|
closure.obj : closure.c
|
|
|
|
error.obj : error.c
|
|
|
|
graph.obj : graph.c
|
|
|
|
lalr.obj : lalr.c
|
|
|
|
lr0.obj : lr0.c
|
|
|
|
main.obj : main.c
|
|
|
|
mkpar.obj : mkpar.c
|
|
|
|
mstring.obj : mstring.c
|
|
|
|
output.obj : output.c
|
|
|
|
reader.obj : reader.c
|
|
|
|
yaccpar.obj : yaccpar.c
|
|
|
|
symtab.obj : symtab.c
|
|
|
|
verbose.obj : verbose.c
|
|
|
|
warshall.obj : warshall.c
|