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