(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 karl   1.9 #//=============================================================================
 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 dave.sudlik 1.10 # The next line can be uncommented to turn on debug output from CQL.l
 40                  #LOCAL_DEFINES += -DCQL_DEBUG_LEXER
 41                  
 42                  # The next line can be uncommented to turn on debug output from CQL.y
 43                  #LOCAL_DEFINES += -DCQL_DEBUG_GRAMMAR
 44 a.arora     1.5  
 45                  ifneq ($(OS), HPUX) 
 46                  ifneq ($(OS), zos)
 47                  EXTRA_INCLUDES = -Int_includes
 48                  endif
 49                  endif
 50                  
 51 mike        1.8  STATIC=1
 52 a.arora     1.5  LIBRARY = pegcql
 53                  
 54                  LIBRARIES = \
 55                      pegquerycommon \
 56                      pegcommon 
 57                  
 58                  SOURCES = \
 59                     CQLYACC.cpp \
 60                     CQLLEX.cpp \
 61                     CQLChainedIdentifier.cpp \
 62                     CQLChainedIdentifierRep.cpp \
 63                     CQLIdentifier.cpp \
 64                     CQLIdentifierRep.cpp \
 65                     CQLParser.cpp \
 66                     CQLParserState.cpp \
 67                     CQLSimplePredicate.cpp \
 68                     CQLSimplePredicateRep.cpp \
 69                     CQLPredicate.cpp \
 70                     CQLPredicateRep.cpp \
 71                     CQLTerm.cpp \
 72                     CQLTermRep.cpp \
 73 a.arora     1.5     CQLFunction.cpp \
 74                     CQLFunctionRep.cpp \
 75                     CQLExpression.cpp \
 76                     CQLExpressionRep.cpp \
 77                     CQLFactor.cpp \
 78                     CQLFactorRep.cpp \
 79                     CQLFactory.cpp \
 80                     CQLSelectStatement.cpp \
 81                     CQLSelectStatementRep.cpp \
 82                     CQLValue.cpp \
 83                     CQLValueRep.cpp \
 84                     CQLRegularExpression.cpp \
 85                     CQLUtilities.cpp \
 86                     Cql2Dnf.cpp 
 87                  
 88                  include $(ROOT)/mak/library.mak
 89                  
 90                  
 91                  ##-----------------------------------------------------------------------------
 92                  ##
 93                  ## Rules to build LEX AND YACC sources:
 94 a.arora     1.5  ##
 95                  ## To make these files type: "make grammar"
 96                  ##
 97                  ##------------------------------------------------------------------------------
 98                                                                                                                                                         
 99                                                                                                                                                         
100                  ##
101                  ## This pushes BISON_SIMPLE into the environment so that bison will use this
102                  ## rather than looking for /usr/local/share/bison.simple.
103                  ##
104                                                                                                                                                         
105                  grammar: yacc_rule lex_rule
106                  
107                  export BISON_SIMPLE = bison.simple
108 karl        1.9  
109                  ##    WARNING: using bison and yacc generates slightly different
110                  ##    output messages which means that at least the Queries
111                  ##    Misc test resgood file must be changed if you move from
112                  ##    one to another.See bug 6351.
113                  ##YACC = bison
114                  ##YACC=yacc
115 a.arora     1.5  ##
116                  ## Lex rule:
117                  ##
118                  lex_rule:
119                  	$(LEX) -PCQL_ CQL.l
120                  	$(COPY) lex.CQL_.c CQLLEX.cpp
121                  	$(RM) lex.CQL_.c
122                  	$(TOUCH) CQLLEX.cpp
123                  
124                  ##
125                  ## Yacc rule:
126                  ##
127                  yacc_rule:
128                  ifeq ($(YACC),yacc)
129                  	$(YACC) -vd -p CQL_ CQL.y
130                  	$(COPY) y.tab.c CQLYACC.cpp
131                  	$(COPY) y.tab.h CQLYACC.h
132                  	$(RM) y.tab.c y.tab.h 
133                  	$(TOUCH) CQLYACC.cpp
134                  else
135                  	$(YACC) -vd -oCQLtemp -p CQL_ CQL.y
136 a.arora     1.5  	$(COPY) CQLtemp CQLYACC.cpp
137                  	$(COPY) CQLtemp.h CQLYACC.h
138                  	$(RM) CQLtemp CQLtemp.h
139                  	$(TOUCH) CQLYACC.cpp CQLYACC.h
140                  endif
141                  

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2