Annotation of OpenXM/src/kxx/Makefile, Revision 1.11
1.2 takayama 1: ######### configurations.
1.11 ! takayama 2: ## $OpenXM: OpenXM/src/kxx/Makefile,v 1.10 1999/11/22 04:22:57 takayama Exp $
1.1 maekawa 3: KANHOME = ../SSkan
4:
5: LFLAG =
1.4 takayama 6: SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a
1.1 maekawa 7:
8: CFLAGS = -g
9:
10: ########## end of configurations
11: ### Set the server name in oxmain.c if you do not use the environmental
12: ### variable LOAD_SM1_PATH. cf. $KANHOME/lib/ox.sm1
13:
1.6 takayama 14: all : all-plugin kanlib.a ox ox_sm1 oxlog oxweave
1.1 maekawa 15:
16: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
17:
18: dist :
19: ./makeDist
20:
21: ## ox_null can no longer be compiled.
22:
23: ## This is the Makefile at kxx.
24: ## 1998, 2/7 , Old version is at S/kan.backup/kxx.tar.gz.19980206
25: ##
26: .c.o :
27: gcc $(CFLAGS) -c $<
28:
29: all-plugin :
30: (cd $(KANHOME)/plugin ; make )
31: kanlib.a :
32: (cd $(KANHOME)/Kan ; make kanlib.a)
33: ox.a :
34: /bin/rm -f ox.a
35: ln -s $(KANHOME)/plugin/ox.a ox.a
36: ox_kan.h :
37: /bin/rm -f ox_kan.h
38: ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
39:
40: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.4 takayama 41: if test `uname` = "SunOS" ; \
42: then \
43: gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(SOLARISLFLAG) ; \
44: else \
45: gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) ; \
46: fi
1.1 maekawa 47:
48: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.4 takayama 49: if test `uname` = "SunOS" ; \
50: then \
51: gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(SOLARISLFLAG) ; \
52: else \
53: gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) ; \
54: fi
1.1 maekawa 55:
56: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
57: (cd $(KANHOME)/Kan ; make kanlib.a)
1.4 takayama 58: if test `uname` = "SunOS" ; \
59: then \
60: gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(SOLARISLFLAG) $(KANLIB) ; \
61: else \
62: gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) ; \
63: fi
1.1 maekawa 64:
65: oxlog : oxlog.c
66: gcc -o oxlog oxlog.c
1.6 takayama 67:
68: oxweave : oxweave.c
1.9 takayama 69: gcc -o oxweave oxweave.c
1.1 maekawa 70:
71: ## file2.c file2.h is in SSkan/plugin/
72: file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h
73: gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
74:
75: nullstackmachine.o : nullstackmachine.c ox_kan.h
76: sm1stackmachine.o : sm1stackmachine.c ox_kan.h
77:
78: testclient : testclient.c ox.a file2.o ox_kan.h
79: gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
80:
81:
1.11 ! takayama 82: #KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
! 83: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gc/gc.a
1.1 maekawa 84:
85: ## file2 should be linked from kanlib.a
86:
87: testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a
88: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LFLAG) $(KANLIB)
89:
90: testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
91: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LFLAG) $(KANLIB)
92:
93:
94: clean :
1.8 takayama 95: /bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ oxweave
1.1 maekawa 96:
97: BACKUPDIR = Old/19980112
98: backup :
99: /bin/cp Makefile *.c *.h *.sm1 $(BACKUPDIR)
100:
101: PR = lpt1
102: print :
103: a2ps ox.sm1 | lpr -P$(PR)
104: a2ps oxasir.sm1 | lpr -P$(PR)
105: a2ps ox-1.sm1 | lpr -P$(PR)
106: a2ps ox_kan.h | lpr -P$(PR)
107: a2ps testclient.c | lpr -P$(PR)
108: a2ps oxmain.c | lpr -P$(PR)
109: a2ps oxserver00.c | lpr -P$(PR)
110: a2ps nullstackmachine.c | lpr -P$(PR)
111: a2ps $(KANHOME)/plugin/oxmisc.c | lpr -P$(PR)
112: a2ps $(KANHOME)/plugin/oxmisc2.c | lpr -P$(PR)
113: a2ps $(KANHOME)/plugin/mytcpio.c | lpr -P$(PR)
114: a2ps $(KANHOME)/plugin/oxmisc2.h | lpr -P$(PR)
115: a2ps $(KANHOME)/plugin/oxx.h | lpr -P$(PR)
116: a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR)
117: a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR)
118:
1.5 takayama 119: install_lib_bin :
120: /bin/rm -f $(KANHOME)/lib/bin/ox*
1.3 takayama 121: ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox
122: ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog
123: ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1
124: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir
125: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot
126: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc
127: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers
128: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD
1.1 maekawa 129:
1.5 takayama 130: install : install_lib_bin
1.7 takayama 131: /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
132: cp ox ox_sm1 oxlog oxweave ../bin
1.5 takayama 133:
134: install2 : install_lib_bin
1.7 takayama 135: /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
1.3 takayama 136: ln -f -s ../src/kxx/ox ../bin/ox
137: ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1
138: ln -f -s ../src/kxx/oxlog ../bin/oxlog
1.7 takayama 139: ln -f -s ../src/kxx/oxweave ../bin/oxweave
1.10 takayama 140:
141:
142: configure:
143: /bin/rm -f ox_kan.h
144: ln -f -s ../SSkan/plugin/ox_kan.h ox_kan.h
1.1 maekawa 145:
146:
147: clean-binary :
148: echo " ../open-sm1-binary* will be removed"
149: echo "after 10 seconds. To cancel type in ctrl-C."
150: ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>