1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
40 # --- Settings -----------------------------------------------------
41 ENABLE_EXCEPTIONS
=TRUE
43 .INCLUDE
: settings.mk
44 CDEFS
+= -DYY_NEVER_INTERACTIVE
=1
47 .IF
"$(SYSTEM_EXPAT)" == "YES"
48 CFLAGS
+=-DSYSTEM_EXPAT
52 # --- Files --------------------------------------------------------
59 $(OBJ
)$/utf8conv.obj \
60 $(OBJ
)$/xmlparse.obj \
61 $(OBJ
)$/helpmerge.obj \
64 $(OBJ
)$/directory.obj \
67 LIB1TARGET
= $(LB
)$/$(TARGET
).lib
68 LIB1ARCHIV
= $(LB
)$/libtransex.a
69 #LIB1FILES= $(LB)$/transex3.lib
70 LIB1OBJFILES
= $(OBJ
)$/export.obj \
75 $(OBJ
)$/directory.obj \
76 $(OBJ
)$/utf8conv.obj \
79 APP1VERSIONMAP
=exports.map
81 # extractor and merger for *.src and *.hrc
83 #APP1OBJS= $(OBJ)$/src_yy.obj
84 APP1OBJS
= $(OBJ
)$/src_yy_wrapper.obj
92 # static libs at end for OS X
95 APP1LIBS
+= $(LB
)$/$(TARGET
).lib
96 APP1DEPN
= $(OBJ
)$/src_yy_wrapper.obj
$(LB
)$/$(TARGET
).lib
99 APP2OBJS
= $(OBJ
)$/helpmerge.obj
$(OBJ
)$/xmlparse.obj
$(OBJ
)$/export2.obj
$(OBJ
)$/utf8conv.obj
$(OBJ
)$/merge.obj
$(OBJ
)$/helpex.obj
$(OBJ
)$/hw2fw.obj
102 .IF
"$(OS)"!="MACOSX"
105 APP2STDLIBS
+=$(SALLIB
) $(EXPATASCII3RDLIB
) $(TOOLSLIB
) $(VOSLIB
)
107 .IF
"$(OS)"=="MACOSX"
108 # static libs at end for OS X
111 # extractor and merger for *.lng and *.lng
113 APP3OBJS
= $(OBJ
)$/lngmerge.obj
$(OBJ
)$/hw2fw.obj
$(OBJ
)$/merge.obj
$(OBJ
)$/export2.obj
$(OBJ
)$/lngex.obj
$(OBJ
)$/utf8conv.obj
116 .IF
"$(OS)"!="MACOSX"
117 #APP3STDLIBS+= $(BTSTRPLIB)
123 .IF
"$(OS)"=="MACOSX"
124 # static libs at end for OS X
127 # encoding converter for *.gsi
129 APP4OBJS
= $(OBJ
)$/utf8conv.obj
$(OBJ
)$/gsiconv.obj
135 # tag checker for *.gsi
137 APP5OBJS
= $(OBJ
)$/gsicheck.obj
$(OBJ
)$/tagtest.obj
143 # extractor and merger for *.cfg
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)
156 .IF
"$(OS)"=="MACOSX"
157 # static libs at end for OS X
160 # extractor and merger for *.xrm
162 APP7OBJS
= $(OBJ
)$/xrmmerge.obj
$(OBJ
)$/xrm_yy_wrapper.obj
$(OBJ
)$/hw2fw.obj
$(OBJ
)$/merge.obj
$(OBJ
)$/export2.obj
$(OBJ
)$/utf8conv.obj
165 .IF
"$(OS)"!="MACOSX"
173 .IF
"$(OS)"=="MACOSX"
174 # static libs at end for OS X
177 # encoding converter for text files
180 APP8OBJS
= $(OBJ
)$/utf8conv.obj
$(OBJ
)$/txtconv.obj
$(OBJ
)$/hw2fw.obj
181 APP8STDLIBS
=$(TOOLSLIB
) $(SALLIB
)
183 # localizer for l10n framework
184 APP9TARGET
= localize_sl
187 APP9OBJS
= $(OBJ
)$/localize.obj
$(OBJ
)$/utf8conv.obj
$(OBJ
)$/srciter.obj
$(OBJ
)$/export2.obj
$(OBJ
)$/file.obj
$(OBJ
)$/directory.obj
194 DEPOBJFILES
=$(APP1OBJS
) $(APP2OBJS
) $(APP3OBJS
) $(APP4OBJS
) $(APP5OBJS
) $(APP6OBJS
) $(APP7OBJS
) $(APP8OBJS
) $(APP9OBJS
)
196 # --- Targets ------------------------------------------------------
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