Annotation of OpenXM/src/kxx/Makefile, Revision 1.8
1.2 takayama 1: ######### configurations.
1.8 ! takayama 2: ## $OpenXM: OpenXM/src/kxx/Makefile,v 1.7 1999/11/16 08:05:54 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.1 maekawa 69:
70: ## file2.c file2.h is in SSkan/plugin/
71: file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h
72: gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
73:
74: nullstackmachine.o : nullstackmachine.c ox_kan.h
75: sm1stackmachine.o : sm1stackmachine.c ox_kan.h
76:
77: testclient : testclient.c ox.a file2.o ox_kan.h
78: gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
79:
80:
81: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
82:
83: ## file2 should be linked from kanlib.a
84:
85: testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a
86: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LFLAG) $(KANLIB)
87:
88: testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
89: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LFLAG) $(KANLIB)
90:
91:
92: clean :
1.8 ! takayama 93: /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 94:
95: BACKUPDIR = Old/19980112
96: backup :
97: /bin/cp Makefile *.c *.h *.sm1 $(BACKUPDIR)
98:
99: PR = lpt1
100: print :
101: a2ps ox.sm1 | lpr -P$(PR)
102: a2ps oxasir.sm1 | lpr -P$(PR)
103: a2ps ox-1.sm1 | lpr -P$(PR)
104: a2ps ox_kan.h | lpr -P$(PR)
105: a2ps testclient.c | lpr -P$(PR)
106: a2ps oxmain.c | lpr -P$(PR)
107: a2ps oxserver00.c | lpr -P$(PR)
108: a2ps nullstackmachine.c | lpr -P$(PR)
109: a2ps $(KANHOME)/plugin/oxmisc.c | lpr -P$(PR)
110: a2ps $(KANHOME)/plugin/oxmisc2.c | lpr -P$(PR)
111: a2ps $(KANHOME)/plugin/mytcpio.c | lpr -P$(PR)
112: a2ps $(KANHOME)/plugin/oxmisc2.h | lpr -P$(PR)
113: a2ps $(KANHOME)/plugin/oxx.h | lpr -P$(PR)
114: a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR)
115: a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR)
116:
1.5 takayama 117: install_lib_bin :
118: /bin/rm -f $(KANHOME)/lib/bin/ox*
1.3 takayama 119: ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox
120: ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog
121: ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1
122: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir
123: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot
124: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc
125: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers
126: ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD
1.1 maekawa 127:
1.5 takayama 128: install : install_lib_bin
1.7 takayama 129: /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
130: cp ox ox_sm1 oxlog oxweave ../bin
1.5 takayama 131:
132: install2 : install_lib_bin
1.7 takayama 133: /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
1.3 takayama 134: ln -f -s ../src/kxx/ox ../bin/ox
135: ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1
136: ln -f -s ../src/kxx/oxlog ../bin/oxlog
1.7 takayama 137: ln -f -s ../src/kxx/oxweave ../bin/oxweave
1.1 maekawa 138:
139:
140: clean-binary :
141: echo " ../open-sm1-binary* will be removed"
142: echo "after 10 seconds. To cancel type in ctrl-C."
143: ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>