xref: /freebsd/contrib/byacc/descrip.mms (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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,graph.obj, \
9		lalr.obj, \
10		lr0.obj, \
11		main.obj, \
12		mkpar.obj,mstring.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	@ write sys$output "All done"
24
25$(PROGRAM) :     $(OBJS)
26	@ write sys$output "Loading $(PROGRAM) ... "
27	@ $(LINK) $(LINKFLAGS) $(OBJS)
28	@ write sys$output "done"
29
30clean :
31	@- if f$search("*.obj") .nes. "" then delete *.obj;*
32	@- if f$search("*.lis") .nes. "" then delete *.lis;*
33	@- if f$search("*.log") .nes. "" then delete *.log;*
34
35clobber :	clean
36	@- if f$search("*.exe") .nes. "" then delete *.exe;*
37
38$(OBJS) : defs.h
39
40closure.obj : closure.c
41error.obj : error.c
42graph.obj : graph.c
43lalr.obj : lalr.c
44lr0.obj : lr0.c
45main.obj : main.c
46mkpar.obj : mkpar.c
47mstring.obj : mstring.c
48output.obj : output.c
49reader.obj : reader.c
50yaccpar.obj : yaccpar.c
51symtab.obj : symtab.c
52verbose.obj : verbose.c
53warshall.obj : warshall.c
54