xref: /aoo41x/main/idlc/source/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=idlc
27cdf0e10cSrcweirTARGET=idlc
28cdf0e10cSrcweirTARGETTYPE=CUI
29cdf0e10cSrcweirLIBTARGET=NO
30cdf0e10cSrcweir
31cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
32cdf0e10cSrcweirINCPRE=$(MISC)
33cdf0e10cSrcweir
34cdf0e10cSrcweir.IF "$(GUI)" == "OS2"
35cdf0e10cSrcweirSTL_OS2_BUILDING=1
36cdf0e10cSrcweir.ENDIF
37cdf0e10cSrcweir
38cdf0e10cSrcweir# --- Settings -----------------------------------------------------
39cdf0e10cSrcweir
40cdf0e10cSrcweir
41cdf0e10cSrcweir.INCLUDE :  settings.mk
42cdf0e10cSrcweir
43cdf0e10cSrcweir# --- Files --------------------------------------------------------
44cdf0e10cSrcweir
45cdf0e10cSrcweirCXXFILES=   \
46cdf0e10cSrcweir			wrap_scanner.cxx \
47cdf0e10cSrcweir			wrap_parser.cxx	\
48cdf0e10cSrcweir			idlcmain.cxx	\
49cdf0e10cSrcweir			idlc.cxx	\
50cdf0e10cSrcweir			idlccompile.cxx	\
51cdf0e10cSrcweir			idlcproduce.cxx	\
52cdf0e10cSrcweir			errorhandler.cxx	\
53cdf0e10cSrcweir			options.cxx	\
54cdf0e10cSrcweir			fehelper.cxx	\
55cdf0e10cSrcweir			astdeclaration.cxx \
56cdf0e10cSrcweir			astscope.cxx \
57cdf0e10cSrcweir			aststack.cxx \
58cdf0e10cSrcweir			astdump.cxx \
59cdf0e10cSrcweir			astinterface.cxx \
60cdf0e10cSrcweir			aststruct.cxx \
61cdf0e10cSrcweir            aststructinstance.cxx \
62cdf0e10cSrcweir			astoperation.cxx \
63cdf0e10cSrcweir			astconstant.cxx \
64cdf0e10cSrcweir			astenum.cxx \
65cdf0e10cSrcweir			astarray.cxx \
66cdf0e10cSrcweir			astunion.cxx \
67cdf0e10cSrcweir			astexpression.cxx \
68cdf0e10cSrcweir            astservice.cxx
69cdf0e10cSrcweir
70cdf0e10cSrcweirYACCTARGET=$(MISC)$/parser.cxx
71cdf0e10cSrcweirYACCFILES=parser.y
72cdf0e10cSrcweir
73cdf0e10cSrcweirOBJFILES=   \
74cdf0e10cSrcweir			$(OBJ)$/wrap_scanner.obj	\
75cdf0e10cSrcweir			$(OBJ)$/wrap_parser.obj	\
76cdf0e10cSrcweir			$(OBJ)$/idlcmain.obj	\
77cdf0e10cSrcweir			$(OBJ)$/idlc.obj	\
78cdf0e10cSrcweir			$(OBJ)$/idlccompile.obj	\
79cdf0e10cSrcweir			$(OBJ)$/idlcproduce.obj	\
80cdf0e10cSrcweir			$(OBJ)$/errorhandler.obj	\
81cdf0e10cSrcweir			$(OBJ)$/options.obj	\
82cdf0e10cSrcweir			$(OBJ)$/fehelper.obj	\
83cdf0e10cSrcweir			$(OBJ)$/astdeclaration.obj	\
84cdf0e10cSrcweir			$(OBJ)$/astscope.obj	\
85cdf0e10cSrcweir			$(OBJ)$/aststack.obj	\
86cdf0e10cSrcweir			$(OBJ)$/astdump.obj	\
87cdf0e10cSrcweir			$(OBJ)$/astinterface.obj	\
88cdf0e10cSrcweir			$(OBJ)$/aststruct.obj	\
89cdf0e10cSrcweir            $(OBJ)$/aststructinstance.obj \
90cdf0e10cSrcweir			$(OBJ)$/astoperation.obj	\
91cdf0e10cSrcweir			$(OBJ)$/astconstant.obj	\
92cdf0e10cSrcweir			$(OBJ)$/astenum.obj	\
93cdf0e10cSrcweir			$(OBJ)$/astarray.obj	\
94cdf0e10cSrcweir			$(OBJ)$/astunion.obj	\
95cdf0e10cSrcweir			$(OBJ)$/astexpression.obj \
96cdf0e10cSrcweir            $(OBJ)$/astservice.obj
97cdf0e10cSrcweir
98cdf0e10cSrcweirAPP1TARGET= $(TARGET)
99cdf0e10cSrcweirAPP1OBJS=   $(OBJFILES)
100cdf0e10cSrcweir
101cdf0e10cSrcweirAPP1RPATH=SDK
102cdf0e10cSrcweir
103cdf0e10cSrcweirAPP1STDLIBS = \
104cdf0e10cSrcweir    $(REGLIB) \
105cdf0e10cSrcweir    $(SALLIB) \
106cdf0e10cSrcweir    $(SALHELPERLIB)
107cdf0e10cSrcweir
108cdf0e10cSrcweir# --- Targets ------------------------------------------------------
109cdf0e10cSrcweir
110cdf0e10cSrcweir.IF "$(debug)" == ""
111cdf0e10cSrcweirYACCFLAGS+=-l
112cdf0e10cSrcweir.ELSE
113cdf0e10cSrcweirYACCFLAGS+=-v
114cdf0e10cSrcweir.ENDIF
115cdf0e10cSrcweir
116cdf0e10cSrcweir.INCLUDE :  target.mk
117cdf0e10cSrcweir
118cdf0e10cSrcweir$(MISC)$/stripped_scanner.ll : scanner.ll
119cdf0e10cSrcweir	tr -d "\015" < scanner.ll > $(MISC)$/stripped_scanner.ll
120cdf0e10cSrcweir
121cdf0e10cSrcweir$(MISC)$/scanner.cxx:	$(MISC)$/stripped_scanner.ll
122cdf0e10cSrcweir	flex -o$(MISC)$/scanner.cxx $(MISC)$/stripped_scanner.ll
123cdf0e10cSrcweir
124cdf0e10cSrcweir$(OBJ)$/wrap_parser.obj: $(MISC)$/parser.cxx
125cdf0e10cSrcweir$(OBJ)$/wrap_scanner.obj: $(MISC)$/scanner.cxx
126