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

  1 karl  1.7 #//%2006////////////////////////////////////////////////////////////////////////
  2 martin 1.6 #//
  3            #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6            #// IBM Corp.; EMC Corporation, The Open Group.
  7            #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9            #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl   1.7 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            #// EMC Corporation; Symantec Corporation; The Open Group.
 13 martin 1.6 #//
 14            #// Permission is hereby granted, free of charge, to any person obtaining a copy
 15            #// of this software and associated documentation files (the "Software"), to
 16            #// deal in the Software without restriction, including without limitation the
 17            #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18            #// sell copies of the Software, and to permit persons to whom the Software is
 19            #// furnished to do so, subject to the following conditions:
 20            #// 
 21            #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22            #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24            #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27            #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            #//
 30            #//==============================================================================
 31 a.arora 1.5 ROOT = ../../..
 32             
 33             DIR = Pegasus/CQL
 34             
 35             include $(ROOT)/mak/config.mak
 36             
 37             LOCAL_DEFINES = -DPEGASUS_CQL_INTERNAL -DPEGASUS_INTERNALONLY -DCQLINPUT  
 38             
 39             # Next line can be used to debug CQL.y
 40             #LOCAL_DEFINES = -DPEGASUS_CQL_INTERNAL -DPEGASUS_INTERNALONLY -DCQL_DEBUG_GRAMMAR -DCQLINPUT 
 41             
 42             ifneq ($(OS), HPUX) 
 43             ifneq ($(OS), zos)
 44             EXTRA_INCLUDES = -Int_includes
 45             endif
 46             endif
 47             
 48 mike    1.8 STATIC=1
 49 a.arora 1.5 LIBRARY = pegcql
 50             
 51             LIBRARIES = \
 52                 pegquerycommon \
 53                 pegcommon 
 54             
 55             SOURCES = \
 56                CQLYACC.cpp \
 57                CQLLEX.cpp \
 58                CQLChainedIdentifier.cpp \
 59                CQLChainedIdentifierRep.cpp \
 60                CQLIdentifier.cpp \
 61                CQLIdentifierRep.cpp \
 62                CQLParser.cpp \
 63                CQLParserState.cpp \
 64                CQLSimplePredicate.cpp \
 65                CQLSimplePredicateRep.cpp \
 66                CQLPredicate.cpp \
 67                CQLPredicateRep.cpp \
 68                CQLTerm.cpp \
 69                CQLTermRep.cpp \
 70 a.arora 1.5    CQLFunction.cpp \
 71                CQLFunctionRep.cpp \
 72                CQLExpression.cpp \
 73                CQLExpressionRep.cpp \
 74                CQLFactor.cpp \
 75                CQLFactorRep.cpp \
 76                CQLFactory.cpp \
 77                CQLSelectStatement.cpp \
 78                CQLSelectStatementRep.cpp \
 79                CQLValue.cpp \
 80                CQLValueRep.cpp \
 81                CQLRegularExpression.cpp \
 82                CQLUtilities.cpp \
 83                Cql2Dnf.cpp 
 84             
 85             include $(ROOT)/mak/library.mak
 86             
 87             
 88             ##-----------------------------------------------------------------------------
 89             ##
 90             ## Rules to build LEX AND YACC sources:
 91 a.arora 1.5 ##
 92             ## To make these files type: "make grammar"
 93             ##
 94             ##------------------------------------------------------------------------------
 95                                                                                                                                                    
 96                                                                                                                                                    
 97             ##
 98             ## This pushes BISON_SIMPLE into the environment so that bison will use this
 99             ## rather than looking for /usr/local/share/bison.simple.
100             ##
101                                                                                                                                                    
102             grammar: yacc_rule lex_rule
103             
104             export BISON_SIMPLE = bison.simple
105             #YACC = bison                                                                                                                                       
106             ##
107             ## Lex rule:
108             ##
109             lex_rule:
110             	$(LEX) -PCQL_ CQL.l
111             	$(COPY) lex.CQL_.c CQLLEX.cpp
112 a.arora 1.5 	$(RM) lex.CQL_.c
113             	$(TOUCH) CQLLEX.cpp
114             
115             ##
116             ## Yacc rule:
117             ##
118             yacc_rule:
119             ifeq ($(YACC),yacc)
120             	$(YACC) -vd -p CQL_ CQL.y
121             	$(COPY) y.tab.c CQLYACC.cpp
122             	$(COPY) y.tab.h CQLYACC.h
123             	$(RM) y.tab.c y.tab.h 
124             	$(TOUCH) CQLYACC.cpp
125             else
126             	$(YACC) -vd -oCQLtemp -p CQL_ CQL.y
127             	$(COPY) CQLtemp CQLYACC.cpp
128             	$(COPY) CQLtemp.h CQLYACC.h
129             	$(RM) CQLtemp CQLtemp.h
130             	$(TOUCH) CQLYACC.cpp CQLYACC.h
131             endif
132             

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2