Annotation of OpenXM/doc/oxlib/Makefile, Revision 1.9
1.9 ! takayama 1: # $OpenXM: OpenXM/doc/oxlib/Makefile,v 1.8 2005/11/12 02:38:01 takayama Exp $
1.7 takayama 2: all : install-lib
3: make all-samples
4: all-samples : test test1 test2 test3
5: install-lib:
1.9 ! takayama 6: -(cd ../../lib ; ln -s ../../OpenXM_contrib2/asir2000/libasir.a .)
1.4 takayama 7: ##
8: ## make
9: ## make OpenXM_HOME=/usr/local/OpenXM
1.2 takayama 10: CC=gcc
1.4 takayama 11: OpenXM_HOME=../../../OpenXM
12: LIBDIR=${OpenXM_HOME}/lib
13: INCDIR=${OpenXM_HOME}/include
1.3 noro 14:
15: ASIR_LIB=$(LIBDIR)/libasir.a
16: ASIR_LIB_PARI_X=$(LIBDIR)/libasir_pari_X.a
1.9 ! takayama 17: PARI_LIB=$(LIBDIR)/libpari.a
1.3 noro 18: GC=$(LIBDIR)/libasir-gc.a
19: #EXTRALIB=-lnsl -lsocket
20: EXTRALIB=
1.9 ! takayama 21: LOPT=-L/usr/X11R6/lib -lm -lX11 -lXt -lXaw
1.3 noro 22:
23: INCLUDE=$(INCDIR)
1.1 takayama 24:
25: test1 : test1.o
1.9 ! takayama 26: gcc -o test1 test1.o $(ASIR_LIB) $(PARI_LIB) $(GC) $(EXTRALIB) $(LOPT)
1.1 takayama 27:
28: ## test2 : test2.o
29: test2 : test2.o
1.9 ! takayama 30: gcc -o test2 test2.o $(ASIR_LIB) $(PARI_LIB) $(GC) $(EXTRALIB) $(LOPT)
1.3 noro 31:
32: ## test3 : test3.o
33: test3 : test3.o
1.9 ! takayama 34: gcc -o test3 test3.o $(ASIR_LIB) $(PARI_LIB) $(GC) $(EXTRALIB) $(LOPT)
1.1 takayama 35:
1.6 noro 36: ## test : test.o
37: test : test.o
1.9 ! takayama 38: gcc -o test test.o $(ASIR_LIB) $(PARI_LIB) $(GC) $(EXTRALIB) $(LOPT)
1.8 takayama 39: test1-tcp-rev: test1-tcp-rev.c
40: gcc -o test1-tcp-rev test1-tcp-rev.c
1.6 noro 41:
1.1 takayama 42: .c.o :
1.2 takayama 43: ${CC} $(CFLAGS) -I$(INCLUDE) -c -g $<
1.1 takayama 44:
45:
46:
47:
48:
49: clean :
1.6 noro 50: rm -f test test1 test2 test3 *.o *~ *.a a.out
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>