Annotation of OpenXM/src/kxx/Makefile.in, Revision 1.2
1.2 ! takayama 1: ## $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.1 2000/02/01 09:59:43 takayama Exp $
1.1 takayama 2: ## Targets :
3: ## all : generates ox oxlog ox_sm1 oxweave
4: ## install : copy the binaries to $(OpenXM_bin),
5: ## remove symbolic link from $(OpenXM_lib)/sm1 to $(KANHOME)/Doc/*
6: ## copy $(KANHOME)/Doc/* to $(OpenXM_lib)/sm1
7: ## Create symbolic links in $(OpenXM_lib)/sm1/bin
8: ## install-for-debug :
9: ## Create symbolic links instead of copying.
10: ## install-document :
11: ## Nothing to do for now.
12: ## If you change this file, do not forget to run autoconf and remove .configure_done
13: ######### configurations.
14: OpenXM_contrib=../../../OpenXM_contrib
15: OpenXM_ROOT=../../../OpenXM
16: OpenXM_bin=$(OpenXM_ROOT)/bin
17: OpenXM_lib=$(OpenXM_ROOT)/lib
18: KANHOME=$(OpenXM_ROOT)/src/kan96xx
19: CC=@CC@
20: RANLIB=@RANLIB@
21: LIBS=@LIBS@
22: CFLAGS = -g
23: DDD=-D_BSD_SOURCE
1.2 ! takayama 24: LINKFLAG=-static
1.1 takayama 25: ########## end of configurations
26:
27: ### Set the server name in oxmain.c if you do not use the environmental
28: ### variable LOAD_SM1_PATH. cf. $KANHOME/lib/ox.sm1
29:
30: all : configure all-plugin kanlib.a ox ox_sm1 oxlog oxweave
31:
32: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
33:
34: configure : Makefile.in configure.in
35: echo "You configure is older than Makefine.in and configure.in"
36: /bin/rm -f .configure_done
37: autoconf
38: .error "Run ./make-configure"
39:
40: dist :
41: ./makeDist
42:
43: ## ox_null can no longer be compiled.
44:
45: ## This is the Makefile at kxx.
46: ## 1998, 2/7 , Old version is at S/kan.backup/kxx.tar.gz.19980206
47: ##
48: .c.o :
49: $(CC) $(CFLAGS) ${DDD} -c $<
50:
51: all-plugin :
52: (cd $(KANHOME)/plugin ; make )
53: kanlib.a :
54: (cd $(KANHOME)/Kan ; make kanlib.a)
55: ox.a :
56: /bin/rm -f ox.a
57: ln -s $(KANHOME)/plugin/ox.a ox.a
58: ox_kan.h : $(KANHOME)/plugin/ox_kan.h
59: /bin/rm -f ox_kan.h
60: ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
61:
62: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.2 ! takayama 63: $(CC) ${LINKFLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LIBS)
1.1 takayama 64:
65: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.2 ! takayama 66: $(CC) ${LINKFLAG} $(CFLAGS) ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LIBS) ; \
1.1 takayama 67:
68: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
1.2 ! takayama 69: $(CC) ${LINKFLAG} $(CFLAGS) ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1 $(LIBS) $(KANLIB)
1.1 takayama 70:
71: oxlog : oxlog.c
1.2 ! takayama 72: $(CC) ${LINKFLAG} ${DDD} -o oxlog oxlog.c
1.1 takayama 73:
74: oxweave : oxweave.c oxweaveUsage.h
1.2 ! takayama 75: $(CC) ${LINKFLAG} ${DDD} -o oxweave -g oxweave.c
1.1 takayama 76:
77: ## file2.c file2.h is in SSkan/plugin/
78: file2.o : $(KANHOME)/plugin/file2.c $(KANHOME)/plugin/file2.h
79: $(CC) $(CFLAGS) ${DDD} -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
80:
81: nullstackmachine.o : nullstackmachine.c ox_kan.h
82: sm1stackmachine.o : sm1stackmachine.c ox_kan.h
83:
84: testclient : testclient.c ox.a file2.o ox_kan.h
85: $(CC) $(CFLAGS) ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS)
86:
87:
88: #KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
89: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gc/gc.a
90:
91: ## file2 should be linked from kanlib.a
92:
93: testclient2a : testclient2.c ox.a ox_kan.h $(KANHOME)/Kan/kanlib.a
94: $(CC) $(CFLAGS) ${DDD} -I$(KANHOME)/Kan testclient2.c ox.a -o testclient2a $(LIBS) $(KANLIB)
95:
96: testclient2 : testclient2.c ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
97: $(CC) $(CFLAGS) ${DDD} -I$(KANHOME)/Kan testclient2.c -o testclient2 $(LIBS) $(KANLIB)
98:
99:
100: clean :
101: -/bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log ox_sm1 oxlog *~ oxweave openxm-eg.tex openxm-jp.tex .configure_done
102:
103: distclean : clean clean-for-install
104: /bin/rm -f config.status config.cache config.log
105:
106: ## install targets.
107: install-for-debug : clean-for-install install_lib_bin-for-debug
108: /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
109: ln -f -s ../src/kxx/ox ../bin/ox
110: ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1
111: ln -f -s ../src/kxx/oxlog ../bin/oxlog
112: ln -f -s ../src/kxx/oxweave ../bin/oxweave
113:
114: install_lib_bin-for-debug :
115: ln -f -s ../src/kan96xx/Doc $(OpenXM_lib)/sm1
116: /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
117: ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
118: ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
119: ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
120: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
121: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
122: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
123: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
124: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
125:
126: install : copy-kan-lib install_lib_bin
127: cp -f ox ox_sm1 oxlog oxweave $(OpenXM_bin)
128:
129: install_lib_bin :
130: /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
131: ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
132: ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
133: ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
134: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
135: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
136: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
137: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
138: ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
139:
140: # This target overrides the symbolic link
141: # from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1
142: # generated in the top level Makefile
143: copy-kan-lib : clean-for-install
144: mkdir $(OpenXM_lib)/sm1
145: touch $(OpenXM_lib)/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc
146: cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1
147: -/bin/rm -rf $(OpenXM_lib)/sm1/CVS
148: cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1
149: clean-for-install :
150: -/bin/rm -rf $(OpenXM_lib)/sm1
151: -/bin/rm -rf $(OpenXM_bin)/oxlog $(OpenXM_bin)/oxweave $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox
152:
153:
154:
155: ## openxm document generation.
156: install-document :
157: echo "Do nothing for now"
158:
159: OXWEAVEFLAG=--recursive
160: doc: openxxx.tex
161: -/bin/rm openxm-eg.tex openxm-jp.tex
162: echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-eg.tex
163: echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-jp.tex
164: ./oxweave $(OXWEAVEFLAG) C eg <openxxx.tex >>openxm-eg.tex
165: ./oxweave $(OXWEAVEFLAG) C jp <openxxx.tex >>openxm-jp.tex
166:
167: clean-binary :
168: echo " ../open-sm1-binary* will be removed"
169: echo "after 10 seconds. To cancel type in ctrl-C."
170: ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
171:
172:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>