2 martin 1.2 #//
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.
|
13 martin 1.2 #//
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 bob 1.1 ROOT = ../../..
32
33 DIR = Pegasus/Compiler
34
35 include $(ROOT)/mak/config.mak
36
37 EXTRA_INCLUDES = $(SYS_INCLUDES)
38
39 ifeq ($(OS_TYPE),windows)
40 EXTRA_INCLUDES += -I./nt_includes
41 endif
42
43 LOCAL_DEFINES = -DPEGASUS_COMPILER_INTERNAL
44
45 ## This pushes BISON_SIMPLE into the environment so that
46 ## bison will use this rather than looking for /usr/local/share/bison.simple.
47
48 export BISON_SIMPLE = bison.simple
49
50 all: cimmof_tab.cpp cimmof_tab.h cimmof_lex.cpp
51
52 bob 1.1 cimmof_tab.cpp cimmof_tab.h: cimmof.y
53 ifeq ($(YACC),yacc)
54 $(YACC) -vd -p cimmof_ cimmof.y
55 $(COPY) y.tab.c cimmof_tab.cpp
56 $(COPY) y.tab.h cimmof_tab.h
57 $(RM) y.tab.c y.tab.h
58 else
59 $(YACC) -vd -ocimmoftemp -p cimmof_ cimmof.y
60 $(COPY) cimmoftemp cimmof_tab.cpp
61 $(COPY) cimmoftemp.h cimmof_tab.h
62 $(RM) cimmoftemp cimmoftemp.h
63 endif
64
65 cimmof_lex.cpp: cimmof.l cimmof_tab.h
66 $(LEX) -ocimmof_lex.cpp -Pcimmof_ cimmof.l
67
68 include $(ROOT)/mak/config.mak
69
70 clean:
71 $(RM) cimmof_lex.cpp cimmof_tab.cpp cimmof_tab.h cimmoftemp.out cimmoftemp.output
|