1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=desktop 31*cdf0e10cSrcweirTARGET=soffice 32*cdf0e10cSrcweirTARGETTYPE=GUI 33*cdf0e10cSrcweirLIBTARGET=NO 34*cdf0e10cSrcweirGEN_HID=TRUE 35*cdf0e10cSrcweirGEN_HID_OTHER=TRUE 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir# --- Settings ----------------------------------------------------------- 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir.INCLUDE : settings.mk 40*cdf0e10cSrcweir 41*cdf0e10cSrcweirUWINAPILIB = 42*cdf0e10cSrcweir 43*cdf0e10cSrcweirVERINFONAME=verinfo 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir# --- Resourcen ---------------------------------------------------- 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 48*cdf0e10cSrcweirRCFILES=verinfo.rc 49*cdf0e10cSrcweir.ENDIF 50*cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 51*cdf0e10cSrcweirRCFILES=ooverinfo2.rc 52*cdf0e10cSrcweir.ENDIF 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir# --- Linken der Applikation --------------------------------------- 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir.IF "$(OS)" == "MACOSX" 57*cdf0e10cSrcweirLINKFLAGSAPPGUI!:= $(LINKFLAGSAPPGUI:s/-bind_at_load//) 58*cdf0e10cSrcweir.ENDIF # MACOSX 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir#.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" || "$(OS)" == "NETBSD" 61*cdf0e10cSrcweir## #74158# linux needs sal/vos/tools at end of link list, solaris needs it first, 62*cdf0e10cSrcweir## winXX is handled like solaris for now 63*cdf0e10cSrcweir#APP1_STDPRE= 64*cdf0e10cSrcweir#APP1_STDPOST=$(CPPULIB) $(CPPUHELPERLIB) $(UNOLIB) $(TOOLSLIB) \ 65*cdf0e10cSrcweir# $(VOSLIB) $(SALLIB) 66*cdf0e10cSrcweir#.ELSE 67*cdf0e10cSrcweir#APP1_STDPRE=$(SALLIB) $(VOSLIB) $(TOOLSLIB) $(UNOLIB) $(CPPULIB) \ 68*cdf0e10cSrcweir# $(CPPUHELPERLIB) 69*cdf0e10cSrcweir#APP1_STDPOST= 70*cdf0e10cSrcweir#.ENDIF 71*cdf0e10cSrcweir 72*cdf0e10cSrcweirRESLIB1NAME= dkt 73*cdf0e10cSrcweirRESLIB1IMAGES= $(PRJ)$/res 74*cdf0e10cSrcweirRESLIB1SRSFILES= $(SRS)$/desktop.srs \ 75*cdf0e10cSrcweir $(SRS)$/wizard.srs 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 78*cdf0e10cSrcweir.IF "$(LINK_SO)"=="TRUE" 79*cdf0e10cSrcweir.IF "$(GUI)" != "OS2" 80*cdf0e10cSrcweirAPP1TARGET=so$/$(TARGET) 81*cdf0e10cSrcweirAPP1NOSAL=TRUE 82*cdf0e10cSrcweirAPP1RPATH=BRAND 83*cdf0e10cSrcweirAPP1OBJS=$(OBJ)$/copyright_ascii_sun.obj $(OBJ)$/main.obj 84*cdf0e10cSrcweirAPP1STDLIBS = $(SALLIB) $(SOFFICELIB) 85*cdf0e10cSrcweirAPP1DEPN= $(APP1RES) verinfo.rc 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 88*cdf0e10cSrcweirAPP1RES= $(RES)$/desktop.res 89*cdf0e10cSrcweirAPP1ICON=$(SOLARRESDIR)$/icons/so9_main_app.ico 90*cdf0e10cSrcweirAPP1VERINFO=verinfo.rc 91*cdf0e10cSrcweirAPP1LINKRES=$(MISC)$/$(TARGET)1.res 92*cdf0e10cSrcweirAPP1STACK=10000000 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir# create a manifest file with the same name as the 95*cdf0e10cSrcweir#office executable file soffice.exe.manifest 96*cdf0e10cSrcweir#$(BIN)$/$(TARGET).exe.manifest: template.manifest 97*cdf0e10cSrcweir#$(COPY) $< $@ 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir.ENDIF # WNT 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir.ENDIF # "$(GUI)" != "OS2" 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir.ENDIF # "$(LINK_SO)"=="TRUE" 104*cdf0e10cSrcweir 105*cdf0e10cSrcweirAPP5TARGET=soffice 106*cdf0e10cSrcweirAPP5NOSAL=TRUE 107*cdf0e10cSrcweirAPP5RPATH=BRAND 108*cdf0e10cSrcweirAPP5OBJS=$(OBJ)$/copyright_ascii_ooo.obj $(OBJ)$/main.obj 109*cdf0e10cSrcweirAPP5STDLIBS = $(SALLIB) $(SOFFICELIB) 110*cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 111*cdf0e10cSrcweirAPP5STDLIBS+= -lXext -lX11 112*cdf0e10cSrcweir#APP5STDLIBS+= -lXext -lSM -lICE 113*cdf0e10cSrcweir.ENDIF # LINUX 114*cdf0e10cSrcweir 115*cdf0e10cSrcweirAPP5DEPN= $(APP1TARGETN) $(APP5RES) ooverinfo.rc 116*cdf0e10cSrcweirAPP5DEF= $(MISCX)$/$(TARGET).def 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 119*cdf0e10cSrcweirAPP5RES= $(RES)$/oodesktop.res 120*cdf0e10cSrcweirAPP5ICON=$(SOLARRESDIR)$/icons/ooo3_main_app.ico 121*cdf0e10cSrcweirAPP5VERINFO=ooverinfo.rc 122*cdf0e10cSrcweirAPP5LINKRES=$(MISC)$/ooffice5.res 123*cdf0e10cSrcweirAPP5STACK=10000000 124*cdf0e10cSrcweir.ENDIF # WNT 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 127*cdf0e10cSrcweirAPP5DEF= # automatic 128*cdf0e10cSrcweirAPP5RES= $(RES)$/oodesktop.res 129*cdf0e10cSrcweirAPP5ICON=$(SOLARRESDIR)$/icons/ooo-main-app.ico 130*cdf0e10cSrcweirAPP5VERINFO=ooverinfo2.rc 131*cdf0e10cSrcweirAPP5LINKRES=$(MISC)$/ooffice.res 132*cdf0e10cSrcweir.ENDIF # OS2 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 135*cdf0e10cSrcweir.IF "$(LINK_SO)"=="TRUE" 136*cdf0e10cSrcweirAPP6TARGET=so$/officeloader 137*cdf0e10cSrcweirAPP6RES=$(RES)$/soloader.res 138*cdf0e10cSrcweirAPP6NOSAL=TRUE 139*cdf0e10cSrcweirAPP6DEPN= $(APP1TARGETN) $(APP6RES) verinfo.rc 140*cdf0e10cSrcweirAPP6VERINFO=verinfo.rc 141*cdf0e10cSrcweirAPP6LINKRES=$(MISC)$/soffice6.res 142*cdf0e10cSrcweirAPP6ICON=$(SOLARRESDIR)$/icons/so9_main_app.ico 143*cdf0e10cSrcweirAPP6OBJS = \ 144*cdf0e10cSrcweir $(OBJ)$/extendloaderenvironment.obj \ 145*cdf0e10cSrcweir $(OBJ)$/officeloader.obj \ 146*cdf0e10cSrcweir $(SOLARLIBDIR)$/pathutils-obj.obj 147*cdf0e10cSrcweirSTDLIB6=$(ADVAPI32LIB) $(SHELL32LIB) $(SHLWAPILIB) 148*cdf0e10cSrcweir.ENDIF # "$(LINK_SO)"=="TRUE" 149*cdf0e10cSrcweir 150*cdf0e10cSrcweirAPP7TARGET=officeloader 151*cdf0e10cSrcweirAPP7RES=$(RES)$/ooloader.res 152*cdf0e10cSrcweirAPP7NOSAL=TRUE 153*cdf0e10cSrcweirAPP7DEPN= $(APP1TARGETN) $(APP7RES) ooverinfo.rc 154*cdf0e10cSrcweirAPP7VERINFO=ooverinfo.rc 155*cdf0e10cSrcweirAPP7LINKRES=$(MISC)$/ooffice7.res 156*cdf0e10cSrcweirAPP7ICON=$(SOLARRESDIR)$/icons/ooo3_main_app.ico 157*cdf0e10cSrcweirAPP7OBJS = \ 158*cdf0e10cSrcweir $(OBJ)$/extendloaderenvironment.obj \ 159*cdf0e10cSrcweir $(OBJ)$/officeloader.obj \ 160*cdf0e10cSrcweir $(SOLARLIBDIR)$/pathutils-obj.obj 161*cdf0e10cSrcweirSTDLIB7=$(ADVAPI32LIB) $(SHELL32LIB) $(SHLWAPILIB) 162*cdf0e10cSrcweir.ELIF "$(OS)" == "MACOSX" 163*cdf0e10cSrcweirAPP6TARGET=officeloader 164*cdf0e10cSrcweirAPP6NOSAL=TRUE 165*cdf0e10cSrcweirAPP6RPATH=BRAND 166*cdf0e10cSrcweirAPP6OBJS=$(OBJ)$/copyright_ascii_ooo.obj $(OBJ)$/officeloader.obj 167*cdf0e10cSrcweirAPP6STDLIBS = $(SALLIB) 168*cdf0e10cSrcweirAPP5DEPN= $(APP1TARGETN) $(APP5RES) ooverinfo.rc 169*cdf0e10cSrcweirAPP5DEF= $(MISCX)$/$(TARGET).def 170*cdf0e10cSrcweir.ENDIF # WNT 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir.ENDIF 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir# --- Targets ------------------------------------------------------------- 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir.INCLUDE : target.mk 177*cdf0e10cSrcweir 178*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir.IF "$(APP1TARGETN)"!="" 181*cdf0e10cSrcweir$(APP1TARGETN) : $(MISC)$/binso_created.flg 182*cdf0e10cSrcweir.ENDIF # "$(APP1TARGETN)"!="" 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir.IF "$(APP5TARGETN)"!="" 185*cdf0e10cSrcweir$(APP5TARGETN) : $(MISC)$/binso_created.flg 186*cdf0e10cSrcweir.ENDIF # "$(APP6TARGETN)"!="" 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir.IF "$(APP6TARGETN)"!="" 189*cdf0e10cSrcweir$(APP6TARGETN) : $(MISC)$/binso_created.flg 190*cdf0e10cSrcweir.ENDIF # "$(APP6TARGETN)"!="" 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 193*cdf0e10cSrcweirALLTAR: $(MISC)$/$(TARGET).exe.manifest 194*cdf0e10cSrcweirALLTAR: $(MISC)$/$(TARGET).bin.manifest 195*cdf0e10cSrcweirALLTAR: $(BIN)$/$(TARGET).bin 196*cdf0e10cSrcweir.IF "$(LINK_SO)"=="TRUE" 197*cdf0e10cSrcweirALLTAR: $(BIN)$/so$/$(TARGET).bin 198*cdf0e10cSrcweir.ENDIF # "$(LINK_SO)"=="TRUE" 199*cdf0e10cSrcweir.ENDIF # WNT 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 202*cdf0e10cSrcweirALLTAR: $(BIN)$/$(TARGET).bin 203*cdf0e10cSrcweir.ENDIF # OS2 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir$(BIN)$/soffice_oo$(EXECPOST) : $(APP5TARGETN) 206*cdf0e10cSrcweir $(COPY) $< $@ 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir.IF "$(GUI)" != "OS2" 209*cdf0e10cSrcweir.IF "$(LINK_SO)"=="TRUE" 210*cdf0e10cSrcweir$(BIN)$/so$/soffice_so$(EXECPOST) : $(APP1TARGETN) 211*cdf0e10cSrcweir $(COPY) $< $@ 212*cdf0e10cSrcweir 213*cdf0e10cSrcweirALLTAR : $(BIN)$/so$/soffice_so$(EXECPOST) 214*cdf0e10cSrcweir.ENDIF # "$(LINK_SO)"=="TRUE" 215*cdf0e10cSrcweirALLTAR : $(BIN)$/soffice_oo$(EXECPOST) 216*cdf0e10cSrcweir.ENDIF 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir.IF "$(OS)" == "MACOSX" 219*cdf0e10cSrcweir.IF "$(LINK_SO)"=="TRUE" 220*cdf0e10cSrcweir$(BIN)$/so$/soffice_mac$(EXECPOST) : $(APP1TARGETN) 221*cdf0e10cSrcweir $(COPY) $< $@ 222*cdf0e10cSrcweir 223*cdf0e10cSrcweirALLTAR : $(BIN)$/so$/soffice_mac$(EXECPOST) 224*cdf0e10cSrcweir.ENDIF # "$(LINK_SO)"=="TRUE" 225*cdf0e10cSrcweir 226*cdf0e10cSrcweir$(BIN)$/soffice_mac$(EXECPOST) : $(APP5TARGETN) 227*cdf0e10cSrcweir $(COPY) $< $@ 228*cdf0e10cSrcweir 229*cdf0e10cSrcweirALLTAR : $(BIN)$/soffice_mac$(EXECPOST) 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir.ENDIF # "$(OS)" == "MACOSX" 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir.IF "$(GUI)" == "WNT" 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir# create a manifest file with the same name as the 236*cdf0e10cSrcweir# office executable file soffice.exe.manifest 237*cdf0e10cSrcweir.IF "$(CCNUMVER)" <= "001399999999" 238*cdf0e10cSrcweir$(MISC)$/$(TARGET).exe.manifest: template.manifest 239*cdf0e10cSrcweir $(COPY) $< $@ 240*cdf0e10cSrcweir.ELSE 241*cdf0e10cSrcweir$(MISC)$/$(TARGET).exe.template.manifest: template.manifest 242*cdf0e10cSrcweir $(COPY) $< $@ 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir$(MISC)$/$(TARGET).exe.linker.manifest: $(BIN)$/$(TARGET)$(EXECPOST) 245*cdf0e10cSrcweir mt.exe -inputresource:$(BIN)$/$(TARGET)$(EXECPOST) -out:$@ 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir$(MISC)$/$(TARGET).exe.manifest: $(MISC)$/$(TARGET).exe.template.manifest $(MISC)$/$(TARGET).exe.linker.manifest 248*cdf0e10cSrcweir mt.exe -manifest $(MISC)$/$(TARGET).exe.linker.manifest $(MISC)$/$(TARGET).exe.template.manifest -out:$@ 249*cdf0e10cSrcweir.ENDIF 250*cdf0e10cSrcweir 251*cdf0e10cSrcweir# create a manifest file with the same name as the 252*cdf0e10cSrcweir# office executable file soffice.bin.manifest 253*cdf0e10cSrcweir.IF "$(CCNUMVER)" <= "001399999999" 254*cdf0e10cSrcweir$(MISC)$/$(TARGET).bin.manifest: template.manifest 255*cdf0e10cSrcweir $(COPY) $< $@ 256*cdf0e10cSrcweir.ELSE 257*cdf0e10cSrcweir$(MISC)$/$(TARGET).bin.manifest: $(MISC)$/$(TARGET).exe.manifest 258*cdf0e10cSrcweir $(COPY) $(MISC)$/$(TARGET).exe.manifest $@ 259*cdf0e10cSrcweir.ENDIF 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir$(BIN)$/$(TARGET).bin: $(BIN)$/$(TARGET)$(EXECPOST) 262*cdf0e10cSrcweir $(COPY) $< $@ 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir$(BIN)$/so$/$(TARGET).bin: $(BIN)$/so$/$(TARGET)$(EXECPOST) 265*cdf0e10cSrcweir $(COPY) $< $@ 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir.ENDIF # WNT 268*cdf0e10cSrcweir 269*cdf0e10cSrcweir.IF "$(GUI)" == "OS2" 270*cdf0e10cSrcweir$(BIN)$/$(TARGET).bin: $(BIN)$/$(TARGET)$(EXECPOST) 271*cdf0e10cSrcweir $(COPY) $< $@ 272*cdf0e10cSrcweir.ENDIF # OS2 273*cdf0e10cSrcweir 274*cdf0e10cSrcweir$(MISC)$/binso_created.flg : 275*cdf0e10cSrcweir @@-$(MKDIRHIER) $(BIN)$/so && $(TOUCH) $@ 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir.ENDIF 278