(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / WQL

File: [Pegasus] / pegasus / src / Pegasus / WQL / Makefile (download)
Revision: 1.5, Wed May 1 01:34:25 2002 UTC (22 years, 2 months ago) by kumpf
Branch: MAIN
CVS Tags: VERSION_2_01_01, VERSION_2_00_RC_4, VERSION_2_00_RC_3, VERSION_2_00_RC_2, VERSION_2_00_RC_1, VERSION_2_00_BRANCH, VERSION_1_10
Changes since 1.4: +1 -1 lines
HP-RK Add -DPEGASUS_INTERNALONLY to the LOCALDEFINES variable in all Makefiles that build objects within the pegasus/src/Pegasus directory tree.

ROOT = ../../..

DIR = Pegasus/WQL

include $(ROOT)/mak/config.mak

LOCAL_DEFINES = -DPEGASUS_WQL_INTERNAL -DPEGASUS_INTERNALONLY

ifneq ($(PEGASUS_PLATFORM), HPUX_PARISC_ACC)
EXTRA_INCLUDES = -Int_includes
endif

LIBRARY = pegwql

LIBRARIES = pegcommon

SOURCES = \
    WQLSelectStatement.cpp \
    WQLYACC.cpp \
    WQLLEX.cpp \
    WQLSimplePropertySource.cpp \
    WQLPropertySource.cpp \
    WQLParserState.cpp \
    WQLOperation.cpp \
    WQLOperand.cpp \
    WQLParser.cpp

SOURCES_X = \
    WQLLEX.cpp \

include $(ROOT)/mak/library.mak

##------------------------------------------------------------------------------
##
## Rules to build LEX AND YACC sources:
##
## To make these files type: "make grammar"
##
##------------------------------------------------------------------------------


##
## This pushes BISON_SIMPLE into the environment so that bison will use this 
## rather than looking for /usr/local/share/bison.simple.
##

grammar: yacc_rule lex_rule

export BISON_SIMPLE = bison.simple

##
## Lex rule:
##
lex_rule:
	$(LEX) -oWQLLEX.cpp -PWQL_ WQL.l
	$(TOUCH) WQLLEX.cpp

##
## Yacc rule:
##
yacc_rule:
ifeq ($(YACC),yacc)
	$(YACC) -vd -p WQL_ WQL.y
	$(COPY) y.tab.c WQLYACC.cpp
	$(COPY) y.tab.h WQLYACC.h
	$(RM) y.tab.c y.tab.h
	$(TOUCH) WQLYACC.cpp WQLYACC.h
else
	$(YACC) -vd -oWQLtemp -p WQL_ WQL.y
	$(COPY) WQLtemp WQLYACC.cpp
	$(COPY) WQLtemp.h WQLYACC.h
	$(RM) WQLtemp WQLtemp.h WQLtemp.output wqltemp.out
	$(TOUCH) WQLYACC.cpp WQLYACC.h
endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2