update dev300-m58
[ooovba.git] / idlc / source / makefile.mk
blob5f7b1d12ade6506a9de104d64c4fc39458582db1
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.17 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
34 PRJNAME=idlc
35 TARGET=idlc
36 TARGETTYPE=CUI
37 LIBTARGET=NO
39 ENABLE_EXCEPTIONS=TRUE
40 INCPRE=$(MISC)
42 .IF "$(GUI)" == "OS2"
43 STL_OS2_BUILDING=1
44 .ENDIF
46 # --- Settings -----------------------------------------------------
49 .INCLUDE : settings.mk
51 # --- Files --------------------------------------------------------
53 CXXFILES= \
54 wrap_scanner.cxx \
55 wrap_parser.cxx \
56 idlcmain.cxx \
57 idlc.cxx \
58 idlccompile.cxx \
59 idlcproduce.cxx \
60 errorhandler.cxx \
61 options.cxx \
62 fehelper.cxx \
63 astdeclaration.cxx \
64 astscope.cxx \
65 aststack.cxx \
66 astdump.cxx \
67 astinterface.cxx \
68 aststruct.cxx \
69 aststructinstance.cxx \
70 astoperation.cxx \
71 astconstant.cxx \
72 astenum.cxx \
73 astarray.cxx \
74 astunion.cxx \
75 astexpression.cxx \
76 astservice.cxx
78 YACCTARGET=$(MISC)$/parser.cxx
79 YACCFILES=parser.y
81 OBJFILES= \
82 $(OBJ)$/wrap_scanner.obj \
83 $(OBJ)$/wrap_parser.obj \
84 $(OBJ)$/idlcmain.obj \
85 $(OBJ)$/idlc.obj \
86 $(OBJ)$/idlccompile.obj \
87 $(OBJ)$/idlcproduce.obj \
88 $(OBJ)$/errorhandler.obj \
89 $(OBJ)$/options.obj \
90 $(OBJ)$/fehelper.obj \
91 $(OBJ)$/astdeclaration.obj \
92 $(OBJ)$/astscope.obj \
93 $(OBJ)$/aststack.obj \
94 $(OBJ)$/astdump.obj \
95 $(OBJ)$/astinterface.obj \
96 $(OBJ)$/aststruct.obj \
97 $(OBJ)$/aststructinstance.obj \
98 $(OBJ)$/astoperation.obj \
99 $(OBJ)$/astconstant.obj \
100 $(OBJ)$/astenum.obj \
101 $(OBJ)$/astarray.obj \
102 $(OBJ)$/astunion.obj \
103 $(OBJ)$/astexpression.obj \
104 $(OBJ)$/astservice.obj
106 APP1TARGET= $(TARGET)
107 APP1OBJS= $(OBJFILES)
109 APP1RPATH=SDK
111 APP1STDLIBS = \
112 $(REGLIB) \
113 $(SALLIB) \
114 $(SALHELPERLIB)
116 # --- Targets ------------------------------------------------------
118 .IF "$(debug)" == ""
119 YACCFLAGS+=-l
120 .ELSE
121 YACCFLAGS+=-v
122 .ENDIF
124 .INCLUDE : target.mk
126 $(MISC)$/stripped_scanner.ll : scanner.ll
127 .IF "$(GUI)"=="UNX" || "$(USE_SHELL)" != "4nt"
128 tr -d "\015" < scanner.ll > $(MISC)$/stripped_scanner.ll
129 .ELSE
130 cat scanner.ll > $(MISC)$/stripped_scanner.ll
131 .ENDIF
133 $(MISC)$/scanner.cxx: $(MISC)$/stripped_scanner.ll
134 flex -o$(MISC)$/scanner.cxx $(MISC)$/stripped_scanner.ll
136 $(OBJ)$/wrap_parser.obj: $(MISC)$/parser.cxx
137 $(OBJ)$/wrap_scanner.obj: $(MISC)$/scanner.cxx