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 \
82 APP1TARGET
=so
$/$(TARGET
)
85 APP1OBJS
=$(OBJ
)$/copyright_ascii_sun.obj
$(OBJ
)$/main.obj
122 .IF
"$(GUI)" == "UNX"
123 .IF
"$(OS)" == "LINUX" ||
"$(OS)" == "FREEBSD"
124 APP1STDLIBS
+= -lXext
-lSM
-lICE
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
185 .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
244 # --- Targets -------------------------------------------------------------
248 .IF
"$(APP1TARGETN)"!=""
249 $(APP1TARGETN
) : $(MISC
)$/binso_created.flg
250 .ENDIF
# "$(APP1TARGETN)"!=""
252 .IF
"$(APP5TARGETN)"!=""
253 $(APP5TARGETN
) : $(MISC
)$/binso_created.flg
254 .ENDIF
# "$(APP6TARGETN)"!=""
256 .IF
"$(APP6TARGETN)"!=""
257 $(APP6TARGETN
) : $(MISC
)$/binso_created.flg
258 .ENDIF
# "$(APP6TARGETN)"!=""
260 .IF
"$(GUI)" == "WNT"
261 ALLTAR
: $(MISC
)$/$(TARGET
).exe.manifest
262 ALLTAR
: $(MISC
)$/$(TARGET
).bin.manifest
263 ALLTAR
: $(BIN
)$/$(TARGET
).bin
264 ALLTAR
: $(BIN
)$/so
$/$(TARGET
).bin
267 .IF
"$(GUI)" == "OS2"
268 ALLTAR
: $(BIN
)$/$(TARGET
).bin
271 $(BIN
)$/soffice_oo
$(EXECPOST
) : $(APP5TARGETN
)
274 .IF
"$(GUI)" != "OS2"
275 $(BIN
)$/so
$/soffice_so
$(EXECPOST
) : $(APP1TARGETN
)
278 ALLTAR
: $(BIN
)$/so
$/soffice_so
$(EXECPOST
) $(BIN
)$/soffice_oo
$(EXECPOST
)
282 .IF
"$(OS)" == "MACOSX"
283 $(BIN
)$/so
$/soffice_mac
$(EXECPOST
) : $(APP1TARGETN
)
286 $(BIN
)$/soffice_mac
$(EXECPOST
) : $(APP5TARGETN
)
289 ALLTAR
: $(BIN
)$/so
$/soffice_mac
$(EXECPOST
) $(BIN
)$/soffice_mac
$(EXECPOST
)
293 .IF
"$(GUI)" == "WNT"
295 # create a manifest file with the same name as the
296 # office executable file soffice.exe.manifest
297 .IF
"$(CCNUMVER)" <= "001399999999"
298 $(MISC
)$/$(TARGET
).exe.manifest
: template.manifest
301 $(MISC
)$/$(TARGET
).exe.template.manifest
: template.manifest
304 $(MISC
)$/$(TARGET
).exe.linker.manifest
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
305 mt.exe
-inputresource
:$(BIN
)$/$(TARGET
)$(EXECPOST
) -out
:$@
307 $(MISC
)$/$(TARGET
).exe.manifest
: $(MISC
)$/$(TARGET
).exe.template.manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
308 mt.exe
-manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
$(MISC
)$/$(TARGET
).exe.template.manifest
-out
:$@
311 # create a manifest file with the same name as the
312 # office executable file soffice.bin.manifest
313 .IF
"$(CCNUMVER)" <= "001399999999"
314 $(MISC
)$/$(TARGET
).bin.manifest
: template.manifest
317 $(MISC
)$/$(TARGET
).bin.manifest
: $(MISC
)$/$(TARGET
).exe.manifest
318 $(COPY
) $(MISC
)$/$(TARGET
).exe.manifest
$@
321 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
324 $(BIN
)$/so
$/$(TARGET
).bin
: $(BIN
)$/so
$/$(TARGET
)$(EXECPOST
)
329 .IF
"$(GUI)" == "OS2"
330 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
334 $(MISC
)$/binso_created.flg
:
335 @@
-$(MKDIRHIER
) $(BIN
)$/so
&& $(TOUCH
) $@