[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Annotation of OpenXM/src/ox_toolkit/Makefile, Revision 1.8

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>