merge the formfield patch from ooo-build
[ooovba.git] / transex3 / source / makefile.mk
blob68b94a5b58fab78d26d455cb748fa3b747b62013
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.46 $
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 INCPRE=$(MISC)
36 PRJNAME=transex3
37 TARGET=transex
38 TARGETTYPE=CUI
39 LIBTARGET=no
40 # --- Settings -----------------------------------------------------
41 ENABLE_EXCEPTIONS=TRUE
43 .INCLUDE : settings.mk
44 CDEFS+= -DYY_NEVER_INTERACTIVE=1
45 #CDEFS+= -pg
47 .IF "$(SYSTEM_EXPAT)" == "YES"
48 CFLAGS+=-DSYSTEM_EXPAT
49 .ENDIF
52 # --- Files --------------------------------------------------------
54 OBJFILES= \
55 $(OBJ)$/export.obj \
56 $(OBJ)$/export2.obj \
57 $(OBJ)$/merge.obj \
58 $(OBJ)$/srciter.obj \
59 $(OBJ)$/utf8conv.obj \
60 $(OBJ)$/xmlparse.obj \
61 $(OBJ)$/helpmerge.obj \
62 $(OBJ)$/helpex.obj \
63 $(OBJ)$/file.obj \
64 $(OBJ)$/directory.obj \
65 $(OBJ)$/hw2fw.obj
67 LIB1TARGET= $(LB)$/$(TARGET).lib
68 LIB1ARCHIV= $(LB)$/libtransex.a
69 #LIB1FILES= $(LB)$/transex3.lib
70 LIB1OBJFILES= $(OBJ)$/export.obj \
71 $(OBJ)$/export2.obj \
72 $(OBJ)$/merge.obj \
73 $(OBJ)$/srciter.obj \
74 $(OBJ)$/file.obj \
75 $(OBJ)$/directory.obj \
76 $(OBJ)$/utf8conv.obj \
77 $(OBJ)$/hw2fw.obj
79 APP1VERSIONMAP=exports.map
81 # extractor and merger for *.src and *.hrc
82 APP1TARGET= transex3
83 #APP1OBJS= $(OBJ)$/src_yy.obj
84 APP1OBJS= $(OBJ)$/src_yy_wrapper.obj
86 APP1STDLIBS+= \
87 $(TOOLSLIB) \
88 $(VOSLIB) \
89 $(SALLIB)
91 .IF "$(OS)"=="MACOSX"
92 # static libs at end for OS X
93 .ENDIF
95 APP1LIBS+= $(LB)$/$(TARGET).lib
96 APP1DEPN= $(OBJ)$/src_yy_wrapper.obj $(LB)$/$(TARGET).lib
98 APP2TARGET= helpex
99 APP2OBJS= $(OBJ)$/helpmerge.obj $(OBJ)$/xmlparse.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj $(OBJ)$/merge.obj $(OBJ)$/helpex.obj $(OBJ)$/hw2fw.obj
100 APP2RPATH= NONE
102 .IF "$(OS)"!="MACOSX"
103 .ENDIF
105 APP2STDLIBS+=$(SALLIB) $(EXPATASCII3RDLIB) $(TOOLSLIB) $(VOSLIB)
107 .IF "$(OS)"=="MACOSX"
108 # static libs at end for OS X
109 .ENDIF
111 # extractor and merger for *.lng and *.lng
112 APP3TARGET= ulfex
113 APP3OBJS= $(OBJ)$/lngmerge.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/lngex.obj $(OBJ)$/utf8conv.obj
114 APP3RPATH= NONE
116 .IF "$(OS)"!="MACOSX"
117 #APP3STDLIBS+= $(BTSTRPLIB)
118 .ENDIF
119 APP3STDLIBS+= \
120 $(TOOLSLIB) \
121 $(VOSLIB) \
122 $(SALLIB)
123 .IF "$(OS)"=="MACOSX"
124 # static libs at end for OS X
125 .ENDIF
127 # encoding converter for *.gsi
128 APP4TARGET= gsiconv
129 APP4OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/gsiconv.obj
130 APP4STDLIBS+= \
131 $(TOOLSLIB) \
132 $(VOSLIB) \
133 $(SALLIB)
135 # tag checker for *.gsi
136 APP5TARGET= gsicheck
137 APP5OBJS= $(OBJ)$/gsicheck.obj $(OBJ)$/tagtest.obj
138 APP5STDLIBS+= \
139 $(TOOLSLIB) \
140 $(VOSLIB) \
141 $(SALLIB)
143 # extractor and merger for *.cfg
144 APP6TARGET= cfgex
145 APP6OBJS= $(OBJ)$/cfgmerge.obj $(OBJ)$/cfg_yy_wrapper.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
147 .IF "$(OS)"!="MACOSX"
148 #APP6STDLIBS+= $(BTSTRPLIB)
149 .ENDIF
151 APP6STDLIBS+= \
152 $(TOOLSLIB) \
153 $(VOSLIB) \
154 $(SALLIB)
156 .IF "$(OS)"=="MACOSX"
157 # static libs at end for OS X
158 .ENDIF
160 # extractor and merger for *.xrm
161 APP7TARGET= xrmex
162 APP7OBJS= $(OBJ)$/xrmmerge.obj $(OBJ)$/xrm_yy_wrapper.obj $(OBJ)$/hw2fw.obj $(OBJ)$/merge.obj $(OBJ)$/export2.obj $(OBJ)$/utf8conv.obj
163 APP7RPATH= NONE
165 .IF "$(OS)"!="MACOSX"
166 .ENDIF
168 APP7STDLIBS+= \
169 $(TOOLSLIB) \
170 $(VOSLIB) \
171 $(SALLIB)
173 .IF "$(OS)"=="MACOSX"
174 # static libs at end for OS X
175 .ENDIF
177 # encoding converter for text files
178 APP8TARGET= txtconv
179 #APP8STACK= 16000
180 APP8OBJS= $(OBJ)$/utf8conv.obj $(OBJ)$/txtconv.obj $(OBJ)$/hw2fw.obj
181 APP8STDLIBS=$(TOOLSLIB) $(SALLIB)
183 # localizer for l10n framework
184 APP9TARGET= localize_sl
185 EXCEPTIONSFILES= \
186 $(OBJ)$/localize.obj
187 APP9OBJS= $(OBJ)$/localize.obj $(OBJ)$/utf8conv.obj $(OBJ)$/srciter.obj $(OBJ)$/export2.obj $(OBJ)$/file.obj $(OBJ)$/directory.obj
189 APP9STDLIBS+= \
190 $(TOOLSLIB) \
191 $(VOSLIB) \
192 $(SALLIB)
194 DEPOBJFILES=$(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS) $(APP6OBJS) $(APP7OBJS) $(APP8OBJS) $(APP9OBJS)
196 # --- Targets ------------------------------------------------------
198 .INCLUDE : target.mk
200 $(MISC)$/%_yy.c : %lex.l
201 flex -l -w -8 -o$@ $<
203 # Helper to suppress warnings in lex generated c code, see #i57362#
205 $(OBJ)$/src_yy_wrapper.obj: $(MISC)$/src_yy.c
206 $(OBJ)$/cfg_yy_wrapper.obj: $(MISC)$/cfg_yy.c
207 $(OBJ)$/xrm_yy_wrapper.obj: $(MISC)$/xrm_yy.c