diff options
Diffstat (limited to 'src/windows/installer/wix/Makefile')
-rw-r--r-- | src/windows/installer/wix/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/windows/installer/wix/Makefile b/src/windows/installer/wix/Makefile new file mode 100644 index 0000000000..02de33ca70 --- /dev/null +++ b/src/windows/installer/wix/Makefile @@ -0,0 +1,59 @@ + +# Build language +LANG=1033 + +# Program macros +CANDLE=candle -nologo + +LIGHT=light -nologo + +CD=cd + +RM=del + +MAKE=nmake -nologo + + +# Targets + +OUTPATH=. + +OBJFILE=$(OUTPATH)\kfw.wixobj + +MSIFILE=$(OUTPATH)\kfw.msi + +WIXINCLUDES= \ + config.wxi \ + features.wxi \ + files.wxi \ + property.wxi \ + site-local.wxi \ + lang\strings_$(LANG).wxl \ + lang\ui_$(LANG).wxi \ + lang\config_$(LANG).wxi + +CUSTOMDLL=custom\custom.dll + +all: $(MSIFILE) + +$(OBJFILE): kfw.wxs $(WIXINCLUDES) + $(CANDLE) -out $@ kfw.wxs \ + "-dDate=%DATE%" \ + "-dTime=%TIME%" \ + -dBuildLang=$(LANG) + +$(MSIFILE): $(OBJFILE) $(CUSTOMDLL) + $(LIGHT) -out $@ $(OBJFILE) \ + -loc lang\strings_$(LANG).wxl + +$(CUSTOMDLL): custom\custom.cpp + $(CD) custom + $(MAKE) -f custom.cpp + $(CD) .. + +clean: + $(RM) $(OBJFILE) + $(RM) $(MSIFILE) + $(CD) custom + $(MAKE) -f custom.cpp clean + $(CD) .. |