version 1.8, 2000/01/19 06:18:51 |
version 1.9, 2000/01/19 18:36:19 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile,v 1.7 1999/12/17 02:18:16 takayama Exp $ |
# $OpenXM: OpenXM/src/ox_toolkit/Makefile,v 1.8 2000/01/19 06:18:51 noro Exp $ |
|
|
OpenXM_HOME=../.. |
OpenXM_HOME = ../.. |
CFLAGS = -g -O2 -DDEBUG -I${OpenXM_HOME}/src/gmp |
CFLAGS = -g -O2 -DDEBUG -I${OpenXM_HOME}/src/gmp |
LIBOBJS = ox.o parse.o mysocket.o |
LIBOBJS = ox.o parse.o mysocket.o |
GMPSRC = ${OpenXM_HOME}/src/gmp |
GMPSRC = ${OpenXM_HOME}/src/gmp |
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
OXWEAVE = ${OpenXM_HOME}/bin/oxweave |
BINARIES = bconv testclient sample1 sample2 |
BINARIES = bconv testclient sample1 sample2 |
CC=gcc |
DOCUMENTS = readme-eg readme-jp bnf-eg bnf-jp |
|
X11INC = /usr/X11R6/include |
|
X11LIB = /usr/X11R6/lib |
|
CC = gcc |
|
|
all: libox.a libgmp.a ${BINARIES} README.jp README.en |
all: libox.a libgmp.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 |
Line 38 sample2: sample2.o libox.a libgmp.a |
|
Line 41 sample2: sample2.o libox.a libgmp.a |
|
${CC} ${CFLAGS} -o $@ sample2.o -L. -lox -lgmp |
${CC} ${CFLAGS} -o $@ sample2.o -L. -lox -lgmp |
|
|
ox_Xsample: ox_Xsample.o glib.c libox.a libgmp.a |
ox_Xsample: ox_Xsample.o glib.c libox.a libgmp.a |
${CC} ${CFLAGS} -I/usr/X11R6/include -o $@ ox_Xsample.o glib.c -L. -L/usr/X11R6/lib -lox -lgmp -lX11 |
${CC} ${CFLAGS} -I${X11INC} -o $@ ox_Xsample.o glib.c -L. -L${X11LIB} -lox -lgmp -lX11 |
|
|
README.jp: README |
readme-jp: README |
${OXWEAVE} ja common < README > README.jp |
${OXWEAVE} ja common < README > readme-jp |
|
|
README.en: README |
readme-eg: README |
${OXWEAVE} en common < README > README.en |
${OXWEAVE} en common < README > readme-eg |
|
|
clean: |
bnf-jp: bnf.oxweave |
-rm -f *.o *~ libox.a libgmp.a README.jp README.en \ |
${OXWEAVE} ja common < bnf.oxweave > bnf-jp |
bconv testclient core a.out sample1 sample2 ox_Xsample |
|
|
|
|
bnf-eg: bnf.oxweave |
|
${OXWEAVE} en common < bnf.oxweave > bnf-eg |
|
|
|
install: |
|
@echo "No binaries are installed." |
|
|
|
install-for-debug: |
|
@echo "No binaries are installed." |
|
|
|
install-document: ${DOCUMENTS} |
|
-mkdir ${OpenXM_HOME}/doc/ox_toolkit |
|
cp -f ${DOCUMENTS} ${OpenXM_HOME}/doc/ox_toolkit |
|
|
|
clean-document: |
|
-rm -f ${DOCUMENTS} |
|
|
|
clean-binary: |
|
-rm -f *.o *~ libox.a libgmp.a ${BINARIES} ox_Xsample core a.out |
|
|
|
clean: clean-document clean-binary |