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 #*************************************************************************
41 # --- Settings -----------------------------------------------------------
43 .INCLUDE
: settings.mk
49 # --- Resourcen ----------------------------------------------------
58 # --- Linken der Applikation ---------------------------------------
60 .IF
"$(OS)" == "MACOSX"
61 LINKFLAGSAPPGUI
!:= $(LINKFLAGSAPPGUI
:s
/-bind_at_load
//)
64 #.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" || "$(OS)" == "NETBSD"
65 ## #74158# linux needs sal/vos/tools at end of link list, solaris needs it first,
66 ## winXX is handled like solaris for now
68 #APP1_STDPOST=$(CPPULIB) $(CPPUHELPERLIB) $(UNOLIB) $(TOOLSLIB) \
71 #APP1_STDPRE=$(SALLIB) $(VOSLIB) $(TOOLSLIB) $(UNOLIB) $(CPPULIB) \
77 RESLIB1IMAGES
= $(PRJ
)$/res
78 RESLIB1SRSFILES
= $(SRS
)$/desktop.srs \
81 .IF
"$(L10N_framework)"==""
83 APP1TARGET
=so
$/$(TARGET
)
86 APP1OBJS
=$(OBJ
)$/copyright_ascii_sun.obj
$(OBJ
)$/main.obj
122 .IF
"$(GUI)" == "UNX"
123 .IF
"$(OS)" == "LINUX" ||
"$(OS)" == "FREEBSD"
128 APP1DEPN
= $(APP1RES
) verinfo.rc
130 .IF
"$(GUI)" == "WNT"
131 APP1RES
= $(RES
)$/desktop.res
132 APP1ICON
=$(SOLARRESDIR
)$/icons
/so9_main_app.ico
133 APP1VERINFO
=verinfo.rc
134 APP1LINKRES
=$(MISC
)$/$(TARGET
)1.res
137 # create a manifest file with the same name as the
138 #office executable file soffice.exe.manifest
139 #$(BIN)$/$(TARGET).exe.manifest: template.manifest
144 .ENDIF
# "$(GUI)" != "OS2"
149 APP5OBJS
=$(OBJ
)$/copyright_ascii_ooo.obj
$(OBJ
)$/main.obj
184 .IF
"$(OS)" == "LINUX"
186 #APP5STDLIBS+= -lXext -lSM -lICE
189 APP5DEPN
= $(APP1TARGETN
) $(APP5RES
) ooverinfo.rc
190 APP5DEF
= $(MISCX
)$/$(TARGET
).def
192 .IF
"$(GUI)" == "WNT"
193 APP5RES
= $(RES
)$/oodesktop.res
194 APP5ICON
=$(SOLARRESDIR
)$/icons
/ooo3_main_app.ico
195 APP5VERINFO
=ooverinfo.rc
196 APP5LINKRES
=$(MISC
)$/ooffice5.res
200 .IF
"$(GUI)" == "OS2"
202 APP5RES
= $(RES
)$/oodesktop.res
203 APP5ICON
=$(SOLARRESDIR
)$/icons
/ooo-main-app.ico
204 APP5VERINFO
=ooverinfo2.rc
205 APP5LINKRES
=$(MISC
)$/ooffice.res
208 .IF
"$(GUI)" == "WNT"
209 APP6TARGET
=so
$/officeloader
210 APP6RES
=$(RES
)$/soloader.res
212 APP6DEPN
= $(APP1TARGETN
) $(APP6RES
) verinfo.rc
213 APP6VERINFO
=verinfo.rc
214 APP6LINKRES
=$(MISC
)$/soffice6.res
215 APP6ICON
=$(SOLARRESDIR
)$/icons
/so9_main_app.ico
217 $(OBJ
)$/extendloaderenvironment.obj \
218 $(OBJ
)$/officeloader.obj \
219 $(SOLARLIBDIR
)$/pathutils-obj.obj
220 STDLIB6
=$(ADVAPI32LIB
) $(SHELL32LIB
) $(SHLWAPILIB
)
222 APP7TARGET
=officeloader
223 APP7RES
=$(RES
)$/ooloader.res
225 APP7DEPN
= $(APP1TARGETN
) $(APP7RES
) ooverinfo.rc
226 APP7VERINFO
=ooverinfo.rc
227 APP7LINKRES
=$(MISC
)$/ooffice7.res
228 APP7ICON
=$(SOLARRESDIR
)$/icons
/ooo3_main_app.ico
230 $(OBJ
)$/extendloaderenvironment.obj \
231 $(OBJ
)$/officeloader.obj \
232 $(SOLARLIBDIR
)$/pathutils-obj.obj
233 STDLIB7
=$(ADVAPI32LIB
) $(SHELL32LIB
) $(SHLWAPILIB
)
234 .ELIF
"$(OS)" == "MACOSX"
235 APP6TARGET
=officeloader
238 APP6OBJS
=$(OBJ
)$/copyright_ascii_ooo.obj
$(OBJ
)$/officeloader.obj
239 APP6STDLIBS
= $(SALLIB
)
240 APP5DEPN
= $(APP1TARGETN
) $(APP5RES
) ooverinfo.rc
241 APP5DEF
= $(MISCX
)$/$(TARGET
).def
246 # --- Targets -------------------------------------------------------------
250 .IF
"$(L10N_framework)"==""
252 .IF
"$(APP1TARGETN)"!=""
253 $(APP1TARGETN
) : $(MISC
)$/binso_created.flg
254 .ENDIF
# "$(APP1TARGETN)"!=""
256 .IF
"$(APP5TARGETN)"!=""
257 $(APP5TARGETN
) : $(MISC
)$/binso_created.flg
258 .ENDIF
# "$(APP6TARGETN)"!=""
260 .IF
"$(APP6TARGETN)"!=""
261 $(APP6TARGETN
) : $(MISC
)$/binso_created.flg
262 .ENDIF
# "$(APP6TARGETN)"!=""
264 .IF
"$(GUI)" == "WNT"
265 ALLTAR
: $(MISC
)$/$(TARGET
).exe.manifest
266 ALLTAR
: $(MISC
)$/$(TARGET
).bin.manifest
267 ALLTAR
: $(BIN
)$/$(TARGET
).bin
268 ALLTAR
: $(BIN
)$/so
$/$(TARGET
).bin
271 .IF
"$(GUI)" == "OS2"
272 ALLTAR
: $(BIN
)$/$(TARGET
).bin
275 $(BIN
)$/soffice_oo
$(EXECPOST
) : $(APP5TARGETN
)
278 .IF
"$(GUI)" != "OS2"
279 $(BIN
)$/so
$/soffice_so
$(EXECPOST
) : $(APP1TARGETN
)
282 ALLTAR
: $(BIN
)$/so
$/soffice_so
$(EXECPOST
) $(BIN
)$/soffice_oo
$(EXECPOST
)
286 .IF
"$(OS)" == "MACOSX"
287 $(BIN
)$/so
$/soffice_mac
$(EXECPOST
) : $(APP1TARGETN
)
290 $(BIN
)$/soffice_mac
$(EXECPOST
) : $(APP5TARGETN
)
293 ALLTAR
: $(BIN
)$/so
$/soffice_mac
$(EXECPOST
) $(BIN
)$/soffice_mac
$(EXECPOST
)
297 .IF
"$(GUI)" == "WNT"
299 # create a manifest file with the same name as the
300 # office executable file soffice.exe.manifest
301 .IF
"$(CCNUMVER)" <= "001399999999"
302 $(MISC
)$/$(TARGET
).exe.manifest
: template.manifest
305 $(MISC
)$/$(TARGET
).exe.template.manifest
: template.manifest
308 $(MISC
)$/$(TARGET
).exe.linker.manifest
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
309 mt.exe
-inputresource
:$(BIN
)$/$(TARGET
)$(EXECPOST
) -out
:$@
311 $(MISC
)$/$(TARGET
).exe.manifest
: $(MISC
)$/$(TARGET
).exe.template.manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
312 mt.exe
-manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
$(MISC
)$/$(TARGET
).exe.template.manifest
-out
:$@
315 # create a manifest file with the same name as the
316 # office executable file soffice.bin.manifest
317 .IF
"$(CCNUMVER)" <= "001399999999"
318 $(MISC
)$/$(TARGET
).bin.manifest
: template.manifest
321 $(MISC
)$/$(TARGET
).bin.manifest
: $(MISC
)$/$(TARGET
).exe.manifest
322 $(COPY
) $(MISC
)$/$(TARGET
).exe.manifest
$@
325 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
328 $(BIN
)$/so
$/$(TARGET
).bin
: $(BIN
)$/so
$/$(TARGET
)$(EXECPOST
)
333 .IF
"$(GUI)" == "OS2"
334 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
338 $(MISC
)$/binso_created.flg
:
339 @@
-$(MKDIRHIER
) $(BIN
)$/so
&& $(TOUCH
) $@