version 1.1, 2000/02/08 09:51:13 |
version 1.14, 2003/03/30 08:17:25 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM$ |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.13 2003/03/30 08:05:22 ohara Exp $ |
|
|
OpenXM_HOME = ../.. |
OpenXM_HOME = ../.. |
GMPSRC = ${OpenXM_HOME}/src/gmp |
|
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
CC = @CC@ |
CC = @CC@ |
CFLAGS = -g -O2 -DDEBUG -I${GMPSRC} |
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 |
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. -lox -lgmp |
GMPLIB = @GMPLIB@ |
|
LIBS = @LIBS@ -L${OpenXM_HOME}/lib libox.a ${GMPLIB} |
INSTALL_DATA= cp -f |
INSTALL_DATA= cp -f |
|
OXOBJS = ${OBJS} bconv.o testclinet.o ox_Xsample.o sample1.o sample2.o |
|
|
all: libox.a libgmp.a ${BINARIES} ${DOCUMENTS} |
all: libox.a ${BINARIES} ${DOCUMENTS} |
|
|
all2: all ox_Xsample |
all2: all ox_Xsample |
|
|
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 |
|
|
libgmp.a: |
|
test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE}) |
|
-ln -s ${GMPSRC}/libgmp.a . |
|
|
|
libox.a: ${OBJS} |
libox.a: ${OBJS} |
-rm -f $@ |
-rm -f $@ |
ar -rc $@ ${OBJS} |
ar -rc $@ ${OBJS} |
${RANLIB} $@ |
${RANLIB} $@ |
|
|
bconv: bconv.o libox.a libgmp.a |
bconv: bconv.o libox.a |
${CC} ${CFLAGS} -o $@ bconv.o ${LIBS} |
${CC} ${CFLAGS} -o $@ bconv.o ${LIBS} |
|
|
testclient: testclient.o libox.a libgmp.a |
testclient: testclient.o libox.a |
${CC} ${CFLAGS} -o $@ testclient.o ${LIBS} |
${CC} ${CFLAGS} -o $@ testclient.o ${LIBS} |
|
|
sample1: sample1.o libox.a libgmp.a |
zclient: zclient.o libox.a |
|
${CC} ${CFLAGS} -o $@ zclient.o ${LIBS} |
|
|
|
sample1: sample1.o libox.a |
${CC} ${CFLAGS} -o $@ sample1.o ${LIBS} |
${CC} ${CFLAGS} -o $@ sample1.o ${LIBS} |
|
|
sample2: sample2.o libox.a libgmp.a |
sample2: sample2.o libox.a |
${CC} ${CFLAGS} -o $@ sample2.o ${LIBS} |
${CC} ${CFLAGS} -o $@ sample2.o ${LIBS} |
|
|
ox_Xsample: ox_Xsample.o glib.c libox.a libgmp.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 |
|
|
install: install-document |
bnf-en.txt: bnf.oxweave |
|
${OXWEAVE} en common < bnf.oxweave > bnf-en.txt |
|
|
install-binary: |
install: install-document install-binary |
@echo "No binaries are installed." |
|
|
|
|
install-binary: libox.a ox_toolkit.h gmp_fake.h |
|
-if [ ! -d ${OpenXM_HOME}/lib ]; then \ |
|
mkdir -p ${OpenXM_HOME}/lib ;\ |
|
fi |
|
-if [ ! -d ${OpenXM_HOME}/include ]; then \ |
|
mkdir -p ${OpenXM_HOME}/include ;\ |
|
fi |
|
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
|
${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 libgmp.a ${BINARIES} ox_Xsample core a.out |
-rm -f *.o *~ libox.a ${BINARIES} ox_Xsample core a.out |
|
|
clean: clean-document clean-binary |
clean: clean-document clean-binary |
|
|
|
distclean: clean |
|
-rm -f .configure_done config.cache config.log config.status Makefile |