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

Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.13

1.13    ! ohara       1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.12 2019/03/28 18:10:10 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.3       ohara      73: zip:
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:
                     81: # _lib.wxs:
1.7       ohara      82: #      cd asir\lib
                     83: #      $(HEAT) dir asir $(HEATFLAGS) -dr LIB_ASIR -cg LibGrp -var "var.libDir" -out ..\..\_lib.wxs
                     84: #      cd ..\..
1.1       ohara      85: #
                     86: # _help.wxs:
                     87: #      cd asir
                     88: #      $(HEAT) dir help $(HEATFLAGS) -dr HELP  -cg HelpGrp -var "var.helpDir"  -out ..\_help.wxs
                     89: #      cd ..
                     90: #
                     91: # _contrib.wxs:
1.7       ohara      92: #      cd asir\lib
                     93: #      $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
                     94: #      cd ..\..
                     95: #
1.1       ohara      96: # wxsclean:
                     97: #      @del /q _*.wxs
                     98:
                     99: clean:
                    100:        @del /q *.wixobj
                    101:        @del /q *.wixpdb
                    102:
                    103: distclean: clean
                    104:        @distclean.bat
                    105:
                    106: msiclean:
                    107:        @del /q $(TARGET)
                    108:        @del /q asir_$(OS)_*.msi
                    109:        @del /q asir_$(OS)_*.zip

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