update dev300-m58
[ooovba.git] / migrationanalysis / src / wizard / makefile.mk
blobeee2461ccf5b0ffc22d083a8919db026c16f5802
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # This file is part of OpenOffice.org.
13 # OpenOffice.org is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU Lesser General Public License version 3
15 # only, as published by the Free Software Foundation.
17 # OpenOffice.org is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU Lesser General Public License version 3 for more details
21 # (a copy is included in the LICENSE file that accompanied this code).
23 # You should have received a copy of the GNU Lesser General Public License
24 # version 3 along with OpenOffice.org. If not, see
25 # <http://www.openoffice.org/license.html>
26 # for a copy of the LGPLv3 License.
28 #*************************************************************************
30 PRJ=..$/..
32 PRJNAME=migrationanalysis
33 TARGET=wizard
35 # --- Settings -----------------------------------------------------
37 .INCLUDE : settings.mk
39 # --- Files --------------------------------------------------------
41 PAW_APPSDEST:=$(BIN)$/ProAnalysisWizard
42 ALTERNATE_SRC:=..$/exe
44 PAW_DATDEST:=$(PAW_APPSDEST)$/Resources
46 PROJECTDEST:=$(BIN)$/ProAnalysisWizard
47 RCFILES:=$(RES)$/$(TARGET).rc
48 RESFILE:=$(RES)$/$(TARGET).res
49 ULFFILES:=$(TARGET).ulf
50 .IF "$(WITH_LANG)"!=""
51 ULFDIR:=$(COMMONMISC)$/$(TARGET)
52 .ELSE # "$(WITH_LANG)"!=""
53 ULFDIR:=.
54 .ENDIF # "$(WITH_LANG)"!=""
55 MANIFEST:=$(RES)$/DocAnalysisWizard.exe.manifest
57 LAUNCHER_APP:= $(BIN)$/LaunchDrivers.exe
59 BASIC_APPS:= \
60 $(LAUNCHER_APP) \
61 $(PAW_APPSDEST)$/ProAnalysisWizard.exe
63 BASIC_VBP:= \
64 $(BIN)$/LaunchDrivers.vbp \
65 $(PAW_APPSDEST)$/ProAnalysisWizard.vbp
67 PAW_RES_DLLS:=$(PAW_DATDEST)$/Resources.dll
68 PAW_LAUNCHER:=$(PAW_DATDEST)$/LaunchDrivers.exe
70 # --- Targets ------------------------------------------------------
72 .INCLUDE : target.mk
74 ALLTAR : $(BASIC_APPS) $(PAW_RES_DLLS) $(PAW_LAUNCHER)
76 $(MANIFEST) : $$(@:f)
77 -$(MKDIRHIER) $(@:d)
78 $(COPY) $< $@
80 .IF "$(VB6_LOCATION)" != ""
82 $(BASIC_VBP) : $$(@:b).vbp
83 -$(MKDIRHIER) $(@:d)
84 $(COPY) $(@:f) $@
86 $(BASIC_APPS) : $(BASIC_VBP)
87 -$(MKDIRHIER) $(@:d)
88 cd $(@:d) && "$(VB6_LOCATION)$/vb6.exe" /m $(@:b).vbp
90 $(PAW_LAUNCHER) : $(LAUNCHER_APP)
91 -$(MKDIRHIER) $(@:d)
92 $(COPY) $(LAUNCHER_APP) $@
94 .ELSE # "$(VB6_LOCATION)" != ""
96 $(BASIC_APPS) : $(ALTERNATE_SRC)$/$$(@:f)
97 @echo "------------------------------------"
98 @echo "No VB6 found: using prebuild wizards"
99 @echo "------------------------------------"
100 -$(MKDIRHIER) $(@:d)
101 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@
103 $(PAW_LAUNCHER) : $(ALTERNATE_SRC)$/$$(@:f)
104 -$(MKDIRHIER) $(@:d)
105 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@
107 .ENDIF # "$(VB6_LOCATION)" != ""
109 # Generate the native Windows resource file
110 # using lngconvex.exe
112 $(RCFILES) : $(MANIFEST) $(ULFDIR)$/$(TARGET).ulf makefile.mk rcfooter.txt rcheader.txt rctmpl.txt
113 $(LNGCONVEX) -ulf $(ULFDIR)$/$(TARGET).ulf -rc $(RES)$/$(TARGET).rc -rct rctmpl.txt -rch rcheader.txt -rcf rcfooter.txt
115 $(PAW_RES_DLLS) : $(RCFILES)
116 -$(MKDIRHIER) $(@:d)
117 link /NOENTRY /DLL /MACHINE:X86 /OUT:$@ $(RESFILE)