version 1.23, 2003/09/02 03:24:51 |
version 1.41, 2010/08/18 07:23:32 |
|
|
## $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.22 2003/08/22 23:56:28 takayama Exp $ |
## $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.40 2008/01/12 11:26:16 takayama Exp $ |
# |
|
# Depends on all-kan96xx [source tree of kan96xx at ${Kan96xx} is required] |
# Depends on all-kan96xx [source tree of kan96xx at ${Kan96xx} is required] |
# install-gmp, install-gc, install-util |
# install-gmp, install-gc, install-util |
# |
# |
|
|
## Nothing to do for now. |
## Nothing to do for now. |
## If you change this file, do not forget to run autoconf and remove .configure_done |
## If you change this file, do not forget to run autoconf and remove .configure_done |
######### configurations. |
######### configurations. |
OpenXM_HOME=../.. |
#OpenXM_HOME=../.. |
|
OpenXM_HOME=@prefix@ |
Kan96xx=../kan96xx |
Kan96xx=../kan96xx |
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib |
|
OpenXM_bin=${OpenXM_HOME}/bin |
OpenXM_bin=${OpenXM_HOME}/bin |
OpenXM_lib=${OpenXM_HOME}/lib |
OpenXM_lib=${OpenXM_HOME}/lib |
OpenXM_include=${OpenXM_HOME}/include |
OpenXM_include=${OpenXM_HOME}/include |
OXWEAVE=${OpenXM_bin}/oxweave |
OXWEAVE=${OpenXM_bin}/oxweave |
KANLIB = ${Kan96xx}/Kan/kanlib.a ${OpenXM_lib}/libgmp.a ${OpenXM_lib}/libgc.a |
KANLIB = ${Kan96xx}/Kan/kanlib.a -L${OpenXM_lib} -lgmp -lgc |
|
# |
|
OpenXM_HOME_for_debug=../.. |
|
OpenXM_bin_for_debug=${OpenXM_HOME_for_debug}/bin |
|
OpenXM_lib_for_debug=${OpenXM_HOME_for_debug}/lib |
|
OpenXM_include_for_debug=${OpenXM_HOME_for_debug}/include |
########## end of configurations |
########## end of configurations |
CC=@CC@ |
CC=@CC@ |
RANLIB=@RANLIB@ |
RANLIB=@RANLIB@ |
LIBS=@LIBS@ |
LIBS=@LIBS@ |
CFLAGS = @CFLAGS@ -g -D_BSD_SOURCE |
CFLAGS = @CFLAGS@ -g -D_BSD_SOURCE -I${OpenXM_include} |
|
# University binary is no longer supported. See old configure.in (version 1.7) |
|
# Or use "lipo -create ox-i386 ox-ppc -output ox" |
#STATIC_LINK_FLAG=-static |
#STATIC_LINK_FLAG=-static |
STATIC_LINK_FLAG= |
STATIC_LINK_FLAG= |
RM=rm |
RM=rm |
|
|
### Set the server name in oxmain.c if you do not use the environmental |
### Set the server name in oxmain.c if you do not use the environmental |
### variable LOAD_SM1_PATH. cf. $Kan96xx/lib/ox.sm1 |
### variable LOAD_SM1_PATH. cf. $Kan96xx/lib/ox.sm1 |
|
|
all : configure ox ox_sm1 oxlog ox100start |
all : configure ox ox_sm1 oxlog ox100start ox_texmacs |
|
|
all2 : ox ox_sm1 testclient oxlog |
all2 : ox ox_sm1 testclient oxlog |
|
|
configure: Makefile |
configure: Makefile |
|
|
Makefile: Makefile.in |
Makefile: Makefile.in |
./configure |
(rm -f .configure_done ; ./make-configure) |
|
|
# configure is added to repo for a while. |
# configure is added to repo for a while. |
configure-old : Makefile.in configure.in |
configure-old : Makefile.in configure.in |
Line 53 configure-old : Makefile.in configure.in |
|
Line 59 configure-old : Makefile.in configure.in |
|
# autoconf |
# autoconf |
# .error "Run ./make-configure" |
# .error "Run ./make-configure" |
|
|
.c.o: |
|
${CC} ${CFLAGS} -I${OpenXM_include} -c $< |
|
ox.a: ${Kan96xx}/plugin/ox.a |
ox.a: ${Kan96xx}/plugin/ox.a |
/bin/rm -f ox.a |
/bin/rm -f ox.a |
ln -s ${Kan96xx}/plugin/ox.a ox.a |
ln -s ${Kan96xx}/plugin/ox.a ox.a |
Line 67 ox: oxmain.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/pl |
|
Line 71 ox: oxmain.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/pl |
|
oxmain.o: oxmain.c ox_kan.h serversm.h |
oxmain.o: oxmain.c ox_kan.h serversm.h |
|
|
oxd: oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o |
oxd: oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o |
${CC} ${STATIC_LINK_FLAG} ${CFLAGS} oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o -o oxd ${LIBS} |
${CC} ${STATIC_LINK_FLAG} ${CFLAGS} oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o -o oxd ${LIBS} -L{OpenXM_lib} -lgc |
oxd.o: oxd.c ox_kan.h serversm.h |
oxd.o: oxd.c ox_kan.h serversm.h |
xtag.o: xtag.c |
xtag.o: xtag.c |
oxd-thread: oxd-thread.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o |
oxd-thread: oxd-thread.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o |
Line 108 testclient2 : testclient2.o ${Kan96xx}/Kan/kanlib.a ox |
|
Line 112 testclient2 : testclient2.o ${Kan96xx}/Kan/kanlib.a ox |
|
${CC} ${CFLAGS} -I${Kan96xx}/Kan testclient2.c -o testclient2 ${LIBS} ${KANLIB} |
${CC} ${CFLAGS} -I${Kan96xx}/Kan testclient2.c -o testclient2 ${LIBS} ${KANLIB} |
testclient2.o: testclient.c ox_kan.h |
testclient2.o: testclient.c ox_kan.h |
|
|
|
ox_texmacs: ox_texmacs.o ${Kan96xx}/Kan/kanlib.a |
|
${CC} ${STATIC_LINK_FLAG} ${CFLAGS} ox_texmacs.o -o ox_texmacs ${LIBS} ${KANLIB} |
|
|
clean-done: |
clean-done: |
-${RM} -f .configure_done |
-${RM} -f .configure_done |
clean: clean-done |
clean: clean-done |
-${RM} -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ openxm-eg.tex openxm-jp.tex ox100start |
-${RM} -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ openxm-eg.tex openxm-jp.tex ox100start .prog.ox100bin* .in.ox100bin* ox_texmacs |
distclean : clean clean-for-install |
distclean : clean clean-for-install |
/bin/rm -f config.status config.cache config.log |
/bin/rm -f config.status config.cache config.log |
|
|
## install targets. |
## install targets. |
install-for-debug : clean-for-install install_lib_bin-for-debug |
install-for-debug : clean-for-install install_lib_bin-for-debug |
${RM} -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/ox100start |
${RM} -f ${OpenXM_bin_for_debug}/ox ${OpenXM_bin_for_debug}/ox_sm1 ${OpenXM_bin_for_debug}/oxlog ${OpenXM_bin_for_debug}/ox100start ${OpenXM_bin_for_debug}/ox_texmacs |
ln -f -s ../src/kxx/ox ../bin/ox |
ln -f -s ../src/kxx/ox ${OpenXM_bin_for_debug}/ox |
ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1 |
ln -f -s ../src/kxx/ox_sm1 ${OpenXM_bin_for_debug}/ox_sm1 |
ln -f -s ../src/kxx/oxlog ../bin/oxlog |
ln -f -s ../src/kxx/oxlog ${OpenXM_bin_for_debug}/oxlog |
ln -f -s ../src/kxx/ox100start ../bin/ox100start |
ln -f -s ../src/kxx/ox100start ${OpenXM_bin_for_debug}/ox100start |
|
ln -f -s ../src/kxx/ox_texmacs ${OpenXM_bin_for_debug}/ox_texmacs |
|
|
install_lib_bin-for-debug : |
install_lib_bin-for-debug : |
ln -f -s ../src/kan96xx/Doc ${OpenXM_lib}/sm1 |
ln -f -s ../src/kan96xx/Doc ${OpenXM_lib_for_debug}/sm1 |
${RM} -f ${OpenXM_lib}/sm1/bin/ox* |
${RM} -f ${OpenXM_lib_for_debug}/sm1/bin/ox* |
ln -f -s ../../../bin/ox ${OpenXM_lib}/sm1/bin/ox |
ln -f -s ../../../../bin/ox ${OpenXM_lib_for_debug}/sm1/bin/ox |
ln -f -s ../../../bin/oxlog ${OpenXM_lib}/sm1/bin/oxlog |
ln -f -s ../../../../bin/oxlog ${OpenXM_lib_for_debug}/sm1/bin/oxlog |
ln -f -s ../../../bin/ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1 |
ln -f -s ../../../../bin/ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1 |
ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_forAsir |
ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_forAsir |
ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_gnuplot |
ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_gnuplot |
ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_basicCD |
ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_basicCD |
install: install-exec |
install: install-exec |
install-exec: copy-kan-lib install_lib_bin |
install-exec: copy-kan-lib install_lib_bin |
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
install ox ox_sm1 oxlog ox100start ox_texmacs ${OpenXM_bin} |
cp -f ox.exe ox_sm1.exe oxlog.exe ox100start.exe ${OpenXM_bin} ; \ |
|
else \ |
|
cp -f ox ox_sm1 oxlog ox100start ${OpenXM_bin} ; \ |
|
fi |
|
install_lib_bin: |
install_lib_bin: |
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
make install_lib_bin_windows ; \ |
make install_lib_bin_windows ; \ |
Line 161 install_lib_bin_unix: |
|
Line 164 install_lib_bin_unix: |
|
install_lib_bin_windows : |
install_lib_bin_windows : |
-mkdir ${OpenXM_lib}/sm1/bin |
-mkdir ${OpenXM_lib}/sm1/bin |
${RM} -f ${OpenXM_lib}/sm1/bin/ox* |
${RM} -f ${OpenXM_lib}/sm1/bin/ox* |
|
install ox ${OpenXM_lib}/sm1/bin/ox |
|
install oxlog ${OpenXM_lib}/sm1/bin/oxlog |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1 |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_forAsir |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_gnuplot |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_phc |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_tigers |
|
install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_basicCD |
|
#obsolete, it should be removed later |
|
install_lib_bin_windows_old : |
|
-mkdir ${OpenXM_lib}/sm1/bin |
|
${RM} -f ${OpenXM_lib}/sm1/bin/ox* |
cp ox.exe ${OpenXM_lib}/sm1/bin/ox.exe |
cp ox.exe ${OpenXM_lib}/sm1/bin/ox.exe |
cp oxlog.exe ${OpenXM_lib}/sm1/bin/oxlog.exe |
cp oxlog.exe ${OpenXM_lib}/sm1/bin/oxlog.exe |
cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1.exe |
cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1.exe |
Line 180 copy-kan-lib : clean-for-install |
|
Line 195 copy-kan-lib : clean-for-install |
|
touch ${OpenXM_lib}/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc |
touch ${OpenXM_lib}/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc |
-if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
-if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
cp ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \ |
cp ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \ |
|
cp -r ${Kan96xx}/Doc/Resource ${OpenXM_lib}/sm1 ; \ |
mkdir ${OpenXM_lib}/sm1/bin ; \ |
mkdir ${OpenXM_lib}/sm1/bin ; \ |
else \ |
else \ |
cp -r ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \ |
cp -r ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \ |
Line 189 copy-kan-lib : clean-for-install |
|
Line 205 copy-kan-lib : clean-for-install |
|
cp ${Kan96xx}/Kan/var.sm1 ${OpenXM_lib}/sm1 |
cp ${Kan96xx}/Kan/var.sm1 ${OpenXM_lib}/sm1 |
clean-for-install : |
clean-for-install : |
-/bin/rm -rf ${OpenXM_lib}/sm1 |
-/bin/rm -rf ${OpenXM_lib}/sm1 |
-/bin/rm -rf ${OpenXM_bin}/oxlog ${OpenXM_bin}/ox_sm1 ${OpenXM_bin}/ox ${OpenXM_bin}/ox100start |
-/bin/rm -rf ${OpenXM_bin}/oxlog ${OpenXM_bin}/ox_sm1 ${OpenXM_bin}/ox ${OpenXM_bin}/ox100start ${OpenXM_bin}/ox_texmacs |
|
|
|
|
|
|