Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.14
1.14 ! ohara 1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.13 2020/02/02 05:24:44 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:
1.13 ohara 43: all: build
44:
45: build: ..\asir-gc\gc\gc.lib asir2000lib\asir2000lib.lib engine2000\engine.exe asir32gui\asirgui.exe mcpp\cpp.exe post-msg-asirgui\cmdasir.exe ..\asir2018\asir.exe
46:
47: ..\asir-gc\gc\gc.lib:
48: cd ..\asir-gc && $(MAKE) -e -f Makefile.vc
49:
50: asir2000lib\asir2000lib.lib: ..\asir-gc\gc\gc.lib
51: cd $(@D) && $(MAKE) -e -f Makefile.vc ARCH=$(ARCH)
52:
53: engine2000\engine.exe: asir2000lib\asir2000lib.lib
54: cd $(@D) && $(MAKE) -e -f Makefile.vc ARCH=$(ARCH)
55:
56: asir32gui\asirgui.exe:
57: cd $(@D) && $(MAKE) -e -f Makefile.vc
58:
59: mcpp\cpp.exe:
60: cd $(@D) && $(MAKE) -e -f Makefile.vc
61:
62: post-msg-asirgui\cmdasir.exe:
63: cd $(@D) && $(MAKE) -e -f Makefile.vc
64:
65: ..\asir2018\asir.exe: ..\asir-gc\gc\gc.lib
66: cd $(@D) && $(MAKE) -e -f Makefile.vc ARCH=$(ARCH)
1.1 ohara 67:
68: msi: $(TARGET)
69: copy /b $(TARGET) asir_$(OS)_%DATE:/=.%.msi
70:
71: wxs: $(SRCS)
72:
1.14 ! ohara 73: zip: build
1.1 ohara 74: @makepkg.bat
75:
1.3 ohara 76: $(TARGET): $(OBJS) LICENSE.rtf zip
1.1 ohara 77: $(LIGHT) $(LTFLAGS) -out $(TARGET) $(OBJS)
78:
79: ## generating wxs files by heat if the directory asir exists
80:
1.14 ! ohara 81: !IFDEF WXS
! 82: _lib.wxs: zip
! 83: cd asir\lib && $(HEAT) dir asir $(HEATFLAGS) -dr LIB_ASIR -cg LibGrp -var "var.libDir" -out ..\..\_lib.wxs
! 84:
! 85: _help.wxs: zip
! 86: cd asir && $(HEAT) dir help $(HEATFLAGS) -dr HELP -cg HelpGrp -var "var.helpDir" -out ..\_help.wxs
! 87:
! 88: _contrib.wxs: zip
! 89: cd asir\lib && $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
! 90: !ENDIF
! 91:
! 92: wxsclean:
! 93: @del /q _*.wxs
1.1 ohara 94:
95: clean:
96: @del /q *.wixobj
97: @del /q *.wixpdb
98:
99: distclean: clean
1.14 ! ohara 100: @if exist asir ( rmdir /s /q asir )
! 101: @for %i in ( ..\asir-gc asir2000lib engine2000 mcpp asir32gui post-msg-asirgui ..\asir2018 ) do ( pushd %i && nmake -f Makefile.vc distclean && popd)
1.1 ohara 102:
103: msiclean:
104: @del /q $(TARGET)
105: @del /q asir_$(OS)_*.msi
106: @del /q asir_$(OS)_*.zip
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>