1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
37 # --- Settings -----------------------------------------------------------
39 .INCLUDE
: settings.mk
45 # --- Resourcen ----------------------------------------------------
54 # --- Linken der Applikation ---------------------------------------
56 .IF
"$(OS)" == "MACOSX"
57 LINKFLAGSAPPGUI
!:= $(LINKFLAGSAPPGUI
:s
/-bind_at_load
//)
60 #.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" || "$(OS)" == "NETBSD"
61 ## #74158# linux needs sal/vos/tools at end of link list, solaris needs it first,
62 ## winXX is handled like solaris for now
64 #APP1_STDPOST=$(CPPULIB) $(CPPUHELPERLIB) $(UNOLIB) $(TOOLSLIB) \
67 #APP1_STDPRE=$(SALLIB) $(VOSLIB) $(TOOLSLIB) $(UNOLIB) $(CPPULIB) \
73 RESLIB1IMAGES
= $(PRJ
)$/res
74 RESLIB1SRSFILES
= $(SRS
)$/desktop.srs \
77 .IF
"$(L10N_framework)"==""
78 .IF
"$(LINK_SO)"=="TRUE"
80 APP1TARGET
=so
$/$(TARGET
)
83 APP1OBJS
=$(OBJ
)$/copyright_ascii_sun.obj
$(OBJ
)$/main.obj
84 APP1STDLIBS
= $(SALLIB
) $(SOFFICELIB
)
85 APP1DEPN
= $(APP1RES
) verinfo.rc
88 APP1RES
= $(RES
)$/desktop.res
89 APP1ICON
=$(SOLARRESDIR
)$/icons
/so9_main_app.ico
90 APP1VERINFO
=verinfo.rc
91 APP1LINKRES
=$(MISC
)$/$(TARGET
)1.res
94 # create a manifest file with the same name as the
95 #office executable file soffice.exe.manifest
96 #$(BIN)$/$(TARGET).exe.manifest: template.manifest
101 .ENDIF
# "$(GUI)" != "OS2"
103 .ENDIF
# "$(LINK_SO)"=="TRUE"
108 APP5OBJS
=$(OBJ
)$/copyright_ascii_ooo.obj
$(OBJ
)$/main.obj
109 APP5STDLIBS
= $(SALLIB
) $(SOFFICELIB
)
110 .IF
"$(OS)" == "LINUX"
111 APP5STDLIBS
+= -lXext
-lX11
112 #APP5STDLIBS+= -lXext -lSM -lICE
115 APP5DEPN
= $(APP1TARGETN
) $(APP5RES
) ooverinfo.rc
116 APP5DEF
= $(MISCX
)$/$(TARGET
).def
118 .IF
"$(GUI)" == "WNT"
119 APP5RES
= $(RES
)$/oodesktop.res
120 APP5ICON
=$(SOLARRESDIR
)$/icons
/ooo3_main_app.ico
121 APP5VERINFO
=ooverinfo.rc
122 APP5LINKRES
=$(MISC
)$/ooffice5.res
126 .IF
"$(GUI)" == "OS2"
128 APP5RES
= $(RES
)$/oodesktop.res
129 APP5ICON
=$(SOLARRESDIR
)$/icons
/ooo-main-app.ico
130 APP5VERINFO
=ooverinfo2.rc
131 APP5LINKRES
=$(MISC
)$/ooffice.res
134 .IF
"$(GUI)" == "WNT"
135 .IF
"$(LINK_SO)"=="TRUE"
136 APP6TARGET
=so
$/officeloader
137 APP6RES
=$(RES
)$/soloader.res
139 APP6DEPN
= $(APP1TARGETN
) $(APP6RES
) verinfo.rc
140 APP6VERINFO
=verinfo.rc
141 APP6LINKRES
=$(MISC
)$/soffice6.res
142 APP6ICON
=$(SOLARRESDIR
)$/icons
/so9_main_app.ico
144 $(OBJ
)$/extendloaderenvironment.obj \
145 $(OBJ
)$/officeloader.obj \
146 $(SOLARLIBDIR
)$/pathutils-obj.obj
147 STDLIB6
=$(ADVAPI32LIB
) $(SHELL32LIB
) $(SHLWAPILIB
)
148 .ENDIF
# "$(LINK_SO)"=="TRUE"
150 APP7TARGET
=officeloader
151 APP7RES
=$(RES
)$/ooloader.res
153 APP7DEPN
= $(APP1TARGETN
) $(APP7RES
) ooverinfo.rc
154 APP7VERINFO
=ooverinfo.rc
155 APP7LINKRES
=$(MISC
)$/ooffice7.res
156 APP7ICON
=$(SOLARRESDIR
)$/icons
/ooo3_main_app.ico
158 $(OBJ
)$/extendloaderenvironment.obj \
159 $(OBJ
)$/officeloader.obj \
160 $(SOLARLIBDIR
)$/pathutils-obj.obj
161 STDLIB7
=$(ADVAPI32LIB
) $(SHELL32LIB
) $(SHLWAPILIB
)
162 .ELIF
"$(OS)" == "MACOSX"
163 APP6TARGET
=officeloader
166 APP6OBJS
=$(OBJ
)$/copyright_ascii_ooo.obj
$(OBJ
)$/officeloader.obj
167 APP6STDLIBS
= $(SALLIB
)
168 APP5DEPN
= $(APP1TARGETN
) $(APP5RES
) ooverinfo.rc
169 APP5DEF
= $(MISCX
)$/$(TARGET
).def
174 # --- Targets -------------------------------------------------------------
178 .IF
"$(L10N_framework)"==""
180 .IF
"$(APP1TARGETN)"!=""
181 $(APP1TARGETN
) : $(MISC
)$/binso_created.flg
182 .ENDIF
# "$(APP1TARGETN)"!=""
184 .IF
"$(APP5TARGETN)"!=""
185 $(APP5TARGETN
) : $(MISC
)$/binso_created.flg
186 .ENDIF
# "$(APP6TARGETN)"!=""
188 .IF
"$(APP6TARGETN)"!=""
189 $(APP6TARGETN
) : $(MISC
)$/binso_created.flg
190 .ENDIF
# "$(APP6TARGETN)"!=""
192 .IF
"$(GUI)" == "WNT"
193 ALLTAR
: $(MISC
)$/$(TARGET
).exe.manifest
194 ALLTAR
: $(MISC
)$/$(TARGET
).bin.manifest
195 ALLTAR
: $(BIN
)$/$(TARGET
).bin
196 .IF
"$(LINK_SO)"=="TRUE"
197 ALLTAR
: $(BIN
)$/so
$/$(TARGET
).bin
198 .ENDIF
# "$(LINK_SO)"=="TRUE"
201 .IF
"$(GUI)" == "OS2"
202 ALLTAR
: $(BIN
)$/$(TARGET
).bin
205 $(BIN
)$/soffice_oo
$(EXECPOST
) : $(APP5TARGETN
)
208 .IF
"$(GUI)" != "OS2"
209 .IF
"$(LINK_SO)"=="TRUE"
210 $(BIN
)$/so
$/soffice_so
$(EXECPOST
) : $(APP1TARGETN
)
213 ALLTAR
: $(BIN
)$/so
$/soffice_so
$(EXECPOST
)
214 .ENDIF
# "$(LINK_SO)"=="TRUE"
215 ALLTAR
: $(BIN
)$/soffice_oo
$(EXECPOST
)
218 .IF
"$(OS)" == "MACOSX"
219 .IF
"$(LINK_SO)"=="TRUE"
220 $(BIN
)$/so
$/soffice_mac
$(EXECPOST
) : $(APP1TARGETN
)
223 ALLTAR
: $(BIN
)$/so
$/soffice_mac
$(EXECPOST
)
224 .ENDIF
# "$(LINK_SO)"=="TRUE"
226 $(BIN
)$/soffice_mac
$(EXECPOST
) : $(APP5TARGETN
)
229 ALLTAR
: $(BIN
)$/soffice_mac
$(EXECPOST
)
231 .ENDIF
# "$(OS)" == "MACOSX"
233 .IF
"$(GUI)" == "WNT"
235 # create a manifest file with the same name as the
236 # office executable file soffice.exe.manifest
237 .IF
"$(CCNUMVER)" <= "001399999999"
238 $(MISC
)$/$(TARGET
).exe.manifest
: template.manifest
241 $(MISC
)$/$(TARGET
).exe.template.manifest
: template.manifest
244 $(MISC
)$/$(TARGET
).exe.linker.manifest
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
245 mt.exe
-inputresource
:$(BIN
)$/$(TARGET
)$(EXECPOST
) -out
:$@
247 $(MISC
)$/$(TARGET
).exe.manifest
: $(MISC
)$/$(TARGET
).exe.template.manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
248 mt.exe
-manifest
$(MISC
)$/$(TARGET
).exe.linker.manifest
$(MISC
)$/$(TARGET
).exe.template.manifest
-out
:$@
251 # create a manifest file with the same name as the
252 # office executable file soffice.bin.manifest
253 .IF
"$(CCNUMVER)" <= "001399999999"
254 $(MISC
)$/$(TARGET
).bin.manifest
: template.manifest
257 $(MISC
)$/$(TARGET
).bin.manifest
: $(MISC
)$/$(TARGET
).exe.manifest
258 $(COPY
) $(MISC
)$/$(TARGET
).exe.manifest
$@
261 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
264 $(BIN
)$/so
$/$(TARGET
).bin
: $(BIN
)$/so
$/$(TARGET
)$(EXECPOST
)
269 .IF
"$(GUI)" == "OS2"
270 $(BIN
)$/$(TARGET
).bin
: $(BIN
)$/$(TARGET
)$(EXECPOST
)
274 $(MISC
)$/binso_created.flg
:
275 @@
-$(MKDIRHIER
) $(BIN
)$/so
&& $(TOUCH
) $@