version 1.11, 2000/11/30 18:10:50 |
version 1.17, 2004/06/21 10:15:30 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.10 2000/11/18 05:48:12 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.16 2004/02/28 23:39:38 ohara Exp $ |
|
|
OpenXM_HOME = ../.. |
OpenXM_HOME = ../.. |
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
CC = @CC@ |
CC = @CC@ |
CFLAGS = -g -Wall -O2 -DDEBUG -I${OpenXM_HOME}/include -finline-functions |
DEFS = @DEFS@ |
OBJS = ox.o cmo.o parse.o mysocket.o mathcap.o dump.o cmolen.o print.o oxf.o oxf_old.o |
CFLAGS = -g -Wall -O2 ${DEFS} -I${OpenXM_HOME}/include -finline-functions |
|
OBJS = ox.o cmo.o parse.o mysocket.o mathcap.o dump.o cmolen.o print.o oxf.o oxf_old.o @USE_GMP@ gmp_fake.o |
|
LOBJS = ${OBJS:.o=.lo} |
BINARIES = bconv testclient sample1 sample2 zclient |
BINARIES = bconv testclient sample1 sample2 zclient |
DOCUMENTS = readme-en.txt readme-ja.txt bnf-en.txt bnf-ja.txt |
DOCUMENTS = readme-en.txt readme-ja.txt bnf-en.txt bnf-ja.txt |
X11INC = @X_CFLAGS@ |
X11INC = @X_CFLAGS@ |
X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ |
X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ |
RANLIB = @RANLIB@ |
RANLIB = @RANLIB@ |
LIBS = @LIBS@ -L${OpenXM_HOME}/lib -L. -lox -lgmp |
GMPLIB = @GMPLIB@ |
INSTALL_DATA= cp -f |
LIBS_PRE = @LIBS@ -L${OpenXM_HOME}/lib ${GMPLIB} |
|
LIBS_POST = -L${OpenXM_HOME}/lib -lgc |
|
LIBS = ${LIBS_PRE} libox.a ${LIBS_POST} |
|
INSTALL = @INSTALL@ |
|
INSTALL_DATA= @INSTALL_DATA@ |
OXOBJS = ${OBJS} bconv.o testclinet.o ox_Xsample.o sample1.o sample2.o |
OXOBJS = ${OBJS} bconv.o testclinet.o ox_Xsample.o sample1.o sample2.o |
|
PICFLAGS = -fpic -fPIC |
|
|
|
.SUFFIXES: .c .lo |
|
|
|
.c.lo: |
|
${CC} ${CFLAGS} ${PICFLAGS} -o $@ -c $< |
|
|
all: libox.a ${BINARIES} ${DOCUMENTS} |
all: libox.a ${BINARIES} ${DOCUMENTS} |
|
|
all2: all ox_Xsample |
all2: all ox_Xsample |
|
|
|
all3: libox.so all |
|
|
|
libox.so: ${LOBJS} |
|
-rm -f $@ |
|
${CC} -shared ${CFLAGS} -o $@ ${LOBJS} ${LIBS_PRE} ${LIBS_POST} |
|
|
ox.o mysocket.o: mysocket.h |
ox.o mysocket.o: mysocket.h |
ox.o parse.o: parse.h |
ox.o parse.o: parse.h |
${OXOBJS}: ox_toolkit.h |
${OXOBJS}: ox_toolkit.h |
|
gmp_fake.o: gmp_fake.h |
|
|
libox.a: ${OBJS} |
libox.a: ${OBJS} |
-rm -f $@ |
-rm -f $@ |
Line 63 bnf-en.txt: bnf.oxweave |
|
Line 82 bnf-en.txt: bnf.oxweave |
|
|
|
install: install-document install-binary |
install: install-document install-binary |
|
|
install-binary: libox.a ox_toolkit.h |
install-binary: libox.a ox_toolkit.h gmp_fake.h |
-if [ ! -d ${OpenXM_HOME}/lib ]; then \ |
-if [ ! -d ${OpenXM_HOME}/lib ]; then \ |
mkdir -p ${OpenXM_HOME}/lib ;\ |
mkdir -p ${OpenXM_HOME}/lib ;\ |
fi |
fi |
Line 72 install-binary: libox.a ox_toolkit.h |
|
Line 91 install-binary: libox.a ox_toolkit.h |
|
fi |
fi |
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
${INSTALL_DATA} ox_toolkit.h ${OpenXM_HOME}/include |
${INSTALL_DATA} ox_toolkit.h ${OpenXM_HOME}/include |
|
${INSTALL_DATA} gmp_fake.h ${OpenXM_HOME}/include |
|
|
install-for-debug: |
install-for-debug: |
@echo "No binaries are installed." |
@echo "No binaries are installed." |
|
|
-rm -f ${DOCUMENTS} |
-rm -f ${DOCUMENTS} |
|
|
clean-binary: |
clean-binary: |
-rm -f *.o *~ libox.a ${BINARIES} ox_Xsample core a.out |
-rm -f *.o *.lo *~ libox.a libox.so ${BINARIES} ox_Xsample core a.out |
|
|
clean: clean-document clean-binary |
clean: clean-document clean-binary |
|
|
distclean: clean |
distclean: clean |
-rm -f .configure_done configure config.cache config.log config.status Makefile |
-rm -f .configure_done config.cache config.log config.status Makefile |
|
|