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

Annotation of OpenXM_contrib2/windows/Makefile, Revision 1.7

1.7     ! ohara       1: # $OpenXM: OpenXM_contrib2/windows/Makefile,v 1.6 2014/05/09 18:32:13 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.7     ! ohara      23: SRCS= asir.wxs _lib.wxs _contrib.wxs _help.wxs _share.wxs _doc.wxs
1.1       ohara      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) \
1.6       ohara      30:   -dlibDir=asir\lib\asir -dcontribDir=asir\lib\asir-contrib \
1.7     ! ohara      31:   -dhelpDir=asir\help -dshareDir=asir\share -ddocDir=asir\doc
1.1       ohara      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:
1.7     ! ohara      58: #      cd asir\lib
        !            59: #      $(HEAT) dir asir $(HEATFLAGS) -dr LIB_ASIR -cg LibGrp -var "var.libDir" -out ..\..\_lib.wxs
        !            60: #      cd ..\..
1.1       ohara      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:
1.7     ! ohara      73: #      cd asir\lib
        !            74: #      $(HEAT) dir asir-contrib $(HEATFLAGS) -dr LIB_ASIR_CONTRIB -cg ContribGrp -var "var.contribDir" -out ..\..\_contrib.wxs
        !            75: #      cd ..\..
        !            76: #
        !            77: # _doc.wxs:
1.1       ohara      78: #      cd asir
1.7     ! ohara      79: #      $(HEAT) dir doc $(HEATFLAGS) -dr DOC -cg DocGrp -var "var.docDir" -out ..\_doc.wxs
1.1       ohara      80: #      cd ..
                     81: #
                     82: # wxsclean:
                     83: #      @del /q _*.wxs
                     84:
                     85: clean:
                     86:        @del /q *.wixobj
                     87:        @del /q *.wixpdb
                     88:
                     89: distclean: clean
                     90:        @distclean.bat
                     91:
                     92: msiclean:
                     93:        @del /q $(TARGET)
                     94:        @del /q asir_$(OS)_*.msi
                     95:        @del /q asir_$(OS)_*.zip

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