version 1.4, 2000/03/13 09:04:08 |
version 1.19, 2003/07/21 07:32:01 |
|
|
## $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.3 2000/03/13 06:46:39 takayama Exp $ |
## $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.18 2002/11/10 12:15:48 takayama Exp $ |
## Targets : |
## Targets : |
## all : generates ox oxlog ox_sm1 oxweave |
## all : generates ox oxlog ox_sm1 |
## install : copy the binaries to $(OpenXM_bin), |
## install : copy the binaries to $(OpenXM_bin), |
## remove symbolic link from $(OpenXM_lib)/sm1 to $(KANHOME)/Doc/* |
## remove symbolic link from $(OpenXM_lib)/sm1 to $(KANHOME)/Doc/* |
## copy $(KANHOME)/Doc/* to $(OpenXM_lib)/sm1 |
## copy $(KANHOME)/Doc/* to $(OpenXM_lib)/sm1 |
Line 28 STATIC_LINK_FLAG= |
|
Line 28 STATIC_LINK_FLAG= |
|
### 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. $KANHOME/lib/ox.sm1 |
### variable LOAD_SM1_PATH. cf. $KANHOME/lib/ox.sm1 |
|
|
all : configure all-plugin kanlib.a ox ox_sm1 oxlog oxweave |
all : configure all-plugin kanlib.a ox ox_sm1 oxlog ox100start |
|
|
all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog |
all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog |
|
|
configure : Makefile.in configure.in |
configure: Makefile |
echo "You configure is older than Makefine.in and configure.in" |
|
|
Makefile: Makefile.in |
|
./configure |
|
|
|
# configure is added to repo for a while. |
|
configure-old : Makefile.in configure.in |
|
echo "Your configure is older than Makefine.in and configure.in" |
/bin/rm -f .configure_done |
/bin/rm -f .configure_done |
autoconf |
./make-configure |
.error "Run ./make-configure" |
# autoconf |
|
# .error "Run ./make-configure" |
|
|
dist : |
dist : |
./makeDist |
./makeDist |
Line 63 ox_kan.h : $(KANHOME)/plugin/ox_kan.h |
|
Line 70 ox_kan.h : $(KANHOME)/plugin/ox_kan.h |
|
ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h |
ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h |
$(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LIBS) |
$(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LIBS) |
|
|
|
oxd : oxd.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h |
|
$(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxd.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o oxd $(LIBS) |
|
oxd-thread : oxd-thread.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h |
|
$(CC) -pthread ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxd-thread.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o oxd-thread $(LIBS) |
|
|
ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h |
ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h |
$(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LIBS) ; \ |
$(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LIBS) ; \ |
|
|
Line 71 ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a |
|
Line 83 ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a |
|
|
|
oxlog : oxlog.c |
oxlog : oxlog.c |
$(CC) ${STATIC_LINK_FLAG} ${DDD} -o oxlog oxlog.c |
$(CC) ${STATIC_LINK_FLAG} ${DDD} -o oxlog oxlog.c |
|
ox100start : ox100start.c |
|
$(CC) ${STATIC_LINK_FLAG} ${DDD} -o ox100start ox100start.c |
|
|
oxweave : oxweave.c oxweaveUsage.h |
|
$(CC) ${STATIC_LINK_FLAG} ${DDD} -o oxweave -g oxweave.c |
|
|
|
## file2.c file2.h is in SSkan/plugin/ |
## file2.c file2.h is in SSkan/plugin/ |
file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h |
file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h |
Line 86 testclient : testclient.c ox.a file2.o ox_kan.h |
|
Line 98 testclient : testclient.c ox.a file2.o ox_kan.h |
|
$(CC) $(CFLAGS) ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS) |
$(CC) $(CFLAGS) ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS) |
|
|
|
|
#KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a |
#KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a |
KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gc/gc.a |
KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gc/gc.a |
|
|
## file2 should be linked from kanlib.a |
## file2 should be linked from kanlib.a |
|
|
Line 99 testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/k |
|
Line 111 testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/k |
|
|
|
|
|
clean : |
clean : |
-/bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ oxweave openxm-eg.tex openxm-jp.tex .configure_done |
-/bin/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 .configure_done ox100start |
|
|
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 |
/bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave |
/bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/ox100start |
ln -f -s ../src/kxx/ox ../bin/ox |
ln -f -s ../src/kxx/ox ../bin/ox |
ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1 |
ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1 |
ln -f -s ../src/kxx/oxlog ../bin/oxlog |
ln -f -s ../src/kxx/oxlog ../bin/oxlog |
ln -f -s ../src/kxx/oxweave ../bin/oxweave |
ln -f -s ../src/kxx/ox100start ../bin/ox100start |
|
|
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)/sm1 |
Line 123 install_lib_bin-for-debug : |
|
Line 135 install_lib_bin-for-debug : |
|
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD |
|
|
install : copy-kan-lib install_lib_bin |
install : copy-kan-lib install_lib_bin |
cp -f ox ox_sm1 oxlog oxweave $(OpenXM_bin) |
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
|
cp -f ox.exe ox_sm1.exe oxlog.exe ox100start.exe $(OpenXM_bin) ; \ |
install_lib_bin : |
else \ |
|
cp -f ox ox_sm1 oxlog ox100start $(OpenXM_bin) ; \ |
|
fi |
|
install_lib_bin: |
|
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
|
make install_lib_bin_windows ; \ |
|
else \ |
|
make install_lib_bin_unix ; \ |
|
fi |
|
install_lib_bin_unix : |
/bin/rm -f $(OpenXM_lib)/sm1/bin/ox* |
/bin/rm -f $(OpenXM_lib)/sm1/bin/ox* |
ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox |
ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox |
ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog |
ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog |
Line 137 install_lib_bin : |
|
Line 157 install_lib_bin : |
|
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD |
ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD |
|
install_lib_bin_windows : |
|
-mkdir $(OpenXM_lib)/sm1/bin |
|
/bin/rm -f $(OpenXM_lib)/sm1/bin/ox* |
|
cp ox.exe $(OpenXM_lib)/sm1/bin/ox.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_forAsir.exe |
|
cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot.exe |
|
cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_phc.exe |
|
cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_tigers.exe |
|
cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD.exe |
|
|
|
|
# This target overrides the symbolic link |
# This target overrides the symbolic link |
# from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1 |
# from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1 |
# generated in the top level Makefile |
# generated in the top level Makefile |
|
# Don't do it: cp $(OpenXM_lib)/sm1/ox-win.sm1 $(OpenXM_lib)/sm1/ox.sm1 ; |
copy-kan-lib : clean-for-install |
copy-kan-lib : clean-for-install |
mkdir $(OpenXM_lib)/sm1 |
mkdir $(OpenXM_lib)/sm1 |
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 |
cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 |
-if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
|
cp $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \ |
|
mkdir $(OpenXM_lib)/sm1/bin ; \ |
|
else \ |
|
cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \ |
|
fi |
-/bin/rm -rf $(OpenXM_lib)/sm1/CVS |
-/bin/rm -rf $(OpenXM_lib)/sm1/CVS |
|
-/bin/rm -f $(OpenXM_lib)/sm1/var.sm1 |
cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1 |
cp $(KANHOME)/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)/oxweave $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox |
-/bin/rm -rf $(OpenXM_bin)/oxlog $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox $(OpenXM_bin)/ox100start |
|
|
|
|
|
|