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

Diff for /pegasus/src/Pegasus/CQL/Makefile between version 1.1 and 1.2

version 1.1, 2004/08/20 18:22:36 version 1.2, 2004/11/21 12:18:09
Line 0 
Line 1 
   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
   


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2