version 1.3, 2000/03/05 14:55:18 |
version 1.7, 2000/03/08 06:41:54 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.2 2000/02/08 20:33:06 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile.in,v 1.6 2000/03/08 06:26:19 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} |
CFLAGS = -g -O2 -DDEBUG -I${OpenXM_HOME}/include |
OBJS = ox.o parse.o mysocket.o |
OBJS = ox.o parse.o mysocket.o |
BINARIES = bconv testclient sample1 sample2 |
BINARIES = bconv testclient sample1 sample2 |
DOCUMENTS = readme-eg readme-jp bnf-eg bnf-jp |
DOCUMENTS = readme-eg readme-jp bnf-eg bnf-jp |
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 |
LIBS = @LIBS@ -L${OpenXM_HOME}/lib -L. -lox -lgmp |
INSTALL_DATA= cp -f |
INSTALL_DATA= cp -f |
LN = @LN_S@ |
|
|
|
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: ox.h oxtag.h parse.h |
|
|
libgmp.a: |
|
test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE}) |
|
-${LN} ${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 |
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 |
readme-jp: README |
Line 62 bnf-eg: bnf.oxweave |
|
Line 56 bnf-eg: bnf.oxweave |
|
install: install-document install-binary |
install: install-document install-binary |
|
|
install-binary: libox.a ox.h |
install-binary: libox.a ox.h |
-if [ ! -d ${OpenXM_HOME}/include/ox ]; then \ |
-if [ ! -d ${OpenXM_HOME}/lib ]; then \ |
mkdir -p ${OpenXM_HOME}/include/ox ;\ |
mkdir -p ${OpenXM_HOME}/lib ;\ |
fi |
fi |
cp -f libox.a ${OpenXM_HOME}/lib |
-if [ ! -d ${OpenXM_HOME}/include ]; then \ |
cp -f ox.h ${OpenXM_HOME}/include/ox |
mkdir -p ${OpenXM_HOME}/include ;\ |
|
fi |
|
${INSTALL_DATA} libox.a ${OpenXM_HOME}/lib |
|
${INSTALL_DATA} ox.h oxtag.h parse.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 configure config.cache config.log config.status Makefile |
|
|