1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 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. 14# 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). 20# 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. 25# 26#************************************************************************* 27 28PRJ=..$/.. 29 30PRJNAME=migrationanalysis 31TARGET=wizard 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36 37# --- Files -------------------------------------------------------- 38 39PAW_APPSDEST:=$(BIN)$/ProAnalysisWizard 40ALTERNATE_SRC:=..$/exe 41 42PAW_DATDEST:=$(PAW_APPSDEST)$/Resources 43 44PROJECTDEST:=$(BIN)$/ProAnalysisWizard 45RCFILES:=$(RES)$/$(TARGET).rc 46RESFILE:=$(RES)$/$(TARGET).res 47ULFFILES:=$(TARGET).ulf 48.IF "$(WITH_LANG)"!="" 49ULFDIR:=$(COMMONMISC)$/$(TARGET) 50.ELSE # "$(WITH_LANG)"!="" 51ULFDIR:=. 52.ENDIF # "$(WITH_LANG)"!="" 53MANIFEST:=$(RES)$/DocAnalysisWizard.exe.manifest 54 55LAUNCHER_APP:= $(BIN)$/LaunchDrivers.exe 56 57BASIC_APPS:= \ 58 $(LAUNCHER_APP) \ 59 $(PAW_APPSDEST)$/ProAnalysisWizard.exe 60 61BASIC_VBP:= \ 62 $(BIN)$/LaunchDrivers.vbp \ 63 $(PAW_APPSDEST)$/ProAnalysisWizard.vbp 64 65PAW_RES_DLLS:=$(PAW_DATDEST)$/Resources.dll 66PAW_LAUNCHER:=$(PAW_DATDEST)$/LaunchDrivers.exe 67 68# --- Targets ------------------------------------------------------ 69 70.INCLUDE : target.mk 71 72ALLTAR : $(BASIC_APPS) $(PAW_RES_DLLS) $(PAW_LAUNCHER) 73 74$(MANIFEST) : $$(@:f) 75 -$(MKDIRHIER) $(@:d) 76 $(COPY) $< $@ 77 78.IF "$(VB6_LOCATION)" != "" 79 80$(BASIC_VBP) : $$(@:b).vbp 81 -$(MKDIRHIER) $(@:d) 82 $(COPY) $(@:f) $@ 83 84$(BASIC_APPS) : $(BASIC_VBP) 85 -$(MKDIRHIER) $(@:d) 86 cd $(@:d) && "$(VB6_LOCATION)$/vb6.exe" /m $(@:b).vbp 87 88$(PAW_LAUNCHER) : $(LAUNCHER_APP) 89 -$(MKDIRHIER) $(@:d) 90 $(COPY) $(LAUNCHER_APP) $@ 91 92.ELSE # "$(VB6_LOCATION)" != "" 93 94$(BASIC_APPS) : $(ALTERNATE_SRC)$/$$(@:f) 95 @echo "------------------------------------" 96 @echo "No VB6 found: using prebuild wizards" 97 @echo "------------------------------------" 98 -$(MKDIRHIER) $(@:d) 99 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@ 100 101$(PAW_LAUNCHER) : $(ALTERNATE_SRC)$/$$(@:f) 102 -$(MKDIRHIER) $(@:d) 103 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@ 104 105.ENDIF # "$(VB6_LOCATION)" != "" 106 107# Generate the native Windows resource file 108# using lngconvex.exe 109 110$(RCFILES) : $(MANIFEST) $(ULFDIR)$/$(TARGET).ulf makefile.mk rcfooter.txt rcheader.txt rctmpl.txt 111 $(LNGCONVEX) -ulf $(ULFDIR)$/$(TARGET).ulf -rc $(RES)$/$(TARGET).rc -rct rctmpl.txt -rch rcheader.txt -rcf rcfooter.txt 112 113$(PAW_RES_DLLS) : $(RCFILES) 114 -$(MKDIRHIER) $(@:d) 115 link /NOENTRY /DLL /MACHINE:X86 /OUT:$@ $(RESFILE) 116 117