Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.9
1.9 ! ohara 1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.8 2014/12/31 19:57:00 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.9 ! ohara 11: PRODUCTID=785935CF-E48E-445D-94CA-7ECF630D5E26
1.1 ohara 12: !else
13: OS = win32
14: CANDLE_ARCH = -nologo
15: PGDIR=ProgramFilesFolder
1.9 ! ohara 16: PRODUCTID=D710D8E9-BB2A-447E-90ED-1B9CFE56F92D
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.9 ! ohara 21: PRODUCTVER=1.0.5
1.1 ohara 22:
1.2 ohara 23: TARGET= asir$(OS).msi
1.7 ohara 24: SRCS= asir.wxs _lib.wxs _contrib.wxs _help.wxs _share.wxs _doc.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.7 ohara 32: -dhelpDir=asir\help -dshareDir=asir\share -ddocDir=asir\doc
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: # _share.wxs:
69: # cd asir
70: # $(HEAT) dir share $(HEATFLAGS) -dr SHARE -cg ShareGrp -var "var.shareDir" -out ..\_share.wxs
71: # cd ..
72: #
73: # _contrib.wxs:
1.7 ohara 74: # cd asir\lib
75: # $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
76: # cd ..\..
77: #
78: # _doc.wxs:
1.1 ohara 79: # cd asir
1.7 ohara 80: # $(HEAT) dir doc $(HEATFLAGS) -dr DOC -cg DocGrp -var "var.docDir" -out ..\_doc.wxs
1.1 ohara 81: # cd ..
82: #
83: # wxsclean:
84: # @del /q _*.wxs
85:
86: clean:
87: @del /q *.wixobj
88: @del /q *.wixpdb
89:
90: distclean: clean
91: @distclean.bat
92:
93: msiclean:
94: @del /q $(TARGET)
95: @del /q asir_$(OS)_*.msi
96: @del /q asir_$(OS)_*.zip
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>