1 mike 1.1 TOP = ..
2 include $(TOP)/config.mak
3
4 LIBRARY = mof
5
6 SOURCES = state.c heap.c buffer.c mofyacc.c moflex.c types.c ptrarray.c
7
8 INCLUDES = $(TOP) $(TOP)/common
9
10 DEFINES = MI_CHAR_TYPE=1 MI_CONST=
11
12 LIBRARIES = base
13
14 include $(TOP)/mak/rules.mak
15
16 # We must ignore 'suggest parentheses' warning in YACC generated code.
17 ifeq ($(COMPILER),GNU)
18 $(OBJDIRPATH)/mofyacc.o : mofyacc.c
19 $(call compilec, mofyacc.c, -Wno-parentheses -Wno-unused)
20
21 endif
22 mike 1.1
23 # We must ignore 'Label ??? has no uses' error.
24 ifeq ($(COMPILER),HP)
25 $(OBJDIRPATH)/mofyacc.o : mofyacc.c
26 $(call compilec, mofyacc.c, +W612 +W2177)
27 endif
28
29 ##==============================================================================
30 ##
31 ## Lex and YACC rules
32 ##
33 ##==============================================================================
34
35 grammar: lex yacc
36
37 yacc:
38 yacc -d mof.y
39 mv y.tab.c mofyaccinc.c
40 mv y.tab.h mofyacc.h
41
42 lex:
43 mike 1.1 flex mof.l
44 mv lex.yy.c moflexinc.c
|