1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=..$/.. 25 26PRJNAME=migrationanalysis 27TARGET=wizard 28 29# --- Settings ----------------------------------------------------- 30 31.INCLUDE : settings.mk 32 33# --- Files -------------------------------------------------------- 34 35PAW_APPSDEST:=$(BIN)$/ProAnalysisWizard 36ALTERNATE_SRC:=..$/exe 37 38PAW_DATDEST:=$(PAW_APPSDEST)$/Resources 39 40PROJECTDEST:=$(BIN)$/ProAnalysisWizard 41RCFILES:=$(RES)$/$(TARGET).rc 42RESFILE:=$(RES)$/$(TARGET).res 43ULFFILES:=$(TARGET).ulf 44.IF "$(WITH_LANG)"!="" 45ULFDIR:=$(COMMONMISC)$/$(TARGET) 46.ELSE # "$(WITH_LANG)"!="" 47ULFDIR:=. 48.ENDIF # "$(WITH_LANG)"!="" 49MANIFEST:=$(RES)$/DocAnalysisWizard.exe.manifest 50 51LAUNCHER_APP:= $(BIN)$/LaunchDrivers.exe 52 53BASIC_APPS:= \ 54 $(LAUNCHER_APP) \ 55 $(PAW_APPSDEST)$/ProAnalysisWizard.exe 56 57BASIC_VBP:= \ 58 $(BIN)$/LaunchDrivers.vbp \ 59 $(PAW_APPSDEST)$/ProAnalysisWizard.vbp 60 61PAW_RES_DLLS:=$(PAW_DATDEST)$/Resources.dll 62PAW_LAUNCHER:=$(PAW_DATDEST)$/LaunchDrivers.exe 63 64# --- Targets ------------------------------------------------------ 65 66.INCLUDE : target.mk 67 68ALLTAR : $(BASIC_APPS) $(PAW_RES_DLLS) $(PAW_LAUNCHER) 69 70$(MANIFEST) : $$(@:f) 71 -$(MKDIRHIER) $(@:d) 72 $(COPY) $< $@ 73 74.IF "$(VB6_LOCATION)" != "" 75 76$(BASIC_VBP) : $$(@:b).vbp 77 -$(MKDIRHIER) $(@:d) 78 $(COPY) $(@:f) $@ 79 80$(BASIC_APPS) : $(BASIC_VBP) 81 -$(MKDIRHIER) $(@:d) 82 cd $(@:d) && "$(VB6_LOCATION)$/vb6.exe" /m $(@:b).vbp 83 84$(PAW_LAUNCHER) : $(LAUNCHER_APP) 85 -$(MKDIRHIER) $(@:d) 86 $(COPY) $(LAUNCHER_APP) $@ 87 88.ELSE # "$(VB6_LOCATION)" != "" 89 90$(BASIC_APPS) : $(ALTERNATE_SRC)$/$$(@:f) 91 @echo "------------------------------------" 92 @echo "No VB6 found: using prebuild wizards" 93 @echo "------------------------------------" 94 -$(MKDIRHIER) $(@:d) 95 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@ 96 97$(PAW_LAUNCHER) : $(ALTERNATE_SRC)$/$$(@:f) 98 -$(MKDIRHIER) $(@:d) 99 $(COPY) $(ALTERNATE_SRC)$/$(@:f) $@ 100 101.ENDIF # "$(VB6_LOCATION)" != "" 102 103# Generate the native Windows resource file 104# using lngconvex.exe 105 106$(RCFILES) : $(MANIFEST) $(ULFDIR)$/$(TARGET).ulf makefile.mk rcfooter.txt rcheader.txt rctmpl.txt 107 $(LNGCONVEX) -ulf $(ULFDIR)$/$(TARGET).ulf -rc $(RES)$/$(TARGET).rc -rct rctmpl.txt -rch rcheader.txt -rcf rcfooter.txt 108 109$(PAW_RES_DLLS) : $(RCFILES) 110 -$(MKDIRHIER) $(@:d) 111 link /NOENTRY /DLL /MACHINE:X86 /OUT:$@ $(RESFILE) 112 113