Annotation of OpenXM/src/ox_toolkit/Makefile, Revision 1.6
1.1 ohara 1: # -*- mode: Makefile -*-
1.6 ! ohara 2: # $OpenXM: OpenXM/src/ox_toolkit/Makefile,v 1.5 1999/12/16 06:55:07 ohara Exp $
1.1 ohara 3:
4: CFLAGS = -g -O2 -DDEBUG -I${OpenXM_HOME}/src/gmp
5: LIBOBJS = ox.o parse.o mysocket.o
1.2 ohara 6: GMPSRC = ${OpenXM_HOME}/src/gmp
1.4 ohara 7: OXWEAVE = ${OpenXM_HOME}/bin/oxweave
1.6 ! ohara 8: BINARIES = bconv testclient sample1 sample2 ox_Xsample
1.1 ohara 9:
1.5 ohara 10: all: libox.a libgmp.a ${BINARIES} README.jp README.en
1.1 ohara 11:
12: ox.o mysocket.o: mysocket.h
13: ox.o parse.o: ox.h oxtag.h parse.h
14:
1.2 ohara 15: libgmp.a:
16: test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
17: -ln -s ${GMPSRC}/libgmp.a .
1.1 ohara 18:
19: libox.a: ${LIBOBJS}
20: -rm -f $@
21: ar -rc $@ ${LIBOBJS}
22: ranlib $@
23:
1.2 ohara 24: bconv: bconv.o libox.a libgmp.a
25: ${CC} ${CFLAGS} -o $@ bconv.o -L. -lox -lgmp
26:
27: testclient: testclient.o libox.a libgmp.a
28: ${CC} ${CFLAGS} -o $@ testclient.o -L. -lox -lgmp
29:
1.4 ohara 30: sample1: sample1.o libox.a libgmp.a
31: ${CC} ${CFLAGS} -o $@ sample1.o -L. -lox -lgmp
32:
1.5 ohara 33: sample2: sample2.o libox.a libgmp.a
34: ${CC} ${CFLAGS} -o $@ sample2.o -L. -lox -lgmp
35:
1.6 ! ohara 36: ox_Xsample: ox_Xsample.o glib.c libox.a libgmp.a
! 37: ${CC} ${CFLAGS} -I/usr/X11R6/include -o $@ ox_Xsample.o glib.c -L. -L/usr/X11R6/lib -lox -lgmp -lX11
! 38:
1.2 ohara 39: README.jp: README
1.4 ohara 40: ${OXWEAVE} ja common < README > README.jp
1.2 ohara 41:
1.3 ohara 42: README.en: README
1.4 ohara 43: ${OXWEAVE} en common < README > README.en
1.3 ohara 44:
1.1 ohara 45: clean:
1.4 ohara 46: -rm -f *.o *~ libox.a libgmp.a README.jp README.en \
1.6 ! ohara 47: bconv testclient core a.out sample1 sample2 ox_Xsample
1.4 ohara 48:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>