1 karl 1.19 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.17 #//
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.19 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.17 #//
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 mike 1.2 ROOT = ../../..
32
33 DIR = Pegasus/WQL
34
35 include $(ROOT)/mak/config.mak
36
|
37 kumpf 1.5 LOCAL_DEFINES = -DPEGASUS_WQL_INTERNAL -DPEGASUS_INTERNALONLY
|
38 mike 1.2
|
39 chip 1.11 ifneq ($(OS), HPUX)
|
40 r.kieninger 1.15 ifneq ($(OS), zos)
41 ifndef PEGASUS_LSB
|
42 konrad.r 1.8 EXTRA_INCLUDES = -Int_includes
|
43 r.kieninger 1.15 endif
|
44 konrad.r 1.8 endif
|
45 kumpf 1.4 endif
|
46 mike 1.2
|
47 mike 1.20 STATIC=1
|
48 mike 1.2 LIBRARY = pegwql
49
|
50 schuur 1.7 LIBRARIES = \
|
51 karl 1.14 pegcommon \
|
52 chuck 1.13 pegquerycommon
|
53 mike 1.2
54 SOURCES = \
|
55 chip 1.11 WQLSelectStatement.cpp \
|
56 chuck 1.12 WQLSelectStatementRep.cpp \
|
57 chip 1.11 WQLYACC.cpp \
58 WQLLEX.cpp \
59 WQLSimplePropertySource.cpp \
60 WQLPropertySource.cpp \
61 WQLInstancePropertySource.cpp \
62 WQLParserState.cpp \
63 WQLOperation.cpp \
64 WQLOperand.cpp \
65 WQLParser.cpp \
66 WQLQueryExpressionRep.cpp
|
67 mike 1.2
68 SOURCES_X = \
|
69 chip 1.11 WQLLEX.cpp \
|
70 mike 1.2
71 include $(ROOT)/mak/library.mak
72
73 ##------------------------------------------------------------------------------
74 ##
75 ## Rules to build LEX AND YACC sources:
76 ##
77 ## To make these files type: "make grammar"
78 ##
79 ##------------------------------------------------------------------------------
80
81
82 ##
|
83 chip 1.11 ## This pushes BISON_SIMPLE into the environment so that bison will use this
|
84 mike 1.2 ## rather than looking for /usr/local/share/bison.simple.
85 ##
86
87 grammar: yacc_rule lex_rule
88
89 export BISON_SIMPLE = bison.simple
90
91 ##
92 ## Lex rule:
93 ##
94 lex_rule:
95 $(LEX) -oWQLLEX.cpp -PWQL_ WQL.l
96 $(TOUCH) WQLLEX.cpp
97
98 ##
99 ## Yacc rule:
100 ##
101 yacc_rule:
102 ifeq ($(YACC),yacc)
103 $(YACC) -vd -p WQL_ WQL.y
|
104 kumpf 1.10 $(COPY) "y.tab.c" "WQLYACC.cpp"
105 $(COPY) "y.tab.h" "WQLYACC.h"
|
106 mike 1.2 $(RM) y.tab.c y.tab.h
107 $(TOUCH) WQLYACC.cpp WQLYACC.h
108 else
109 $(YACC) -vd -oWQLtemp -p WQL_ WQL.y
|
110 karl 1.18 $(COPY) "WQLtemp" "WQLYACC.cpp"
111 $(COPY) "WQLtemp.h" "WQLYACC.h"
|
112 mike 1.2 $(RM) WQLtemp WQLtemp.h WQLtemp.output wqltemp.out
113 $(TOUCH) WQLYACC.cpp WQLYACC.h
114 endif
|