Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.1
1.1 ! ohara 1: # $OpenXM$
! 2:
! 3: !if "$(ARCH)" == ""
! 4: ARCH=$(PROCESSOR_ARCHITECTURE)
! 5: !endif
! 6:
! 7: !if "$(ARCH)" == "AMD64"
! 8: OS = win64
! 9: CANDLE_ARCH = -nologo -arch x64
! 10: PGDIR=ProgramFiles64Folder
! 11: PRODUCTID=D1DCD556-D731-4945-8A6B-FABA98592818
! 12: !else
! 13: OS = win32
! 14: CANDLE_ARCH = -nologo
! 15: PGDIR=ProgramFilesFolder
! 16: PRODUCTID=CB31249B-D861-4D97-9146-08FADCBA312A
! 17: !endif
! 18:
! 19: UPGRADEID=B7A582F5-0484-4030-9D38-BFAE00707F0D
! 20: PRODUCTVER=1.0.0
! 21:
! 22: TARGET= asir_$(OS).msi
! 23: SRCS= asir.wxs _lib.wxs _contrib.wxs _help.wxs _share.wxs
! 24: # OBJS= asir.wixobj _lib.wixobj _contrib.wixobj _help.wixobj _share.wixobj
! 25: OBJS= $(SRCS:.wxs=.wixobj)
! 26:
! 27: CANDLE = candle -nologo
! 28: CANDLE_FLAGS = $(CANDLE_ARCH) -dprogramfilesDir=$(PGDIR) \
! 29: -dupgradeID=$(UPGRADEID) -dproductID=$(PRODUCTID) -dproductVer=$(PRODUCTVER) \
! 30: -dlibDir=asir\lib -dcontribDir=asir\lib-asir-contrib \
! 31: -dhelpDir=asir\help -dshareDir=asir\share
! 32: LIGHT = light -nologo
! 33: LTFLAGS = -ext WixUIExtension
! 34: HEAT = heat
! 35: HEATFLAGS = -nologo -gg -g1 -sfrag -srd
! 36:
! 37: .SUFFIXES: .wxs .wixobj
! 38:
! 39: .wxs.wixobj:
! 40: $(CANDLE) $(CANDLE_FLAGS) $<
! 41:
! 42: all:
! 43:
! 44: msi: $(TARGET)
! 45: copy /b $(TARGET) asir_$(OS)_%DATE:/=.%.msi
! 46:
! 47: wxs: $(SRCS)
! 48:
! 49: build_zip:
! 50: @makepkg.bat
! 51:
! 52: $(TARGET): $(OBJS) LICENSE.rtf build_zip
! 53: $(LIGHT) $(LTFLAGS) -out $(TARGET) $(OBJS)
! 54:
! 55: ## generating wxs files by heat if the directory asir exists
! 56:
! 57: # _lib.wxs:
! 58: # cd asir
! 59: # $(HEAT) dir lib $(HEATFLAGS) -dr LIB -cg LibGrp -var "var.libDir" -out ..\_lib.wxs
! 60: # cd ..
! 61: #
! 62: # _help.wxs:
! 63: # cd asir
! 64: # $(HEAT) dir help $(HEATFLAGS) -dr HELP -cg HelpGrp -var "var.helpDir" -out ..\_help.wxs
! 65: # cd ..
! 66: #
! 67: # _share.wxs:
! 68: # cd asir
! 69: # $(HEAT) dir share $(HEATFLAGS) -dr SHARE -cg ShareGrp -var "var.shareDir" -out ..\_share.wxs
! 70: # cd ..
! 71: #
! 72: # _contrib.wxs:
! 73: # cd asir
! 74: # $(HEAT) dir lib-asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\_contrib.wxs
! 75: # cd ..
! 76: #
! 77: # wxsclean:
! 78: # @del /q _*.wxs
! 79:
! 80: clean:
! 81: @del /q *.wixobj
! 82: @del /q *.wixpdb
! 83:
! 84: distclean: clean
! 85: @distclean.bat
! 86:
! 87: msiclean:
! 88: @del /q $(TARGET)
! 89: @del /q asir_$(OS)_*.msi
! 90: @del /q asir_$(OS)_*.zip
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>