version 1.16, 2000/01/16 01:40:32 |
version 1.17, 2000/02/01 04:24:21 |
|
|
## $OpenXM: OpenXM/src/kxx/Makefile,v 1.15 2000/01/16 01:35:50 takayama Exp $ |
## $OpenXM: OpenXM/src/kxx/Makefile,v 1.16 2000/01/16 01:40:32 takayama Exp $ |
## Targets : |
## Targets : |
## all : generates ox oxlog ox_sm1 oxweave |
## all : generates ox oxlog ox_sm1 oxweave |
## install : copy the binaries to $(OpenXM_bin), |
## install : copy the binaries to $(OpenXM_bin), |
Line 14 OpenXM_contrib=../../../OpenXM_contrib |
|
Line 14 OpenXM_contrib=../../../OpenXM_contrib |
|
OpenXM_ROOT=../../../OpenXM |
OpenXM_ROOT=../../../OpenXM |
OpenXM_bin=$(OpenXM_ROOT)/bin |
OpenXM_bin=$(OpenXM_ROOT)/bin |
OpenXM_lib=$(OpenXM_ROOT)/lib |
OpenXM_lib=$(OpenXM_ROOT)/lib |
KANHOME = ../SSkan |
KANHOME=$(OpenXM_ROOT)/src/kan96xx |
LFLAG = |
LFLAG = |
SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a |
SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a |
CFLAGS = -g |
CFLAGS = -g |
|
DDD=-D_BSD_SOURCE |
########## 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 |
|
|
## 1998, 2/7 , Old version is at S/kan.backup/kxx.tar.gz.19980206 |
## 1998, 2/7 , Old version is at S/kan.backup/kxx.tar.gz.19980206 |
## |
## |
.c.o : |
.c.o : |
gcc $(CFLAGS) -c $< |
gcc $(CFLAGS) ${DDD} -c $< |
|
|
all-plugin : |
all-plugin : |
(cd $(KANHOME)/plugin ; make ) |
(cd $(KANHOME)/plugin ; make ) |
|
|
ox.a : |
ox.a : |
/bin/rm -f ox.a |
/bin/rm -f ox.a |
ln -s $(KANHOME)/plugin/ox.a ox.a |
ln -s $(KANHOME)/plugin/ox.a ox.a |
ox_kan.h : |
ox_kan.h : $(KANHOME)/plugin/ox_kan.h |
/bin/rm -f ox_kan.h |
/bin/rm -f ox_kan.h |
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 |
if test `uname` = "SunOS" ; \ |
if test `uname` = "SunOS" ; \ |
then \ |
then \ |
gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(SOLARISLFLAG) ; \ |
gcc $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(SOLARISLFLAG) ; \ |
else \ |
else \ |
gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) ; \ |
gcc $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) ; \ |
fi |
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 |
if test `uname` = "SunOS" ; \ |
if test `uname` = "SunOS" ; \ |
then \ |
then \ |
gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(SOLARISLFLAG) ; \ |
gcc $(CFLAGS) ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(SOLARISLFLAG) ; \ |
else \ |
else \ |
gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) ; \ |
gcc $(CFLAGS) ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) ; \ |
fi |
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) |
if test `uname` = "SunOS" ; \ |
if test `uname` = "SunOS" ; \ |
then \ |
then \ |
gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(SOLARISLFLAG) $(KANLIB) ; \ |
gcc $(CFLAGS) ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1 $(SOLARISLFLAG) $(KANLIB) ; \ |
else \ |
else \ |
gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) ; \ |
gcc $(CFLAGS) ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) ; \ |
fi |
fi |
|
|
oxlog : oxlog.c |
oxlog : oxlog.c |
gcc -o oxlog oxlog.c |
gcc ${DDD} -o oxlog oxlog.c |
|
|
oxweave : oxweave.c oxweaveUsage.h |
oxweave : oxweave.c oxweaveUsage.h |
gcc -o oxweave -g oxweave.c |
gcc ${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 |
gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c |
gcc $(CFLAGS) ${DDD} -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c |
|
|
nullstackmachine.o : nullstackmachine.c ox_kan.h |
nullstackmachine.o : nullstackmachine.c ox_kan.h |
sm1stackmachine.o : sm1stackmachine.c ox_kan.h |
sm1stackmachine.o : sm1stackmachine.c ox_kan.h |
|
|
testclient : testclient.c ox.a file2.o ox_kan.h |
testclient : testclient.c ox.a file2.o ox_kan.h |
gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG) |
gcc $(CFLAGS) ${DDD} testclient.c -o testclient ox.a file2.o $(LFLAG) |
|
|
|
|
#KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a |
#KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a |
Line 97 KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp |
|
Line 98 KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp |
|
## file2 should be linked from kanlib.a |
## file2 should be linked from kanlib.a |
|
|
testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a |
testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a |
gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LFLAG) $(KANLIB) |
gcc $(CFLAGS) ${DDD} -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LFLAG) $(KANLIB) |
|
|
testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a |
testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a |
gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LFLAG) $(KANLIB) |
gcc $(CFLAGS) ${DDD} -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LFLAG) $(KANLIB) |
|
|
|
|
clean : |
clean : |
Line 155 clean-for-install : |
|
Line 156 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)/oxweave $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox |
|
|
|
|
configure: |
configure: |
/bin/rm -f ox_kan.h |
|
ln -f -s ../SSkan/plugin/ox_kan.h ox_kan.h |
|
|
|
## openxm document generation. |
## openxm document generation. |
install-document : |
install-document : |