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