Annotation of OpenXM/src/kxx/Makefile, Revision 1.1.1.1
1.1 maekawa 1: ######### configurations.
2: KANHOME = ../SSkan
3:
4: LFLAG =
5: #LFLAG = -lnsl -lsocket /usr/ucblib/libucb.a
6:
7: #CFLAGS = -DSOLARIS
8: CFLAGS = -g
9: MYOSTYPE = linux
10:
11: ########## end of configurations
12: ### Set the server name in oxmain.c if you do not use the environmental
13: ### variable LOAD_SM1_PATH. cf. $KANHOME/lib/ox.sm1
14:
15: all : all-plugin kanlib.a ox ox_sm1 oxlog
16:
17: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
18:
19: dist :
20: ./makeDist
21:
22: ## ox_null can no longer be compiled.
23:
24: ## This is the Makefile at kxx.
25: ## 1998, 2/7 , Old version is at S/kan.backup/kxx.tar.gz.19980206
26: ##
27: .c.o :
28: gcc $(CFLAGS) -c $<
29:
30: all-plugin :
31: (cd $(KANHOME)/plugin ; make )
32: kanlib.a :
33: (cd $(KANHOME)/Kan ; make kanlib.a)
34: ox.a :
35: /bin/rm -f ox.a
36: ln -s $(KANHOME)/plugin/ox.a ox.a
37: ox_kan.h :
38: /bin/rm -f ox_kan.h
39: ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
40:
41: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
42: gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG)
43:
44: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
45: gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG)
46:
47: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
48: (cd $(KANHOME)/Kan ; make kanlib.a)
49: gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB)
50:
51: oxlog : oxlog.c
52: gcc -o oxlog oxlog.c
53:
54: ## file2.c file2.h is in SSkan/plugin/
55: file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h
56: gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
57:
58: nullstackmachine.o : nullstackmachine.c ox_kan.h
59: sm1stackmachine.o : sm1stackmachine.c ox_kan.h
60:
61: testclient : testclient.c ox.a file2.o ox_kan.h
62: gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
63:
64:
65: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
66:
67: ## file2 should be linked from kanlib.a
68:
69: testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a
70: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LFLAG) $(KANLIB)
71:
72: testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
73: gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LFLAG) $(KANLIB)
74:
75:
76: clean :
77: /bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~
78:
79: BACKUPDIR = Old/19980112
80: backup :
81: /bin/cp Makefile *.c *.h *.sm1 $(BACKUPDIR)
82:
83: PR = lpt1
84: print :
85: a2ps ox.sm1 | lpr -P$(PR)
86: a2ps oxasir.sm1 | lpr -P$(PR)
87: a2ps ox-1.sm1 | lpr -P$(PR)
88: a2ps ox_kan.h | lpr -P$(PR)
89: a2ps testclient.c | lpr -P$(PR)
90: a2ps oxmain.c | lpr -P$(PR)
91: a2ps oxserver00.c | lpr -P$(PR)
92: a2ps nullstackmachine.c | lpr -P$(PR)
93: a2ps $(KANHOME)/plugin/oxmisc.c | lpr -P$(PR)
94: a2ps $(KANHOME)/plugin/oxmisc2.c | lpr -P$(PR)
95: a2ps $(KANHOME)/plugin/mytcpio.c | lpr -P$(PR)
96: a2ps $(KANHOME)/plugin/oxmisc2.h | lpr -P$(PR)
97: a2ps $(KANHOME)/plugin/oxx.h | lpr -P$(PR)
98: a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR)
99: a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR)
100:
101: install :
102: cp ox ox_sm1 oxlog ../bin
103: ln -sf ../../../bin/ox $(KANHOME)/lib/bin/ox
104: ln -sf ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog
105: ln -sf ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1
106: ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir
107: ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot
108: ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc
109: ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers
110: ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD
111:
112:
113: noro :
114: cp $(KANHOME)/Kan/sm1 .
115: cp $(KANHOME)/Kan/debug/tower-sugar.sm1 .
116: cp $(KANHOME)/Kan/debug/tower.sm1 .
117: cp $(KANHOME)/Doc/factor-a.sm1 .
118: echo "sm1 ox ox_sm1 oxasir.sm1 oxasir.asir tower-sugar.sm1 tower.sm1 factor-a.sm1 are generated in yama:kxx/make noro on " > note.sm1binary.txt
119: date >> note.sm1binary.txt
120: tar czvf sm1binary.linux.tgz sm1 ox.sm1 oxasir.sm1 ox ox_sm1 oxlog2.txt oxasir.asir tower-sugar.sm1 tower.sm1 factor-a.sm1 note.sm1binary.txt
121: /bin/rm sm1 tower-sugar.sm1 tower.sm1 factor-a.sm1 note.sm1binary.txt
122: /bin/rm -f /fuji/taka/S/sm1binary.linux.tgz
123: mv sm1binary.linux.tgz /fuji/taka/S
124:
125: backup2 :
126: cp openxxx.tex $(HOME)/berkeley/gbhg3/Bak
127:
128: clean-binary :
129: echo " ../open-sm1-binary* will be removed"
130: echo "after 10 seconds. To cancel type in ctrl-C."
131: ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>