[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Windows

Annotation of OpenXM/misc/packages/Windows/Makefile, Revision 1.46

1.46    ! takayama    1: # $OpenXM: OpenXM/misc/packages/Windows/Makefile,v 1.45 2016/08/27 02:20:55 takayama Exp $
1.1       takayama    2: OpenXM_TOP=../../../../OpenXM
1.15      takayama    3: ASIR_LANG=ja
                      4: #ASIR_LANG=en
1.42      takayama    5: VERSION=1.2.3
1.43      takayama    6: WGET_ARG=http://www.math.kobe-u.ac.jp/pub/asir/asirwin-${ASIR_LANG}.tgz
                      7: WGET_PHC=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/phc.exe
                      8: WGET_HEAD=http://www.math.kobe-u.ac.jp/pub/OpenXM/Head/openxm-head.tar.gz
1.15      takayama    9:
1.1       takayama   10: WINASIR=c:/home/asir
1.15      takayama   11:
1.46    ! takayama   12: #obtained by ldd ox_pari.exe
        !            13: SYS_DLL_FILES=/bin/cygwin1.dll /usr/bin/cyggcc_s-seh-1.dll /usr/bin/cyggmp-10.dll  /usr/bin/cygmpfr-4.dll
        !            14:
1.43      takayama   15: #obtained by chgcheck command
                     16: DLLS_ox_asir=/bin/cygX11*dll /bin/cygxcb*.dll /bin/cygXau*.dll \
                     17:      /bin/cygXdmcp*.dll /bin/cygWaw*dll \
                     18:      /bin/cygXext*.dll /bin/cygXmu*.dll /bin/cygXt*.dll \
                     19:      /bin/cygIcE*.dll /bin/cygSM*.dll \
                     20:     /bin/cygICE*.dll /bin/cygSM*.dll /bin/cyg/bin/cyguuid*.dll \
                     21:     /bin/cygintl*.dll /bin/cygiconv*.dll \
                     22:     /bin/cyggcc_s-seh*.dll /bin/cygXpm*.dll
                     23:
1.1       takayama   24: usage:
1.44      takayama   25:        @echo "make clean ; make oxpari-gen-zip"
1.29      takayama   26:        @echo "Targets: all build-tgz clean clean-work link-for-debug copy-to-ftp-area"
1.22      takayama   27:        @echo "         remove-experimental gen-cd"
1.26      takayama   28:        @echo "  The target all, gen-cd builds the directory OpenXM-win"
1.24      takayama   29:        @echo "Other targets: win-correction3, build-bat"
1.31      takayama   30:        @echo "               asir-book, copy-asir-book-to-ftp-area "
1.1       takayama   31:
1.26      takayama   32: clean: clean-OpenXM-win clean-asir-book
                     33: clean-OpenXM-win:
1.44      takayama   34:        -rm -rf OpenXM-win .copy-binary-done .copy-binary-asir-done .copy-binary-phc-done OpenXM-win.tgz .OpenXM-win.tgz.done oxasir-win.rr .copy-cygwin-dlls-done .build-binary-openxm-cygwin-done OpenXM-unix OpenXM-doc .OpenXM-win.tgz.copy.done .oxpari-copy-cygwin-dlls-done
1.22      takayama   35:
1.17      takayama   36: clean-work:
                     37:        -rm -rf work
1.20      takayama   38: clean0:
1.44      takayama   39:        -rm -rf .copy-binary-done oxasir-win.rr .copy-cygwin-dlls-done .oxpari-copy-cygwin-dlls-done
1.15      takayama   40:
1.21      fujimoto   41: all: copy-binary-phc copy-binary copy-binary-asir win-correction win-correction-clean
1.1       takayama   42:
1.15      takayama   43: build-binary-openxm-cygwin:
                     44:        if [ ! -f .build-binary-openxm-cygwin-done ] ; then \
1.38      takayama   45:                (cd ${OpenXM_TOP}/src ; make install-asir-contrib ) ; \
1.43      takayama   46:                (cd ${OpenXM_TOP}/src ; make install-oxpari ) ; \
1.15      takayama   47:                touch .build-binary-openxm-cygwin-done ; \
                     48:        fi
1.1       takayama   49:
1.43      takayama   50: oxpari-copy-binary-cygwin: build-binary-openxm-cygwin
                     51:        -mkdir OpenXM-win
                     52:        -mkdir -p OpenXM-win/bin
                     53:        if [ ! -f .oxpari-copy-binary-done ] ; then \
                     54:          (cd OpenXM-win ; \
                     55:           cp  ../${OpenXM_TOP}/bin/ox_pari bin ; \
                     56:           cp  ../${OpenXM_TOP}/bin/ox bin ; \
                     57:           cp  ../${OpenXM_TOP}/bin/cyggc*.dll bin ; \
1.46    ! takayama   58:           cp  ../${OpenXM_TOP}/bin/cygcord*.dll bin ; \
        !            59:           cp  ../${OpenXM_TOP}/bin/libpari*.dll bin ; \
1.43      takayama   60:           cp  ../${OpenXM_TOP}/bin/sm1 bin ; \
                     61:           cp  ../${OpenXM_TOP}/bin/ox_sm1 bin ; \
1.45      takayama   62:           cp  ../${OpenXM_TOP}/bin/ox_sm1 bin/ox_sm1_forAsir ; \
1.43      takayama   63:          ) ; \
                     64:           touch .oxpari-copy-binary-oxpari-done ; \
                     65:        fi
                     66: oxpari-copy-cygwin-dlls:
                     67:        if [ ! -f .oxpari-copy-cygwin-dlls-done ] ; then \
1.46    ! takayama   68:         cp  ${SYS_DLL_FILES} OpenXM-win/bin ; \
1.43      takayama   69:         touch .oxpari-copy-cygwin-dlls-done ; \
                     70:        fi
                     71:
                     72: oxpari-gen-zip: oxpari-copy-binary-cygwin oxpari-copy-cygwin-dlls
                     73:        -mkdir -p OpenXM-win/lib/
                     74:        cp ${OpenXM_TOP}/src/asir-contrib/packages/src/oxpari-win.rr OpenXM-win/lib
                     75:        zip -r openxm-win-oxpari.zip OpenXM-win
                     76:        @echo "Copy openxm-win-oxpari.zip by hand to OpenXM/Current"
                     77:
1.15      takayama   78: copy-binary: copy-binary-openxm-cygwin
1.43      takayama   79:
1.15      takayama   80: copy-binary-openxm-cygwin: build-binary-openxm-cygwin
1.1       takayama   81:        -mkdir OpenXM-win
1.43      takayama   82:        -mkdir -p OpenXM-win/src
                     83:        -mkdir -p OpenXM-win/bin-windows
1.1       takayama   84:        if [ ! -f .copy-binary-done ] ; then \
                     85:          (cd OpenXM-win ; \
1.19      takayama   86:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/bin . ; \
                     87:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/lib . ; \
                     88:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/rc . ; \
                     89:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/man . ; \
                     90:           rsync -avz --delete --exclude CVS ../${OpenXM_TOP}/src/asir-contrib src ; \
1.17      takayama   91:           find . -name 'CVS' -print | xargs rm -rf ; \
1.34      takayama   92:           find . -name 'DO_NOT_EDIT*' -print | xargs rm -rf ; \
1.1       takayama   93:          ) ; \
1.22      takayama   94:           cp Readme-CD/readme-ja.html OpenXM-win ; \
                     95:           cp Readme-CD/readme-en.html OpenXM-win ; \
1.1       takayama   96:           touch .copy-binary-done ; \
                     97:        fi
                     98:
1.16      takayama   99: copy-binary-asir:
1.43      takayama  100:        @echo "Do nothing for copy-binary-asir in the new version."
                    101:
                    102: copy-binary-asir-orig:
1.16      takayama  103:        if [ ! -f .copy-binary-asir-done ] ; then \
                    104:                make copy-binary-asir-from-internet ; \
                    105:        fi
1.15      takayama  106:
                    107: copy-binary-asir-from-internet:
                    108:        -mkdir OpenXM-win
                    109:        if [ ! -d work ] ; then mkdir work ; fi
                    110:        if [ ! -f work/asirwin-${ASIR_LANG}.tgz ] ; then \
                    111:                (cd work ; wget ${WGET_ARG} ) ; \
                    112:        fi
1.16      takayama  113:        (cd OpenXM-win ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz)
1.15      takayama  114:        touch .copy-binary-asir-done
                    115:
                    116: copy-binary-asir-from-local-disk:
1.2       takayama  117:        -mkdir OpenXM-win
                    118:        -mkdir OpenXM-win/asir
                    119:        if [ ! -f .copy-binary-asir-done ] ; then \
                    120:         (cd OpenXM-win ; \
                    121:          (cd ${WINASIR} ; tar czf - bin lib) | (cd asir ; tar xzvf -) ; \
                    122:         ) ; \
1.3       takayama  123:          touch .copy-binary-asir-done ; \
1.2       takayama  124:        fi
1.21      fujimoto  125:
                    126: copy-binary-phc:
1.43      takayama  127:        @echo "Do nothing for copy-binary-phc in the new version."
                    128:
                    129: copy-binary-phc-orig:
1.39      takayama  130:        -if [ ! -f .copy-binary-phc-done ] ; then \
1.21      fujimoto  131:                make copy-binary-phc-from-internet ; \
                    132:        fi
                    133:
                    134: copy-binary-phc-from-internet:
                    135:        if [ ! -f ${OpenXM_TOP}/bin/phc.exe ] ; then \
                    136:         (cd ${OpenXM_TOP}/bin ; wget ${WGET_PHC} ) ; \
                    137:        fi
                    138:        touch .copy-binary-phc-done
1.2       takayama  139:
1.15      takayama  140: copy-cygwin-dlls:
                    141:        if [ ! -f .copy-cygwin-dlls-done ] ; then \
                    142:         cp /bin/cygwin1.dll OpenXM-win/bin-windows ; \
                    143:         cp /bin/cygwin1.dll OpenXM-win/bin ; \
                    144:         cp /bin/cygwin1.dll OpenXM-win/lib/sm1/bin ; \
                    145:         touch .copy-cygwin-dlls-done ; \
                    146:        fi
                    147:
1.43      takayama  148: #It has not been used.
                    149: copy-cygwin-dlls-for-ox_asir :
                    150:        for i in ${DLLS_ox_asir} ; do \
                    151:         cp $$i OpenXM-win/asir/bin ; \
                    152:         cp $$i OpenXM-win/bin ; \
                    153:         done ; \
                    154:
1.10      takayama  155: win-correction: copy-binary oxasir-win.rr
1.7       takayama  156:        make win-correction2
1.15      takayama  157: win-correction1: build-bat copy-cygwin-dlls
1.1       takayama  158:        -mkdir OpenXM-win/bin-windows
1.7       takayama  159: #      (cd OpenXM-win/rc ; make clean ; make)
                    160: win-correction2: win-correction1
1.32      takayama  161:        cp oxasir-win.rr OpenXM-win/lib/sm1
1.33      takayama  162:        cp oxasir-win.rr $(OpenXM_TOP)/lib/sm1
1.32      takayama  163: win-correction2_old:
1.7       takayama  164:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
                    165:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
                    166:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/asir/bin
                    167:        cp OpenXM-win/lib/sm1/*.sm1 OpenXM-win/bin
                    168:        cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/asir/bin
                    169:        cp OpenXM-win/lib/sm1/oxasir.asir OpenXM-win/bin
1.16      takayama  170:        -cp OpenXM-win/bin/ox_asir OpenXM-win/bin/ox_asir.exe
1.10      takayama  171:        cp oxasir-win.rr OpenXM-win/bin
                    172:        cp oxasir-win.rr OpenXM-win/asir/bin
                    173:        cp oxasir-win.rr OpenXM-win/lib/asir
                    174:        cp oxasir-win.rr OpenXM-win/lib/sm1
1.23      takayama  175:
1.15      takayama  176:
1.7       takayama  177: win-correction-clean:
1.17      takayama  178:        -find OpenXM-win -name '*~' -print | xargs rm -f
                    179:        -rm -f OpenXM-win/lib/sm1/*.jpeg OpenXM-win/lib/sm1/*.jpg
1.7       takayama  180: build-tgz: win-correction-clean
1.6       takayama  181:        if [ ! -f .OpenXM-win.tgz.done ]; then \
                    182:        tar czvf OpenXM-win.tgz OpenXM-win ; touch .OpenXM-win.tgz.done ; \
                    183:        fi
1.5       takayama  184:
1.6       takayama  185: copy-to-orange: build-tgz
1.5       takayama  186:        scp OpenXM-win.tgz taka@orange:tmp3
1.29      takayama  187: copy-to-ftp-area: build-tgz
1.30      takayama  188:        if [ ! -f .OpenXM-win.tgz.copy.done ]; then \
1.43      takayama  189:          scp OpenXM-win.tgz taka@orange2:/home/www/pub/OpenXM/Head/OpenXM-win-${ASIR_LANG}.tgz ; \
1.30      takayama  190:        fi
                    191:        touch .OpenXM-win.tgz.copy.done
                    192: copy-to-ftp-area-stable: build-tgz
                    193:          scp OpenXM-win.tgz taka@orange:/export/home01/ftp/pub/OpenXM/${VERSION}/OpenXM-win-${ASIR_LANG}.tgz
1.10      takayama  194:
1.15      takayama  195: link-for-debug:
                    196:        (cd ${OpenXM_TOP} ; cd bin ; ln -s ../../OpenXM_contrib2/asir2000/asir .)
                    197:        (cd ${OpenXM_TOP} ; cd src/kxx ; make install-for-debug)
1.10      takayama  198:
                    199: oxapp : oxapp.c
                    200:
1.11      takayama  201: oxasir-win.rr : oxapp oxpp oxpp2
                    202:        rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
                    203:        cat ${OpenXM_TOP}/src/kan96xx/Doc/oxasir.asir >>oxasir-win.tmp
                    204:        cat ${OpenXM_TOP}/rc/asirrc >>oxasir-win.tmp
                    205:        ./oxpp2 oxasir-win.tmp >oxasir-win.rr
                    206: #      rm -f oxasir-win.tmp oxasir-win.tmp2 oxasir-win.tmp3 oxpp2.tmp1 oxpp2.tmp2
1.12      takayama  207:
1.14      takayama  208: debug-tools/crlf :  debug-tools/crlf.c
                    209:        (cd debug-tools; gcc -o crlf crlf.c)
1.17      takayama  210: debug-tools/debug-sed : debug-tools/debug-sed.c
                    211:        (cd debug-tools; gcc -o debug-sed debug-sed.c)
1.35      takayama  212: debug-tools/gcwd : debug-tools/gcwd.c
                    213:        (cd debug-tools; gcc -o gcwd gcwd.c)
                    214: build-bat: debug-tools/crlf debug-tools/debug-sed debug-tools/gcwd
1.43      takayama  215:        -mkdir -p OpenXM-win/bin-windows
                    216:        -mkdir -p OpenXM-win/asir
                    217:        -mkdir -p OpenXM-win/asir/bin
                    218:        -mkdir -p OpenXM-win/asir/lib
1.13      takayama  219:        (cd debug-tools; sed -f dist.sed <asirgui-cd.bat >../OpenXM-win/bin-windows/asirgui-cd.bat ; ./crlf ../OpenXM-win/bin-windows/asirgui-cd.bat)
1.37      takayama  220:        (cd debug-tools; sed -f dist.sed <sm1-cd.bat >../OpenXM-win/bin-windows/sm1-cd.bat ; ./crlf ../OpenXM-win/bin-windows/sm1-cd.bat)
1.13      takayama  221:        (cd debug-tools; sed -f dist.sed <webasir.bat >../OpenXM-win/bin-windows/webasir.bat ; ./crlf ../OpenXM-win/bin-windows/webasir.bat)
                    222:        (cd debug-tools; sed -f dist.sed <websm1.bat >../OpenXM-win/bin-windows/websm1.bat ; ./crlf ../OpenXM-win/bin-windows/websm1.bat)
                    223:        (rm -f ../OpenXM-win/bin-windows/*.BAK ../OpenXM-win/bin-windows/*.bak)
1.12      takayama  224:        cp OpenXM-win/bin-windows/asirgui-cd.bat OpenXM-win/asir/bin
1.35      takayama  225:        (cd debug-tools; cp gcwd.exe ../OpenXM-win/bin-windows)
1.17      takayama  226:
                    227: remove-experimental:
                    228:        -rm -f OpenXM-win/bin-windows/*web*.bat
                    229:
1.5       takayama  230:
1.22      takayama  231: gen-cd:
1.25      takayama  232:        -(make ASIR_LANG=${ASIR_LANG} all; make remove-experimental)
1.22      takayama  233:        -mkdir OpenXM-unix
                    234:        cp Readme-CD/readme-unix-en.html OpenXM-unix
                    235:        (cd OpenXM-unix; wget ${WGET_HEAD} )
1.24      takayama  236:        @echo "Copy OpenXM-unix and OpenXM-win to the CD."
1.26      takayama  237:
                    238: asir-book: mkdir-asir-book copy-to-asir-book
                    239: clean-asir-book:
1.31      takayama  240:        -rm -rf asir-book .copy-to-asir-book-asir-bin .copy-to-asir-book-prog .copy-to-asir-book-meadow asir-book-en.tgz asir-book-ja.tgz
1.26      takayama  241:
                    242: mkdir-asir-book:
                    243:        -(mkdir asir-book)
                    244:        -(mkdir asir-book/asir)
                    245:        -(mkdir asir-book/Meadow)
                    246:        -(mkdir asir-book/Prog)
                    247:
1.31      takayama  248: copy-to-asir-book:  copy-to-asir-book-asir-bin copy-to-asir-book-prog copy-to-asir-book-meadow asir-book/readme-ja.html
1.26      takayama  249:
                    250: copy-to-asir-book-asir-bin:  copy-binary-asir
1.28      takayama  251:        -if [ ! -f .copy-to-asir-book-asir-bin ]; then  \
                    252:          (cd asir-book ; tar xzvf ../work/asirwin-${ASIR_LANG}.tgz) ;\
1.26      takayama  253:        fi
                    254:        touch .copy-to-asir-book-asir-bin
                    255:
                    256: copy-to-asir-book-prog:
1.28      takayama  257:        if [ ! -f .copy-to-asir-book-prog ]; then \
1.26      takayama  258:          (cd work; cvs-asir-book checkout asir-book) ; \
                    259:          (cp work/asir-book/Prog/*.rr asir-book/Prog) ; \
                    260:        fi
                    261:        touch .copy-to-asir-book-prog
                    262:
1.27      takayama  263: MEADOW=Meadow-1.14-i386-base.tar.gz
1.26      takayama  264: WGET_MEADOW=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${MEADOW}
1.27      takayama  265: WINTAR=tar.exe
                    266: WGET_WINTAR=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINTAR}
                    267: WINGZIP=gzip.exe
                    268: WGET_WINGZIP=--passive-ftp ftp://ftp:${USER}.openxm.org@ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/1.2.2/${WINGZIP}
1.26      takayama  269: copy-to-asir-book-meadow:
1.28      takayama  270:        if [ ! -f .copy-to-asir-book-meadow ]; then \
                    271:         if [ ! -f work/${MEADOW} ]; then \
1.26      takayama  272:                (cd work ; wget ${WGET_MEADOW} ) ; \
1.27      takayama  273:                (cd work ; wget ${WGET_WINTAR} ) ; \
                    274:                (cd work ; wget ${WGET_WINGZIP} ) ; \
1.26      takayama  275:         fi ; \
1.28      takayama  276:         (cd asir-book ; cp ../work/${MEADOW} Meadow) ; \
                    277:         (cd asir-book ; cp ../work/${WINTAR} Meadow) ; \
                    278:         (cd asir-book ; cp ../work/${WINGZIP} Meadow) ; \
1.26      takayama  279:        fi
                    280:        touch .copy-to-asir-book-meadow
                    281:
1.31      takayama  282: asir-book/readme-ja.html: Readme-CD/asir-book-index.html
                    283:        cp Readme-CD/asir-book-index.html asir-book/readme-ja.html
                    284:
                    285: copy-asir-book-to-ftp-area: asir-book-${ASIR_LANG}.tgz
                    286:        scp asir-book-${ASIR_LANG}.tgz taka@orange:/export/home01/ftp/pub/OpenXM/asir-book
                    287: asir-book-${ASIR_LANG}.tgz: asir-book
                    288:        tar czvf asir-book-${ASIR_LANG}.tgz --exclude Meadow asir-book
                    289:
                    290:

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