1 mike 1.2 ROOT = ../../..
2
3 DIR = Pegasus/WQL
4
5 include $(ROOT)/mak/config.mak
6
|
7 kumpf 1.5 LOCAL_DEFINES = -DPEGASUS_WQL_INTERNAL -DPEGASUS_INTERNALONLY
|
8 mike 1.2
|
9 chip 1.11 ifneq ($(OS), HPUX)
|
10 konrad.r 1.8 ifndef PEGASUS_LSB
11 EXTRA_INCLUDES = -Int_includes
12 endif
|
13 kumpf 1.4 endif
|
14 mike 1.2
15 LIBRARY = pegwql
16
|
17 schuur 1.7 LIBRARIES = \
|
18 chuck 1.13 pegcommon \
19 pegquerycommon
|
20 mike 1.2
21 SOURCES = \
|
22 chip 1.11 WQLSelectStatement.cpp \
|
23 chuck 1.12 WQLSelectStatementRep.cpp \
|
24 chip 1.11 WQLYACC.cpp \
25 WQLLEX.cpp \
26 WQLSimplePropertySource.cpp \
27 WQLPropertySource.cpp \
28 WQLInstancePropertySource.cpp \
29 WQLParserState.cpp \
30 WQLOperation.cpp \
31 WQLOperand.cpp \
32 WQLParser.cpp \
33 WQLQueryExpressionRep.cpp
|
34 mike 1.2
35 SOURCES_X = \
|
36 chip 1.11 WQLLEX.cpp \
|
37 mike 1.2
38 include $(ROOT)/mak/library.mak
|
39 konrad.r 1.9 include $(ROOT)/mak/install.mak
|
40 mike 1.2
41 ##------------------------------------------------------------------------------
42 ##
43 ## Rules to build LEX AND YACC sources:
44 ##
45 ## To make these files type: "make grammar"
46 ##
47 ##------------------------------------------------------------------------------
48
49
50 ##
|
51 chip 1.11 ## This pushes BISON_SIMPLE into the environment so that bison will use this
|
52 mike 1.2 ## rather than looking for /usr/local/share/bison.simple.
53 ##
54
55 grammar: yacc_rule lex_rule
56
57 export BISON_SIMPLE = bison.simple
58
59 ##
60 ## Lex rule:
61 ##
62 lex_rule:
63 $(LEX) -oWQLLEX.cpp -PWQL_ WQL.l
64 $(TOUCH) WQLLEX.cpp
65
66 ##
67 ## Yacc rule:
68 ##
69 yacc_rule:
70 ifeq ($(YACC),yacc)
71 $(YACC) -vd -p WQL_ WQL.y
|
72 kumpf 1.10 $(COPY) "y.tab.c" "WQLYACC.cpp"
73 $(COPY) "y.tab.h" "WQLYACC.h"
|
74 mike 1.2 $(RM) y.tab.c y.tab.h
75 $(TOUCH) WQLYACC.cpp WQLYACC.h
76 else
77 $(YACC) -vd -oWQLtemp -p WQL_ WQL.y
|
78 kumpf 1.10 $(COPY) "WQLtemp" "WQLYACC.cpp
79 $(COPY) "WQLtemp.h" "WQLYACC.h
|
80 mike 1.2 $(RM) WQLtemp WQLtemp.h WQLtemp.output wqltemp.out
81 $(TOUCH) WQLYACC.cpp WQLYACC.h
82 endif
|