Annotation of OpenXM/src/kan96xx/plugin/Makefile, Revision 1.9
1.9 ! takayama 1: ## $OpenXM: OpenXM/src/kan96xx/plugin/Makefile,v 1.8 2000/01/19 02:38:51 takayama Exp $
1.4 maekawa 2:
1.5 maekawa 3: OPENXM=../../../../OpenXM
1.4 maekawa 4: OPEMXM_CONTRIB=../../../../OpenXM_contrib
5: GC=$(OPEMXM_CONTRIB)/gc
6: GMP=$(OPEMXM_CONTRIB)/gmp
1.5 maekawa 7: KAN96XX=$(OPENXM)/src/kan96xx
1.4 maekawa 8:
1.9 ! takayama 9: #AR=/usr/bin/ar
! 10: AR=ar
1.4 maekawa 11: RM=/bin/rm
1.3 takayama 12:
13: CC=gcc
1.9 ! takayama 14: #CFLAGS+=-g -I$(GMP) -I../Kan
! 15: CFLAGS=-g -I$(GMP) -I../Kan
1.4 maekawa 16:
1.5 maekawa 17: all: all-gc all-gmp asirconv.a cmo.a file2.a ox.a sample.a sm1Socket.a
1.7 takayama 18:
1.8 takayama 19: ## .SUFFIXES:
1.4 maekawa 20:
21: clean:
22: $(RM) -f *.a *.o a.out cmo.h cmotag.hh cmotagToName cmptag.htmp \
23: ox.h ox.hh ox_kan.h
1.5 maekawa 24:
25: all-gc:
26: (cd $(KAN96XX) ; make all-gc)
27:
28: all-gmp:
29: (cd $(KAN96XX) ; make all-gmp)
1.4 maekawa 30:
31: asirconv.a: asirconv.o
1.9 ! takayama 32: $(AR) ru $@ $?
! 33: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.4 maekawa 34:
35: asirconv.o: asir.h asir.hh asirconv.c
36:
37: cmo.a: cmo.o cmo-gmp.o
1.9 ! takayama 38: $(AR) ru $@ $?
! 39: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.4 maekawa 40:
41: cmo.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \
42: oxMessageTag.h oxFunctionId.h
43:
44: cmo-gmp.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \
45: oxMessageTag.h oxFunctionId.h
46: $(CC) $(CFLAGS) -I$(GMP)/mpn -c cmo-gmp.c
47:
48: cmotag.htmp: cmotagToName
49: $(RM) -f cmotag.htmp
50: ./cmotagToName > cmotag.htmp
51:
52: cmotagToName: cmotag.h cmotagToName.c
53: $(CC) -o cmotagToName cmotagToName.c
1.3 takayama 54:
1.4 maekawa 55: cmo.h: cmo0.h cmotag.h
56: @echo "Making cmo.h"
57: @$(RM) -f cmo.h
58: @echo "/********* DO NOT EDIT THIS FILE *************/" > cmo.h
59: @cat cmotag.h cmo0.h >> cmo.h
1.1 maekawa 60:
1.4 maekawa 61: file2.a: file2.o
1.9 ! takayama 62: $(AR) ru $@ $?
! 63: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.3 takayama 64:
1.4 maekawa 65: file2.o: file2.h file2.c
1.1 maekawa 66:
1.4 maekawa 67: ox.a: mytcpio.o oxmisc.o oxmisc2.o
1.6 maekawa 68: $(AR) ru $@ $?
69: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.3 takayama 70:
1.4 maekawa 71: ox.h: oxx.h
72: @echo "Making ox.h"
73: @echo "/********* DO NOT EDIT THIS FILE *************/" > ox.h
74: @cat oxx.h >> ox.h
1.1 maekawa 75:
1.4 maekawa 76: ox.hh: oxx.hh
77: @echo "Making ox.hh"
78: @$(RM) -f ox.hh
79: @echo "/********* DO NOT EDIT THIS FILE *************/" > ox.hh
80: @cat oxx.hh >> ox.hh
1.1 maekawa 81:
1.3 takayama 82:
1.4 maekawa 83: ox_kan.h: cmotag.h file2.h mathcap.h oxFunctionId.h oxMessageTag.h oxKan0.h
84: @echo "Making ox_kan.h"
85: @$(RM) -f ox_kan.h
86: @echo "/********* DO NOT EDIT THIS FILE *************/" > ox_kan.h
87: @cat mathcap.h file2.h cmotag.h oxMessageTag.h oxFunctionId.h \
88: oxKan0.h >> ox_kan.h
1.1 maekawa 89:
1.4 maekawa 90: mytcpio.o: ox.h ox.hh ox_kan.h mytcpio.c
91: oxmisc.o: ox.h ox.hh ox_kan.h oxmisc.c
92: oxmisc2.o: cmo.h mathcap.h ox.h ox.hh ox_kan.h oxmisc2.c
93:
94: sample.a: sample.o
1.9 ! takayama 95: $(AR) ru $@ $?
! 96: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.4 maekawa 97:
98: sample.o: sample.h sample.hh sample.c
99:
100: sm1Socket.a: sm1Socket.o
1.9 ! takayama 101: $(AR) ru sm1Socket.a sm1Socket.o
! 102: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib sm1Socket.a
1.1 maekawa 103:
1.4 maekawa 104: sm1Socket.o: sm1Socket.h sm1Socket.hh sm1Socket.c
1.1 maekawa 105:
1.4 maekawa 106: sm1pvm.a: sm1pvm.o
1.9 ! takayama 107: $(AR) ru $@ $?
! 108: $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
1.3 takayama 109:
1.4 maekawa 110: sm1pvm.o: sm1pvm.h sm1pvm.hh sm1pvm.c
111: $(CC) $(CFLAGS) -I $(PVM_ROOT)/include -c sm1pvm.c
1.1 maekawa 112:
1.4 maekawa 113: all0: ak.a libasir.a
1.1 maekawa 114:
1.4 maekawa 115: ak.a:
116: # ln -s /fuji/taka/noro/ak.a
117: ln -s /dosc/work/noro/ak.a
1.1 maekawa 118:
1.4 maekawa 119: libasir.a:
120: # ln -s /fuji/taka/noro/libasir.a
121: ln -s /dosc/work/noro/libasir.a
1.1 maekawa 122:
1.4 maekawa 123: .c.o:
124: $(CC) $(CFLAGS) -c $<
1.2 takayama 125:
1.9 ! takayama 126: # GNU make only.
! 127: #.o.a:
! 128: # $(AR) ru $@ $?
! 129: # $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>