Annotation of OpenXM/src/ox_toolkit/Makefile, Revision 1.9
1.1 ohara 1: # -*- mode: Makefile -*-
1.9 ! ohara 2: # $OpenXM: OpenXM/src/ox_toolkit/Makefile,v 1.8 2000/01/19 06:18:51 noro Exp $
1.1 ohara 3:
1.9 ! ohara 4: OpenXM_HOME = ../..
! 5: CFLAGS = -g -O2 -DDEBUG -I${OpenXM_HOME}/src/gmp
! 6: LIBOBJS = ox.o parse.o mysocket.o
! 7: GMPSRC = ${OpenXM_HOME}/src/gmp
! 8: OXWEAVE = ${OpenXM_HOME}/bin/oxweave
! 9: BINARIES = bconv testclient sample1 sample2
! 10: DOCUMENTS = readme-eg readme-jp bnf-eg bnf-jp
! 11: X11INC = /usr/X11R6/include
! 12: X11LIB = /usr/X11R6/lib
! 13: CC = gcc
1.1 ohara 14:
1.9 ! ohara 15: all: libox.a libgmp.a ${BINARIES} ${DOCUMENTS}
1.7 takayama 16:
1.9 ! ohara 17: all2: all ox_Xsample
1.1 ohara 18:
19: ox.o mysocket.o: mysocket.h
20: ox.o parse.o: ox.h oxtag.h parse.h
21:
1.2 ohara 22: libgmp.a:
23: test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
24: -ln -s ${GMPSRC}/libgmp.a .
1.1 ohara 25:
26: libox.a: ${LIBOBJS}
27: -rm -f $@
28: ar -rc $@ ${LIBOBJS}
29: ranlib $@
30:
1.2 ohara 31: bconv: bconv.o libox.a libgmp.a
32: ${CC} ${CFLAGS} -o $@ bconv.o -L. -lox -lgmp
33:
34: testclient: testclient.o libox.a libgmp.a
35: ${CC} ${CFLAGS} -o $@ testclient.o -L. -lox -lgmp
36:
1.4 ohara 37: sample1: sample1.o libox.a libgmp.a
38: ${CC} ${CFLAGS} -o $@ sample1.o -L. -lox -lgmp
39:
1.5 ohara 40: sample2: sample2.o libox.a libgmp.a
41: ${CC} ${CFLAGS} -o $@ sample2.o -L. -lox -lgmp
42:
1.6 ohara 43: ox_Xsample: ox_Xsample.o glib.c libox.a libgmp.a
1.9 ! ohara 44: ${CC} ${CFLAGS} -I${X11INC} -o $@ ox_Xsample.o glib.c -L. -L${X11LIB} -lox -lgmp -lX11
1.6 ohara 45:
1.9 ! ohara 46: readme-jp: README
! 47: ${OXWEAVE} ja common < README > readme-jp
1.2 ohara 48:
1.9 ! ohara 49: readme-eg: README
! 50: ${OXWEAVE} en common < README > readme-eg
1.3 ohara 51:
1.9 ! ohara 52: bnf-jp: bnf.oxweave
! 53: ${OXWEAVE} ja common < bnf.oxweave > bnf-jp
1.4 ohara 54:
1.9 ! ohara 55: bnf-eg: bnf.oxweave
! 56: ${OXWEAVE} en common < bnf.oxweave > bnf-eg
! 57:
! 58: install:
! 59: @echo "No binaries are installed."
! 60:
! 61: install-for-debug:
! 62: @echo "No binaries are installed."
! 63:
! 64: install-document: ${DOCUMENTS}
! 65: -mkdir ${OpenXM_HOME}/doc/ox_toolkit
! 66: cp -f ${DOCUMENTS} ${OpenXM_HOME}/doc/ox_toolkit
! 67:
! 68: clean-document:
! 69: -rm -f ${DOCUMENTS}
! 70:
! 71: clean-binary:
! 72: -rm -f *.o *~ libox.a libgmp.a ${BINARIES} ox_Xsample core a.out
! 73:
! 74: clean: clean-document clean-binary
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>