version 1.3, 1999/12/15 14:33:41 |
version 1.10, 2000/02/01 04:24:20 |
|
|
## $OpenXM: OpenXM/src/kan96xx/plugin/Makefile,v 1.2 1999/11/02 12:28:57 takayama Exp $ |
## $OpenXM: OpenXM/src/kan96xx/plugin/Makefile,v 1.9 2000/01/19 06:25:47 takayama Exp $ |
all : sample.a sm1Socket.a asirconv.a cmo.a file2.a ox.a |
|
|
|
CC=gcc |
OPENXM=../../../../OpenXM |
INCLUDE=-I ../gmp -I ../Kan |
OPEMXM_CONTRIB=../../../../OpenXM_contrib |
FLAG=-g |
GC=$(OPEMXM_CONTRIB)/gc |
.c.o : |
GMP=$(OPEMXM_CONTRIB)/gmp |
$(CC) $(FLAG) $(INCLUDE) -c $< |
KAN96XX=$(OPENXM)/src/kan96xx |
|
|
all0 : ak.a libasir.a |
#AR=/usr/bin/ar |
|
AR=ar |
|
RM=/bin/rm |
|
|
sample.o : sample.h sample.c sample.hh |
DDD=-D_BSD_SOURCE |
|
|
sample.a : sample.o |
CC=gcc |
ar ru sample.a sample.o |
#CFLAGS+=-g -I$(GMP) -I../Kan |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib sample.a |
CFLAGS=-g -I$(GMP) -I../Kan |
|
|
sm1Socket.o : sm1Socket.h sm1Socket.c sm1Socket.hh |
all: all-gc all-gmp asirconv.a cmo.a file2.a ox.a sample.a sm1Socket.a |
|
|
sm1Socket.a : sm1Socket.o |
## .SUFFIXES: |
ar ru sm1Socket.a sm1Socket.o |
|
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib sm1Socket.a |
|
|
|
sm1pvm.a : sm1pvm.h sm1pvm.c sm1pvm.hh |
clean: |
$(CC) $(FLAG) $(INCLUDE) -I $(PVM_ROOT)/include -c sm1pvm.c |
$(RM) -f *.a *.o a.out cmo.h cmotag.hh cmotagToName cmptag.htmp \ |
ar ru sm1pvm.a sm1pvm.o |
ox.h ox.hh ox_kan.h |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib sm1pvm.a |
|
|
|
asirconv.o : asir.h asirconv.c asir.hh |
all-gc: |
|
(cd $(KAN96XX) ; make all-gc) |
|
|
asirconv.a : asirconv.o |
all-gmp: |
ar ru asirconv.a asirconv.o |
(cd $(KAN96XX) ; make all-gmp) |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib asirconv.a |
|
|
|
ak.a : |
asirconv.a: asirconv.o |
# ln -s /fuji/taka/noro/ak.a |
$(AR) ru $@ $? |
ln -s /dosc/work/noro/ak.a |
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
libasir.a : |
asirconv.o: asir.h asir.hh asirconv.c |
# ln -s /fuji/taka/noro/libasir.a |
|
ln -s /dosc/work/noro/libasir.a |
|
|
|
cmo.o : cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp oxMessageTag.h oxFunctionId.h |
cmo.a: cmo.o cmo-gmp.o |
|
$(AR) ru $@ $? |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
cmo-gmp.o : cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp oxMessageTag.h oxFunctionId.h |
cmo.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \ |
$(CC) $(FLAG) $(INCLUDE) -I ../gmp/mpn -c cmo-gmp.c |
oxMessageTag.h oxFunctionId.h |
cmo.a : cmo.o cmo-gmp.o |
|
ar ru cmo.a cmo.o cmo-gmp.o |
|
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib cmo.a |
|
|
|
cmotag.htmp : cmotagToName |
cmo-gmp.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \ |
touch cmotag.htmp |
oxMessageTag.h oxFunctionId.h |
/bin/rm -rf cmotag.htmp |
$(CC) $(CFLAGS) -I$(GMP)/mpn -c cmo-gmp.c |
./cmotagToName >cmotag.htmp |
|
|
|
cmotagToName : cmotagToName.c cmotag.h |
cmotag.htmp: cmotagToName |
|
$(RM) -f cmotag.htmp |
|
./cmotagToName > cmotag.htmp |
|
|
|
cmotagToName: cmotag.h cmotagToName.c |
$(CC) -o cmotagToName cmotagToName.c |
$(CC) -o cmotagToName cmotagToName.c |
|
|
cmo.h : cmo0.h cmotag.h |
cmo.h: cmo0.h cmotag.h |
/bin/rm -f cmo.h |
@echo "Making cmo.h" |
echo "/*cmo.h : Dont edit this file. */" >cmo.h |
@$(RM) -f cmo.h |
cat cmotag.h >>cmo.h |
@echo "/********* DO NOT EDIT THIS FILE *************/" > cmo.h |
echo "/*cmo.h : Dont edit this file. */" >>cmo.h |
@cat cmotag.h cmo0.h >> cmo.h |
cat cmo0.h >>cmo.h |
|
|
|
file2.o : file2.h file2.c |
file2.a: file2.o |
|
$(AR) ru $@ $? |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
file2.a : file2.o |
file2.o: file2.h file2.c |
ar ru file2.a file2.o |
|
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib file2.a |
|
|
|
|
ox.a: mytcpio.o oxmisc.o oxmisc2.o |
|
$(AR) ru $@ $? |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
mytcpio.o : mytcpio.c ox_kan.h |
ox.h: oxx.h |
oxmisc.o : oxmisc.c ox_kan.h |
@echo "Making ox.h" |
oxmisc2.o : oxmisc2.c ox_kan.h mathcap.h cmo.h |
@echo "/********* DO NOT EDIT THIS FILE *************/" > ox.h |
$(CC) $(FLAG) $(INCLUDE) -c oxmisc2.c |
@cat oxx.h >> ox.h |
|
|
ox.a : mytcpio.o oxmisc.o oxmisc2.o ox_kan.h ox.h ox.hh |
ox.hh: oxx.hh |
ar ru ox.a mytcpio.o oxmisc.o oxmisc2.o |
@echo "Making ox.hh" |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib ox.a |
@$(RM) -f ox.hh |
ox.h : oxx.h |
@echo "/********* DO NOT EDIT THIS FILE *************/" > ox.hh |
/bin/rm -f tmp.h |
@cat oxx.hh >> ox.hh |
echo "/********* DO NOT EDIT THIS FILE *************/" >tmp.h |
|
cat oxx.h >>tmp.h |
|
cp tmp.h ox.h |
|
ox.hh : oxx.hh |
|
/bin/rm -f tmp.h |
|
echo "/********* DO NOT EDIT THIS FILE *************/" >tmp.h |
|
cat oxx.hh >>tmp.h |
|
cp tmp.h ox.hh |
|
/bin/rm -f tmp.h |
|
|
|
|
|
ox_kan.h : oxMessageTag.h oxFunctionId.h file2.h cmotag.h oxKan0.h mathcap.h |
ox_kan.h: cmotag.h file2.h mathcap.h oxFunctionId.h oxMessageTag.h oxKan0.h |
/bin/rm -f ox_kan.h |
@echo "Making ox_kan.h" |
echo "/* Do not edit this file. */" >ox_kan.h |
@$(RM) -f ox_kan.h |
cat mathcap.h file2.h cmotag.h oxMessageTag.h oxFunctionId.h oxKan0.h >>ox_kan.h |
@echo "/********* DO NOT EDIT THIS FILE *************/" > ox_kan.h |
|
@cat mathcap.h file2.h cmotag.h oxMessageTag.h oxFunctionId.h \ |
|
oxKan0.h >> ox_kan.h |
|
|
|
mytcpio.o: ox.h ox.hh ox_kan.h mytcpio.c |
|
oxmisc.o: ox.h ox.hh ox_kan.h oxmisc.c |
|
oxmisc2.o: cmo.h mathcap.h ox.h ox.hh ox_kan.h oxmisc2.c |
|
|
clean : |
sample.a: sample.o |
/bin/rm -f *.a *.o *~ a.out cmotagToName cmo.h cmotag.hh ox.h ox.hh ox_kan.h cmptag.htmp |
$(AR) ru $@ $? |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
|
sample.o: sample.h sample.hh sample.c |
|
|
|
sm1Socket.a: sm1Socket.o |
|
$(AR) ru sm1Socket.a sm1Socket.o |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib sm1Socket.a |
|
|
|
sm1Socket.o: sm1Socket.h sm1Socket.hh sm1Socket.c |
|
|
|
sm1pvm.a: sm1pvm.o |
|
$(AR) ru $@ $? |
|
$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |
|
|
|
sm1pvm.o: sm1pvm.h sm1pvm.hh sm1pvm.c |
|
$(CC) $(CFLAGS) -I $(PVM_ROOT)/include -c sm1pvm.c |
|
|
|
all0: ak.a libasir.a |
|
|
|
ak.a: |
|
# ln -s /fuji/taka/noro/ak.a |
|
ln -s /dosc/work/noro/ak.a |
|
|
|
libasir.a: |
|
# ln -s /fuji/taka/noro/libasir.a |
|
ln -s /dosc/work/noro/libasir.a |
|
|
|
.c.o: |
|
$(CC) $(CFLAGS) ${DDD} -c $< |
|
|
|
# GNU make only. |
|
#.o.a: |
|
# $(AR) ru $@ $? |
|
# $(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@ |