1 martin 1.27 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.28 #//
|
3 martin 1.27 #// 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.28 #//
|
10 martin 1.27 #// 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.28 #//
|
17 martin 1.27 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.28 #//
|
20 martin 1.27 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.28 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.27 #// 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.28 #//
|
28 martin 1.27 #//////////////////////////////////////////////////////////////////////////
|
29 bob 1.9 #
30 # NOTE: The grammar and parser are no longer built in this makefile,
|
31 kumpf 1.30 # and in fact flex and bison are assumed to already have been run
|
32 karl 1.32 # and their output committed to CVS. To rebuild the compiler grammar, run
|
33 karl 1.29 # make grammar
34 # which executes the grammar makefile
35 # to generate cimmof_tab.cpp, cimmof_tab.h, and cimmof_lex.cpp.
36 # Remember to commit them afterwards.
|
37 karl 1.32 # Please read the warnings in Makefile.grammar before trying to commit
38 # changes to the compiler.
|
39 bob 1.9 #
40
|
41 bob 1.1 ROOT = ../../..
42
43 DIR = Pegasus/Compiler
44
45 include $(ROOT)/mak/config.mak
46
|
47 mike 1.6 EXTRA_INCLUDES = $(SYS_INCLUDES)
|
48 bob 1.1
49 ifeq ($(OS_TYPE),windows)
|
50 carson.hovey 1.25 EXTRA_INCLUDES += -I./nt_includes
|
51 bob 1.1 endif
52
53 LOCAL_CLEAN_TARGET = local_clean_target
54
|
55 kumpf 1.15 LOCAL_DEFINES = -DPEGASUS_COMPILER_INTERNAL -DPEGASUS_INTERNALONLY
|
56 bob 1.1
|
57 carson.hovey 1.25 ifeq ($(OS_TYPE),vms)
58 STATIC=1
59 endif
60
|
61 bob 1.1 LIBRARY = pegcompiler
62
63 LIBRARIES = \
|
64 carson.hovey 1.25 pegclient \
|
65 bob 1.14 pegrepository \
|
66 mike 1.21 pegconfig \
|
67 kavita.gupta 1.31 peggeneral \
|
68 mike 1.21 pegcommon
|
69 kumpf 1.11
|
70 bob 1.1 PRE_DEPEND_INCLUDES = -I./depends
71
|
72 kumpf 1.23 SOURCES = \
73 cimmof_lex_wrapper.cpp \
74 cimmofParser.cpp \
75 cimmofMessages.cpp \
76 cimmofRepositoryInterface.cpp \
77 cimmofClient.cpp \
78 cimmofRepository.cpp \
79 cimmof_tab_wrapper.cpp \
80 parser.cpp \
81 valueFactory.cpp \
82 compilerDeclContext.cpp
|
83 bob 1.1
|
84 mike 1.26 ifdef PEGASUS_ENABLE_MRR_GENERATION
85 SOURCES += cimmofMRR.cpp
86 SOURCES += Closure.cpp
87 LOCAL_DEFINES += -DPEGASUS_ENABLE_MRR_GENERATION
88 endif
89
|
90 carson.hovey 1.25 include $(ROOT)/mak/dynamic-library.mak
|
91 mike 1.3
|
92 mike 1.4 $(OBJ_DIR)/cimmof_tab_wrapper$(OBJ) : cimmof_tab.cpp
93
94 $(OBJ_DIR)/cimmof_lex_wrapper$(OBJ) : cimmof_lex.cpp
95
|
96 bob 1.1 local_clean_target:
|
97 bob 1.9 $(RM) cimmoftemp.out cimmoftemp.output
|
98 karl 1.29
99 ## Make the grammar files by executing Makefile.grammar
100 grammar:
101 make -f Makefile.grammar
|