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