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