1*7f2fe78bSCy Schubert 2*7f2fe78bSCy Schubert# Build language 3*7f2fe78bSCy SchubertLANG=1033 4*7f2fe78bSCy Schubert 5*7f2fe78bSCy Schubert# Program macros 6*7f2fe78bSCy SchubertCANDLE=candle -nologo 7*7f2fe78bSCy Schubert 8*7f2fe78bSCy SchubertLIGHT=light -nologo 9*7f2fe78bSCy Schubert 10*7f2fe78bSCy SchubertCD=cd 11*7f2fe78bSCy Schubert 12*7f2fe78bSCy SchubertRM=del 13*7f2fe78bSCy Schubert 14*7f2fe78bSCy SchubertMAKE=nmake -nologo 15*7f2fe78bSCy Schubert 16*7f2fe78bSCy Schubert 17*7f2fe78bSCy Schubert# Targets 18*7f2fe78bSCy Schubert 19*7f2fe78bSCy SchubertOUTPATH=. 20*7f2fe78bSCy Schubert 21*7f2fe78bSCy SchubertOBJFILE=$(OUTPATH)\kfw.wixobj 22*7f2fe78bSCy Schubert 23*7f2fe78bSCy SchubertMSIFILE=$(OUTPATH)\kfw.msi 24*7f2fe78bSCy Schubert 25*7f2fe78bSCy SchubertWIXINCLUDES= \ 26*7f2fe78bSCy Schubert config.wxi \ 27*7f2fe78bSCy Schubert features.wxi \ 28*7f2fe78bSCy Schubert files.wxi \ 29*7f2fe78bSCy Schubert property.wxi \ 30*7f2fe78bSCy Schubert runtime.wxi \ 31*7f2fe78bSCy Schubert site-local.wxi \ 32*7f2fe78bSCy Schubert lang\strings_$(LANG).wxl \ 33*7f2fe78bSCy Schubert lang\ui_$(LANG).wxi \ 34*7f2fe78bSCy Schubert lang\config_$(LANG).wxi 35*7f2fe78bSCy Schubert 36*7f2fe78bSCy SchubertCUSTOMDLL=custom\custom.dll 37*7f2fe78bSCy Schubert 38*7f2fe78bSCy Schubert!if !defined(CPU) || "$(CPU)" == "" 39*7f2fe78bSCy SchubertCPU=$(PROCESSOR_ARCHITECTURE) 40*7f2fe78bSCy Schubert!endif # CPU 41*7f2fe78bSCy Schubert 42*7f2fe78bSCy Schubert!if ( "$(CPU)" == "X86" ) || ( "$(CPU)" == "x86" ) || ( "$(CPU)" == "i386" ) 43*7f2fe78bSCy SchubertWIXARCH = x86 44*7f2fe78bSCy Schubert!elseif ( "$(CPU)" == "AMD64" ) 45*7f2fe78bSCy SchubertWIXARCH = x64 46*7f2fe78bSCy Schubert!else 47*7f2fe78bSCy Schubert!error "Architecture $(CPU) not supported by installer" 48*7f2fe78bSCy Schubert!endif 49*7f2fe78bSCy Schubert 50*7f2fe78bSCy Schubertall: $(MSIFILE) 51*7f2fe78bSCy Schubert 52*7f2fe78bSCy Schubert$(OBJFILE): kfw.wxs $(WIXINCLUDES) 53*7f2fe78bSCy Schubert $(CANDLE) -arch $(WIXARCH) -out $@ kfw.wxs \ 54*7f2fe78bSCy Schubert "-dDate=%DATE%" \ 55*7f2fe78bSCy Schubert "-dTime=%TIME%" \ 56*7f2fe78bSCy Schubert -dBuildLang=$(LANG) 57*7f2fe78bSCy Schubert 58*7f2fe78bSCy Schubert$(MSIFILE): $(OBJFILE) $(CUSTOMDLL) 59*7f2fe78bSCy Schubert $(LIGHT) -out $@ $(OBJFILE) \ 60*7f2fe78bSCy Schubert -loc lang\strings_$(LANG).wxl -ext WixUtilExtension.dll 61*7f2fe78bSCy Schubert 62*7f2fe78bSCy Schubert$(CUSTOMDLL): custom\custom.cpp 63*7f2fe78bSCy Schubert $(CD) custom 64*7f2fe78bSCy Schubert $(MAKE) -f custom.cpp 65*7f2fe78bSCy Schubert $(CD) .. 66*7f2fe78bSCy Schubert 67*7f2fe78bSCy Schubertclean: 68*7f2fe78bSCy Schubert $(RM) $(OBJFILE) 69*7f2fe78bSCy Schubert $(RM) $(MSIFILE) 70*7f2fe78bSCy Schubert $(CD) custom 71*7f2fe78bSCy Schubert $(MAKE) -f custom.cpp clean 72*7f2fe78bSCy Schubert $(CD) .. 73