version 1.7, 2000/03/08 06:41:54 |
version 1.17, 2004/06/21 10:15:30 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.6 2000/03/08 06:26:19 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 -O2 -DDEBUG -I${OpenXM_HOME}/include |
DEFS = @DEFS@ |
OBJS = ox.o parse.o mysocket.o |
CFLAGS = -g -Wall -O2 ${DEFS} -I${OpenXM_HOME}/include -finline-functions |
BINARIES = bconv testclient sample1 sample2 |
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 |
DOCUMENTS = readme-eg readme-jp bnf-eg bnf-jp |
LOBJS = ${OBJS:.o=.lo} |
|
BINARIES = bconv testclient sample1 sample2 zclient |
|
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 |
|
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: ox.h oxtag.h parse.h |
ox.o parse.o: parse.h |
|
${OXOBJS}: ox_toolkit.h |
|
gmp_fake.o: gmp_fake.h |
|
|
libox.a: ${OBJS} |
libox.a: ${OBJS} |
-rm -f $@ |
-rm -f $@ |
Line 32 bconv: bconv.o libox.a |
|
Line 53 bconv: bconv.o libox.a |
|
testclient: testclient.o libox.a |
testclient: testclient.o libox.a |
${CC} ${CFLAGS} -o $@ testclient.o ${LIBS} |
${CC} ${CFLAGS} -o $@ testclient.o ${LIBS} |
|
|
|
zclient: zclient.o libox.a |
|
${CC} ${CFLAGS} -o $@ zclient.o ${LIBS} |
|
|
sample1: sample1.o libox.a |
sample1: sample1.o libox.a |
${CC} ${CFLAGS} -o $@ sample1.o ${LIBS} |
${CC} ${CFLAGS} -o $@ sample1.o ${LIBS} |
|
|
Line 41 sample2: sample2.o libox.a |
|
Line 65 sample2: sample2.o libox.a |
|
ox_Xsample: ox_Xsample.o glib.c libox.a |
ox_Xsample: ox_Xsample.o glib.c libox.a |
${CC} ${CFLAGS} ${X11INC} -o $@ ox_Xsample.o glib.c ${LIBS} ${X11LIB} |
${CC} ${CFLAGS} ${X11INC} -o $@ ox_Xsample.o glib.c ${LIBS} ${X11LIB} |
|
|
readme-jp: README |
mctest: mctest.o libox.a |
${OXWEAVE} ja common < README > readme-jp |
${CC} ${CFLAGS} -o $@ mctest.o ${LIBS} |
|
|
readme-eg: README |
readme-ja.txt: README |
${OXWEAVE} en common < README > readme-eg |
${OXWEAVE} ja common < README > readme-ja.txt |
|
|
bnf-jp: bnf.oxweave |
readme-en.txt: README |
${OXWEAVE} ja common < bnf.oxweave > bnf-jp |
${OXWEAVE} en common < README > readme-en.txt |
|
|
bnf-eg: bnf.oxweave |
bnf-ja.txt: bnf.oxweave |
${OXWEAVE} en common < bnf.oxweave > bnf-eg |
${OXWEAVE} ja common < bnf.oxweave > bnf-ja.txt |
|
|
|
bnf-en.txt: bnf.oxweave |
|
${OXWEAVE} en common < bnf.oxweave > bnf-en.txt |
|
|
install: install-document install-binary |
install: install-document install-binary |
|
|
install-binary: libox.a ox.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 63 install-binary: libox.a ox.h |
|
Line 90 install-binary: libox.a ox.h |
|
mkdir -p ${OpenXM_HOME}/include ;\ |
mkdir -p ${OpenXM_HOME}/include ;\ |
fi |
fi |
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
${INSTALL_DATA} ox.h oxtag.h parse.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 |
|
|