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 LIBRARY = pegwql
48
|
49 schuur 1.7 LIBRARIES = \
|
50 karl 1.14 pegcommon \
|
51 chuck 1.13 pegquerycommon
|
52 mike 1.2
53 SOURCES = \
|
54 chip 1.11 WQLSelectStatement.cpp \
|
55 chuck 1.12 WQLSelectStatementRep.cpp \
|
56 chip 1.11 WQLYACC.cpp \
57 WQLLEX.cpp \
58 WQLSimplePropertySource.cpp \
59 WQLPropertySource.cpp \
60 WQLInstancePropertySource.cpp \
61 WQLParserState.cpp \
62 WQLOperation.cpp \
63 WQLOperand.cpp \
64 WQLParser.cpp \
65 WQLQueryExpressionRep.cpp
|
66 mike 1.2
67 SOURCES_X = \
|
68 chip 1.11 WQLLEX.cpp \
|
69 mike 1.2
70 include $(ROOT)/mak/library.mak
71
72 ##------------------------------------------------------------------------------
73 ##
74 ## Rules to build LEX AND YACC sources:
75 ##
76 ## To make these files type: "make grammar"
77 ##
78 ##------------------------------------------------------------------------------
79
80
81 ##
|
82 chip 1.11 ## This pushes BISON_SIMPLE into the environment so that bison will use this
|
83 mike 1.2 ## rather than looking for /usr/local/share/bison.simple.
84 ##
85
86 grammar: yacc_rule lex_rule
87
88 export BISON_SIMPLE = bison.simple
89
90 ##
91 ## Lex rule:
92 ##
93 lex_rule:
94 $(LEX) -oWQLLEX.cpp -PWQL_ WQL.l
95 $(TOUCH) WQLLEX.cpp
96
97 ##
98 ## Yacc rule:
99 ##
100 yacc_rule:
101 ifeq ($(YACC),yacc)
102 $(YACC) -vd -p WQL_ WQL.y
|
103 kumpf 1.10 $(COPY) "y.tab.c" "WQLYACC.cpp"
104 $(COPY) "y.tab.h" "WQLYACC.h"
|
105 mike 1.2 $(RM) y.tab.c y.tab.h
106 $(TOUCH) WQLYACC.cpp WQLYACC.h
107 else
108 $(YACC) -vd -oWQLtemp -p WQL_ WQL.y
|
109 karl 1.18 $(COPY) "WQLtemp" "WQLYACC.cpp"
110 $(COPY) "WQLtemp.h" "WQLYACC.h"
|
111 mike 1.2 $(RM) WQLtemp WQLtemp.h WQLtemp.output wqltemp.out
112 $(TOUCH) WQLYACC.cpp WQLYACC.h
113 endif
|