[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

File: [local] / OpenXM / src / kan96xx / plugin / Attic / Makefile (download)

Revision 1.11, Sun Sep 17 03:12:11 2000 UTC (23 years, 9 months ago) by takayama
Branch: MAIN
CVS Tags: maekawa-ipv6, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3
Changes since 1.10: +2 -5 lines

Change of Makefile's for gmp-3.1.
Recompilation with new include files is necessary.
Otherwise, you will have link errors.
All libgmp.* and include files of gmp are installed in
OpenXM/lib and OpenXM/include respectively by the target install-gmp.
This target is executed in the configuration stage.
If you have a trouble, please let me know.

## $OpenXM: OpenXM/src/kan96xx/plugin/Makefile,v 1.11 2000/09/17 03:12:11 takayama Exp $ 

OPENXM=../../../../OpenXM
OPEMXM_CONTRIB=../../../../OpenXM_contrib
GC=$(OPEMXM_CONTRIB)/gc
GMP=$(OPEMXM_CONTRIB)/gmp
KAN96XX=$(OPENXM)/src/kan96xx

#AR=/usr/bin/ar
AR=ar
RM=/bin/rm

DDD=-D_BSD_SOURCE

CC=gcc
#CFLAGS+=-g -I$(GMP) -I../Kan 
CFLAGS=-g -I$(GMP) -I../Kan 

all: all-gc asirconv.a cmo.a file2.a ox.a sample.a sm1Socket.a

## .SUFFIXES:

clean:
	$(RM) -f *.a *.o a.out cmo.h cmotag.hh cmotagToName cmptag.htmp \
		 ox.h ox.hh ox_kan.h

all-gc:
	(cd $(KAN96XX) ; make all-gc)

asirconv.a: asirconv.o
	$(AR) ru $@ $?
	$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@

asirconv.o: asir.h asir.hh asirconv.c

cmo.a: cmo.o cmo-gmp.o
	$(AR) ru $@ $?
	$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@

cmo.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \
	oxMessageTag.h oxFunctionId.h

cmo-gmp.o: cmo.h cmo.c cmo-gmp.c file2.h mathcap.h cmotag.htmp \
	oxMessageTag.h oxFunctionId.h
	$(CC) $(CFLAGS) -I$(GMP)/mpn -c cmo-gmp.c

cmotag.htmp: cmotagToName
	$(RM) -f cmotag.htmp
	./cmotagToName > cmotag.htmp

cmotagToName: cmotag.h cmotagToName.c
	$(CC) -o cmotagToName cmotagToName.c

cmo.h: cmo0.h cmotag.h
	@echo "Making cmo.h"
	@$(RM) -f cmo.h
	@echo "/********* DO NOT EDIT THIS FILE *************/" > cmo.h
	@cat cmotag.h cmo0.h >> cmo.h

file2.a: file2.o
	$(AR) ru $@ $?
	$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@

file2.o: file2.h file2.c

ox.a: mytcpio.o oxmisc.o oxmisc2.o
	$(AR) ru $@ $?
	$(GC)/if_not_there $(GC)/on_sparc_sunos5 ranlib $@

ox.h: oxx.h
	@echo "Making ox.h"
	@echo "/********* DO NOT EDIT THIS FILE *************/" > ox.h
	@cat oxx.h >> ox.h

ox.hh: oxx.hh
	@echo "Making ox.hh"
	@$(RM) -f ox.hh
	@echo "/********* DO NOT EDIT THIS FILE *************/" > ox.hh
	@cat oxx.hh >> ox.hh


ox_kan.h: cmotag.h file2.h mathcap.h oxFunctionId.h oxMessageTag.h oxKan0.h
	@echo "Making ox_kan.h"
	@$(RM) -f 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

sample.a: sample.o
	$(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 $@