Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.5
1.5 ! ohara 1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.4 2014/03/30 22:29:46 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.5 ! ohara 11: PRODUCTID=50A5B5C0-DA6D-4F10-BA45-CD5FA21EC30A
1.1 ohara 12: !else
13: OS = win32
14: CANDLE_ARCH = -nologo
15: PGDIR=ProgramFilesFolder
1.5 ! ohara 16: PRODUCTID=476257AD-500D-4966-B792-1568697B3654
1.1 ohara 17: !endif
18:
19: UPGRADEID=B7A582F5-0484-4030-9D38-BFAE00707F0D
1.4 ohara 20: PRODUCTVER=1.0.3
1.1 ohara 21:
1.2 ohara 22: TARGET= asir$(OS).msi
1.1 ohara 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
1.2 ohara 33: LTFLAGS = -ext WixUIExtension -ext WixUtilExtension
1.1 ohara 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:
1.3 ohara 49: zip:
1.1 ohara 50: @makepkg.bat
51:
1.3 ohara 52: $(TARGET): $(OBJS) LICENSE.rtf zip
1.1 ohara 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>