Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.12
1.12 ! ohara 1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.11 2016/06/29 15:37:21 ohara Exp $
1.1 ohara 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
1.12 ! ohara 11: PRODUCTID=5FCFE322-2C5D-4AF6-AB56-490A86831FD7
1.1 ohara 12: !else
13: OS = win32
14: CANDLE_ARCH = -nologo
15: PGDIR=ProgramFilesFolder
1.12 ! ohara 16: PRODUCTID=4B09EBA0-88B0-4CA5-B284-AA13AC6CCA72
1.1 ohara 17: !endif
18:
1.9 ohara 19: # DO NOT CHANGE UPGRADEID!!
1.1 ohara 20: UPGRADEID=B7A582F5-0484-4030-9D38-BFAE00707F0D
1.12 ! ohara 21: PRODUCTVER=1.1.0
1.1 ohara 22:
1.2 ohara 23: TARGET= asir$(OS).msi
1.12 ! ohara 24: SRCS= asir.wxs _lib.wxs _contrib.wxs _share.wxs
1.1 ohara 25: # OBJS= asir.wixobj _lib.wixobj _contrib.wixobj _help.wixobj _share.wixobj
26: OBJS= $(SRCS:.wxs=.wixobj)
27:
28: CANDLE = candle -nologo
29: CANDLE_FLAGS = $(CANDLE_ARCH) -dprogramfilesDir=$(PGDIR) \
30: -dupgradeID=$(UPGRADEID) -dproductID=$(PRODUCTID) -dproductVer=$(PRODUCTVER) \
1.6 ohara 31: -dlibDir=asir\lib\asir -dcontribDir=asir\lib\asir-contrib \
1.12 ! ohara 32: -dshareDir=asir\share
1.1 ohara 33: LIGHT = light -nologo
1.2 ohara 34: LTFLAGS = -ext WixUIExtension -ext WixUtilExtension
1.1 ohara 35: HEAT = heat
36: HEATFLAGS = -nologo -gg -g1 -sfrag -srd
37:
38: .SUFFIXES: .wxs .wixobj
39:
40: .wxs.wixobj:
41: $(CANDLE) $(CANDLE_FLAGS) $<
42:
43: all:
44:
45: msi: $(TARGET)
46: copy /b $(TARGET) asir_$(OS)_%DATE:/=.%.msi
47:
48: wxs: $(SRCS)
49:
1.3 ohara 50: zip:
1.1 ohara 51: @makepkg.bat
52:
1.3 ohara 53: $(TARGET): $(OBJS) LICENSE.rtf zip
1.1 ohara 54: $(LIGHT) $(LTFLAGS) -out $(TARGET) $(OBJS)
55:
56: ## generating wxs files by heat if the directory asir exists
57:
58: # _lib.wxs:
1.7 ohara 59: # cd asir\lib
60: # $(HEAT) dir asir $(HEATFLAGS) -dr LIB_ASIR -cg LibGrp -var "var.libDir" -out ..\..\_lib.wxs
61: # cd ..\..
1.1 ohara 62: #
63: # _help.wxs:
64: # cd asir
65: # $(HEAT) dir help $(HEATFLAGS) -dr HELP -cg HelpGrp -var "var.helpDir" -out ..\_help.wxs
66: # cd ..
67: #
68: # _contrib.wxs:
1.7 ohara 69: # cd asir\lib
70: # $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
71: # cd ..\..
72: #
1.1 ohara 73: # wxsclean:
74: # @del /q _*.wxs
75:
76: clean:
77: @del /q *.wixobj
78: @del /q *.wixpdb
79:
80: distclean: clean
81: @distclean.bat
82:
83: msiclean:
84: @del /q $(TARGET)
85: @del /q asir_$(OS)_*.msi
86: @del /q asir_$(OS)_*.zip
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>