version 1.2, 1999/10/30 02:24:26 |
version 1.9, 1999/11/19 01:11:46 |
|
|
######### configurations. |
######### configurations. |
## $OpenXM$ |
## $OpenXM: OpenXM/src/kxx/Makefile,v 1.8 1999/11/16 08:07:31 takayama Exp $ |
KANHOME = ../SSkan |
KANHOME = ../SSkan |
|
|
LFLAG = |
LFLAG = |
#LFLAG = -lnsl -lsocket /usr/ucblib/libucb.a |
SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a |
|
|
#CFLAGS = -DSOLARIS |
|
CFLAGS = -g |
CFLAGS = -g |
MYOSTYPE = linux |
|
|
|
########## end of configurations |
########## end of configurations |
### 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 : all-plugin kanlib.a ox ox_sm1 oxlog |
all : all-plugin kanlib.a ox ox_sm1 oxlog oxweave |
|
|
all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog |
all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog |
|
|
|
|
ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h |
ln -s $(KANHOME)/plugin/ox_kan.h 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 |
gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) |
if test `uname` = "SunOS" ; \ |
|
then \ |
|
gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(SOLARISLFLAG) ; \ |
|
else \ |
|
gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) ; \ |
|
fi |
|
|
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 |
gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) |
if test `uname` = "SunOS" ; \ |
|
then \ |
|
gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(SOLARISLFLAG) ; \ |
|
else \ |
|
gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) ; \ |
|
fi |
|
|
ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a |
ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a |
(cd $(KANHOME)/Kan ; make kanlib.a) |
(cd $(KANHOME)/Kan ; make kanlib.a) |
gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) |
if test `uname` = "SunOS" ; \ |
|
then \ |
|
gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(SOLARISLFLAG) $(KANLIB) ; \ |
|
else \ |
|
gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) ; \ |
|
fi |
|
|
oxlog : oxlog.c |
oxlog : oxlog.c |
gcc -o oxlog oxlog.c |
gcc -o oxlog oxlog.c |
|
|
|
oxweave : oxweave.c |
|
gcc -o oxweave 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 |
gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c |
gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c |
Line 75 testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/k |
|
Line 91 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 *~ |
/bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ oxweave |
|
|
BACKUPDIR = Old/19980112 |
BACKUPDIR = Old/19980112 |
backup : |
backup : |
|
|
a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR) |
a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR) |
a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR) |
a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR) |
|
|
install : |
install_lib_bin : |
/bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog |
/bin/rm -f $(KANHOME)/lib/bin/ox* |
cp ox ox_sm1 oxlog ../bin |
ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox |
ln -sf ../../../bin/ox $(KANHOME)/lib/bin/ox |
ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog |
ln -sf ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog |
ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1 |
ln -sf ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1 |
ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir |
ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir |
ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot |
ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot |
ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc |
ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc |
ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers |
ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers |
ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD |
ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD |
|
|
|
install2 : |
install : install_lib_bin |
ln -sf ../src/kxx/ox ../bin/ox |
/bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave |
ln -sf ../src/kxx/ox_sm1 ../bin/ox_sm1 |
cp ox ox_sm1 oxlog oxweave ../bin |
ln -sf ../src/kxx/oxlog ../bin/oxlog |
|
|
install2 : install_lib_bin |
|
/bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave |
|
ln -f -s ../src/kxx/ox ../bin/ox |
|
ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1 |
|
ln -f -s ../src/kxx/oxlog ../bin/oxlog |
|
ln -f -s ../src/kxx/oxweave ../bin/oxweave |
|
|
|
|
clean-binary : |
clean-binary : |