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

File: [Pegasus] / pegasus / src / Pegasus / CQL / Makefile (download)
Revision: 1.2, Sun Nov 21 12:18:09 2004 UTC (19 years, 7 months ago) by chuck
Branch: MAIN
CVS Tags: pegasus25BeforeLicenseUpdate, SLPPERFINST-root, SLPPERFINST-branch, PEP217_PRE_BRANCH, PEP217_POST_BRANCH, PEP217_BRANCH, PEP214ROOT, PEP214BRANCH, PEP214-root, PEP214-branch, PEP213_SIZE_OPTIMIZATIONS, PEP-214B-root
Changes since 1.1: +100 -0 lines
PEP#: 193
TITLE: CQL stage 1

DESCRIPTION: Initial commit of CQL

ROOT = ../../..

DIR = Pegasus/CQL

include $(ROOT)/mak/config.mak

LOCAL_DEFINES = -DPEGASUS_CQL_INTERNAL -DPEGASUS_INTERNALONLY -DCQLINPUT  

# Next line can be used to debug CQL.y
#LOCAL_DEFINES = -DPEGASUS_CQL_INTERNAL -DPEGASUS_INTERNALONLY -DCQL_DEBUG_GRAMMAR -DCQLINPUT 

ifneq ($(OS), HPUX) 
EXTRA_INCLUDES = -Int_includes
endif

LIBRARY = pegcql

LIBRARIES = \
    pegquerycommon \
    pegcommon 

SOURCES = \
   CQLYACC.cpp \
   CQLLEX.cpp \
   CQLChainedIdentifier.cpp \
   CQLChainedIdentifierRep.cpp \
   CQLIdentifier.cpp \
   CQLIdentifierRep.cpp \
   CQLParser.cpp \
   CQLParserState.cpp \
   CQLSimplePredicate.cpp \
   CQLSimplePredicateRep.cpp \
   CQLPredicate.cpp \
   CQLPredicateRep.cpp \
   CQLTerm.cpp \
   CQLTermRep.cpp \
   CQLFunction.cpp \
   CQLFunctionRep.cpp \
   CQLExpression.cpp \
   CQLExpressionRep.cpp \
   CQLFactor.cpp \
   CQLFactorRep.cpp \
   CQLFactory.cpp \
   CQLSelectStatement.cpp \
   CQLSelectStatementRep.cpp \
   CQLValue.cpp \
   CQLValueRep.cpp \
   CQLRegularExpression.cpp \
   CQLUtilities.cpp \
   Cql2Dnf.cpp 

include $(ROOT)/mak/library.mak
include $(ROOT)/mak/install.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
#YACC = bison                                                                                                                                       
##
## Lex rule:
##
lex_rule:
	$(LEX) -PCQL_ CQL.l
	$(COPY) lex.CQL_.c CQLLEX.cpp
	$(RM) lex.CQL_.c
	$(TOUCH) CQLLEX.cpp

##
## Yacc rule:
##
yacc_rule:
ifeq ($(YACC),yacc)
	$(YACC) -vd -p CQL_ CQL.y
	$(COPY) y.tab.c CQLYACC.cpp
	$(COPY) y.tab.h CQLYACC.h
	$(RM) y.tab.c y.tab.h 
	$(TOUCH) CQLYACC.cpp
else
	$(YACC) -vd -oCQLtemp -p CQL_ CQL.y
	$(COPY) CQLtemp CQLYACC.cpp
	$(COPY) CQLtemp.h CQLYACC.h
	$(RM) CQLtemp CQLtemp.h
	$(TOUCH) CQLYACC.cpp CQLYACC.h
endif


No CVS admin address has been configured
Powered by
ViewCVS 0.9.2