(file) Return to GNUmakefile CVS log (file) (dir) Up to [OMI] / omi / mof

 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           HEADERS = \
11               buffer.h \
12               config.h \
13               heap.h \
14               ids.h \
15               mof.h \
16               mofyacc.h \
17               ptrarray.h \
18               state.h \
19               types.h
20           
21           DEFINES = MI_CHAR_TYPE=1 MI_CONST=
22 mike  1.1 
23           LIBRARIES = base
24           
25           include $(TOP)/mak/rules.mak
26           
27           # We must ignore 'suggest parentheses' warning in YACC generated code.
28           ifeq ($(COMPILER),GNU)
29           $(OBJDIRPATH)/mofyacc.o : mofyacc.c
30           	$(call compilec, mofyacc.c, -Wno-parentheses -Wno-unused)
31           	
32           endif
33           
34           # We must ignore 'Label ??? has no uses' error.
35           ifeq ($(COMPILER),HP)
36           $(OBJDIRPATH)/mofyacc.o : mofyacc.c
37           	$(call compilec, mofyacc.c, +W612 +W2177)
38           endif
39           
40           ##==============================================================================
41           ##
42           ## Lex and YACC rules
43 mike  1.1 ##
44           ##==============================================================================
45           
46           grammar: lex yacc
47           
48           yacc:
49           	yacc -d mof.y
50           	mv y.tab.c mofyaccinc.c
51           	mv y.tab.h mofyacc.h
52           
53           lex:
54           	flex mof.l
55           	mv lex.yy.c moflexinc.c

ViewCVS 0.9.2