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

 1 martin 1.4 #//%LICENSE////////////////////////////////////////////////////////////////
 2 martin 1.5 #//
 3 martin 1.4 #// Licensed to The Open Group (TOG) under one or more contributor license
 4            #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 5            #// this work for additional information regarding copyright ownership.
 6            #// Each contributor licenses this file to you under the OpenPegasus Open
 7            #// Source License; you may not use this file except in compliance with the
 8            #// License.
 9 martin 1.5 #//
10 martin 1.4 #// Permission is hereby granted, free of charge, to any person obtaining a
11            #// copy of this software and associated documentation files (the "Software"),
12            #// to deal in the Software without restriction, including without limitation
13            #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14            #// and/or sell copies of the Software, and to permit persons to whom the
15            #// Software is furnished to do so, subject to the following conditions:
16 martin 1.5 #//
17 martin 1.4 #// The above copyright notice and this permission notice shall be included
18            #// in all copies or substantial portions of the Software.
19 martin 1.5 #//
20 martin 1.4 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 martin 1.5 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 martin 1.4 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23            #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24            #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25            #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26            #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 martin 1.5 #//
28 martin 1.4 #//////////////////////////////////////////////////////////////////////////
29 dev.meetei 1.7 
30                ##############################################################
31                # Update the flex version in the following line to reflect
32                # the version of flex used the last time the parser files
33                # were generated. Never use an older version of flex than
34                # indicated here. All of the generated files should be committed
35                # after adding the OpenPegasus license to the top of each.
36                # *************   REQUIRES FLEX 2.5.35 or later   ***********
37                # Update the Bison version in the following line to reflect
38                # the version of Bison used the last time the parser files
39                # were generated. Never use an older version of Bison than
40                # indicated here. All of the generated files should be committed
41                # after adding the OpenPegasus license to the top of each.
42                # *************   REQUIRES BISON 2.3 or later   ***********
43                ############################################################## 
44                
45 bob        1.1 ROOT = ../../..
46                
47                DIR = Pegasus/Compiler
48                
49                include $(ROOT)/mak/config.mak
50                
51                EXTRA_INCLUDES = $(SYS_INCLUDES)
52                
53                ifeq ($(OS_TYPE),windows)
54                EXTRA_INCLUDES += -I./nt_includes
55                endif
56                
57                LOCAL_DEFINES = -DPEGASUS_COMPILER_INTERNAL
58                
59                ## This pushes BISON_SIMPLE into the environment so that
60                ## bison will use this rather than looking for /usr/local/share/bison.simple.
61                
62                export BISON_SIMPLE = bison.simple
63                
64                all: cimmof_tab.cpp cimmof_tab.h cimmof_lex.cpp
65                
66 bob        1.1 cimmof_tab.cpp cimmof_tab.h: cimmof.y
67                ifeq ($(YACC),yacc)
68                	$(YACC) -vd -p cimmof_ cimmof.y
69                	$(COPY) y.tab.c cimmof_tab.cpp
70                	$(COPY) y.tab.h cimmof_tab.h
71                	$(RM) y.tab.c y.tab.h
72                else
73                	$(YACC) -vd -ocimmoftemp -p cimmof_ cimmof.y
74                	$(COPY) cimmoftemp cimmof_tab.cpp
75                	$(COPY) cimmoftemp.h cimmof_tab.h
76                	$(RM) cimmoftemp cimmoftemp.h
77                endif
78 karl       1.6 	mu prepend ../nochksrc.txt cimmof_tab.cpp
79                	mu prepend ../nochksrc.txt cimmof_tab.h
80 bob        1.1 
81                cimmof_lex.cpp: cimmof.l cimmof_tab.h
82                	$(LEX) -ocimmof_lex.cpp -Pcimmof_ cimmof.l
83 karl       1.6 	mu prepend ../nochksrc.txt cimmof_lex.cpp
84 bob        1.1 
85 karl       1.6 ## Clean out the files generated by lex and yacc
86 bob        1.1 clean:
87 karl       1.6 	$(RM) cimmof_lex.cpp cimmof_tab.cpp cimmof_tab.h cimmoftemp.out \
88                	cimmoftemp.output

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2