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