[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows

Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.17

1.17    ! ohara       1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.16 2021/03/25 06:31:59 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.17    ! ohara      11: PRODUCTID=EEC1D477-7925-4B4D-8484-5174FD6D97C5
1.1       ohara      12: !else
                     13: OS = win32
                     14: CANDLE_ARCH = -nologo
                     15: PGDIR=ProgramFilesFolder
1.17    ! ohara      16: PRODUCTID=95F4A064-CFE0-45D4-AA55-F87921432478
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:
1.17    ! ohara      68: msi: $(TARGET) wxs
1.1       ohara      69:        copy /b $(TARGET) asir_$(OS)_%DATE:/=.%.msi
                     70:
                     71: wxs: $(SRCS)
                     72:
1.15      ohara      73: mkdir:
                     74:        if not exist asir ( mkdir asir\bin asir\lib\asir asir\lib\asir-contrib asir\share\editor asir\share\skel )
                     75:
                     76: !if "$(ARCH)" == "AMD64"
                     77: GMPDIR=mpir\x64
                     78: !else
                     79: GMPDIR=mpir\win32
                     80: !endif
                     81:
                     82: install: build mkdir
                     83:        for %i in ( asir32gui\asirgui.exe asir32gui\ja.dll engine2000\engine.exe mcpp\cpp.exe post-msg-asirgui\cmdasir.exe ..\asir2018\asir.exe curl.exe unzip.exe $(GMPDIR)\*.dll ) do ( copy /b %i asir\bin )
                     84:        echo import("names.rr")$$ end$$ > asir\share\skel\.asirrc
                     85:        for %i in ( ..\asir2018\LICENSE gmp\COPYING.LIB ) do ( copy /b %i asir )
                     86:        -robocopy post-msg-asirgui asir\share\editor asirgui.mac  asir-mode.el install-ja-sjis.txt /nfl /ndl /njh /njs /np
                     87:        -robocopy ..\asir2018\lib asir\lib\asir /nfl /ndl /njh /njs /np /xf help*.uu
                     88:        -robocopy ..\..\OpenXM\src\asir-contrib\packages\src asir\lib\asir-contrib /nfl /ndl /njh /njs /np /mir /xd CVS /xf *.in *.c *.sh *-sh .keepme
                     89:        -robocopy ..\..\OpenXM\src\asir-contrib\testing\noro asir\lib\asir-contrib de.rr gw.rr module_syz.rr mwl.rr rewrite.rr ndbf.rr /nfl /ndl /njh /njs /np
                     90:        for %i in ( de.rr gw.rr module_syz.rr mwl.rr rewrite.rr ) do ( pushd asir\lib\asir-contrib && move %i noro_%i && popd)
                     91:        pushd asir\lib\asir-contrib && move ndbf.rr nn_ndbf.rr && popd
                     92:
                     93: zip: install
                     94:        zip -r asir_$(OS)_%DATE:/=.%.zip asir
1.1       ohara      95:
1.3       ohara      96: $(TARGET): $(OBJS) LICENSE.rtf zip
1.1       ohara      97:        $(LIGHT) $(LTFLAGS) -out $(TARGET) $(OBJS)
                     98:
1.16      ohara      99: ## The wxs files were generated by heat.
1.17    ! ohara     100: ## To update _contrib.wxs, run nmake WXS=1 _contrib.wxs or run nmake WXS=1 wxs
1.1       ohara     101:
1.15      ohara     102: !ifdef WXS
1.14      ohara     103: _lib.wxs: zip
                    104:        cd asir\lib && $(HEAT) dir asir $(HEATFLAGS) -dr LIB_ASIR -cg LibGrp -var "var.libDir" -out ..\..\_lib.wxs
                    105:
                    106: _help.wxs: zip
                    107:        cd asir && $(HEAT) dir help $(HEATFLAGS) -dr HELP  -cg HelpGrp -var "var.helpDir"  -out ..\_help.wxs
                    108:
                    109: _contrib.wxs: zip
                    110:        cd asir\lib && $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
1.15      ohara     111: !endif
1.14      ohara     112:
                    113: wxsclean:
                    114:        @del /q _*.wxs
1.1       ohara     115:
                    116: clean:
                    117:        @del /q *.wixobj
                    118:        @del /q *.wixpdb
                    119:
                    120: distclean: clean
1.14      ohara     121:        @if exist asir ( rmdir /s /q asir )
1.15      ohara     122:        @for %i in ( ..\asir-gc asir2000lib engine2000 mcpp asir32gui post-msg-asirgui ..\asir2018 ) do ( pushd %i && $(MAKE) -f Makefile.vc distclean && popd)
1.1       ohara     123:
                    124: msiclean:
                    125:        @del /q $(TARGET)
                    126:        @del /q asir_$(OS)_*.msi
                    127:        @del /q asir_$(OS)_*.zip

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>