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

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

Revision 1.2, Thu Sep 11 00:52:06 2003 UTC (20 years, 9 months ago) by takayama
Branch: MAIN
CVS Tags: RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX
Changes since 1.1: +3 -2 lines

Added the distclean target.

#$OpenXM: OpenXM/src/kan96xx/plugin/Makefile.in,v 1.2 2003/09/11 00:52:06 takayama Exp $
#
#  depends on install-gmp  
#  The source directory of gmp must exist.
#
OpenXM_HOME=../../..
OpenXM_include=${OpenXM_HOME}/include
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib
Kan96xx=..
Gmp_sourcedir=${OpenXM_contrib}/gmp

#AR=/usr/bin/ar
AR=ar
RM=rm
CC=@CC@
RANLIB=@RANLIB@
#CFLAGS+=-g -I${OpenXM_include} -I${Kan96xx}/Kan -D_BSD_SOURCE
CFLAGS=@CFLAGS@ -g -I${OpenXM_include} -I${Kan96xx}/Kan -D_BSD_SOURCE

all: configure cmo.a file2.a ox.a sample.a sm1Socket.a
configure: Makefile

Makefile: Makefile.in
	./configure

## .SUFFIXES:
.c.o:
	${CC} ${CFLAGS}  -c $<

cmo.a: cmo.o cmo-gmp.o
	$(AR) ru $@ $?
	${RANLIB} $@

cmo.o: cmo.c cmo.h 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_sourcedir} -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 $@ $?
	${RANLIB} $@

file2.o: file2.h file2.c

ox.a: mytcpio.o oxmisc.o oxmisc2.o
	${AR} ru $@ $?
	${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 $@ $?
	${RANLIB} $@

sample.o: sample.h sample.hh sample.c

sm1Socket.a: sm1Socket.o
	${AR} ru sm1Socket.a sm1Socket.o
	${RANLIB} sm1Socket.a

sm1Socket.o: sm1Socket.h sm1Socket.hh sm1Socket.c


clean:
	${RM} -f *.a *.o a.out cmo.h cmotag.hh cmotagToName cmptag.htmp \
		 ox.h ox.hh ox_kan.h
distclean: clean
	${RM} -f Makefile