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

File: [OMI] / omi / mof / GNUmakefile (download)
Revision: 1.2, Mon Jun 25 18:51:01 2012 UTC (12 years ago) by mike
Branch: MAIN
CVS Tags: OMI_1_0_2
Changes since 1.1: +0 -11 lines
1.0.2 drop

TOP = ..
include $(TOP)/config.mak

LIBRARY = mof

SOURCES = state.c heap.c buffer.c mofyacc.c moflex.c types.c ptrarray.c

INCLUDES = $(TOP) $(TOP)/common

DEFINES = MI_CHAR_TYPE=1 MI_CONST=

LIBRARIES = base

include $(TOP)/mak/rules.mak

# We must ignore 'suggest parentheses' warning in YACC generated code.
ifeq ($(COMPILER),GNU)
$(OBJDIRPATH)/mofyacc.o : mofyacc.c
	$(call compilec, mofyacc.c, -Wno-parentheses -Wno-unused)
	
endif

# We must ignore 'Label ??? has no uses' error.
ifeq ($(COMPILER),HP)
$(OBJDIRPATH)/mofyacc.o : mofyacc.c
	$(call compilec, mofyacc.c, +W612 +W2177)
endif

##==============================================================================
##
## Lex and YACC rules
##
##==============================================================================

grammar: lex yacc

yacc:
	yacc -d mof.y
	mv y.tab.c mofyaccinc.c
	mv y.tab.h mofyacc.h

lex:
	flex mof.l
	mv lex.yy.c moflexinc.c

ViewCVS 0.9.2