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

 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 kumpf 1.6 ifneq ($(OS), HPUX) 
10 mike  1.2 EXTRA_INCLUDES = -Int_includes
11 kumpf 1.4 endif
12 mike  1.2 
13           LIBRARY = pegwql
14           
15 mike  1.3 LIBRARIES = pegcommon
16 mike  1.2 
17           SOURCES = \
18               WQLSelectStatement.cpp \
19               WQLYACC.cpp \
20               WQLLEX.cpp \
21               WQLSimplePropertySource.cpp \
22               WQLPropertySource.cpp \
23               WQLParserState.cpp \
24               WQLOperation.cpp \
25               WQLOperand.cpp \
26               WQLParser.cpp
27           
28           SOURCES_X = \
29               WQLLEX.cpp \
30           
31           include $(ROOT)/mak/library.mak
32           
33           ##------------------------------------------------------------------------------
34           ##
35           ## Rules to build LEX AND YACC sources:
36           ##
37 mike  1.2 ## To make these files type: "make grammar"
38           ##
39           ##------------------------------------------------------------------------------
40           
41           
42           ##
43           ## This pushes BISON_SIMPLE into the environment so that bison will use this 
44           ## rather than looking for /usr/local/share/bison.simple.
45           ##
46           
47           grammar: yacc_rule lex_rule
48           
49           export BISON_SIMPLE = bison.simple
50           
51           ##
52           ## Lex rule:
53           ##
54           lex_rule:
55           	$(LEX) -oWQLLEX.cpp -PWQL_ WQL.l
56           	$(TOUCH) WQLLEX.cpp
57           
58 mike  1.2 ##
59           ## Yacc rule:
60           ##
61           yacc_rule:
62           ifeq ($(YACC),yacc)
63           	$(YACC) -vd -p WQL_ WQL.y
64           	$(COPY) y.tab.c WQLYACC.cpp
65           	$(COPY) y.tab.h WQLYACC.h
66           	$(RM) y.tab.c y.tab.h
67           	$(TOUCH) WQLYACC.cpp WQLYACC.h
68           else
69           	$(YACC) -vd -oWQLtemp -p WQL_ WQL.y
70           	$(COPY) WQLtemp WQLYACC.cpp
71           	$(COPY) WQLtemp.h WQLYACC.h
72           	$(RM) WQLtemp WQLtemp.h WQLtemp.output wqltemp.out
73           	$(TOUCH) WQLYACC.cpp WQLYACC.h
74           endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2