[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / doc / oxlib

Annotation of OpenXM/doc/oxlib/Makefile, Revision 1.7

1.7     ! takayama    1: # $OpenXM: OpenXM/doc/oxlib/Makefile,v 1.6 2002/02/25 07:09:01 noro Exp $
        !             2: all : install-lib
        !             3:        make all-samples
        !             4: all-samples : test test1 test2 test3
        !             5: install-lib:
1.4       takayama    6: ##
                      7: ## make
                      8: ## make OpenXM_HOME=/usr/local/OpenXM
1.2       takayama    9: CC=gcc
1.4       takayama   10: OpenXM_HOME=../../../OpenXM
                     11: LIBDIR=${OpenXM_HOME}/lib
                     12: INCDIR=${OpenXM_HOME}/include
1.3       noro       13:
                     14: ASIR_LIB=$(LIBDIR)/libasir.a
                     15: ASIR_LIB_PARI_X=$(LIBDIR)/libasir_pari_X.a
                     16: GC=$(LIBDIR)/libasir-gc.a
                     17: #EXTRALIB=-lnsl -lsocket
                     18: EXTRALIB=
                     19:
                     20: INCLUDE=$(INCDIR)
1.1       takayama   21:
                     22: ## test1 : test1.o
                     23: test1 : test1.o
1.3       noro       24:        gcc -o test1 test1.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm
1.1       takayama   25:
                     26: ## test2 : test2.o
                     27: test2 : test2.o
1.3       noro       28:        gcc -o test2 test2.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm
                     29:
                     30: ## test3 : test3.o
                     31: test3 : test3.o
                     32:        gcc -o test3 test3.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm
1.1       takayama   33:
1.6       noro       34: ## test : test.o
                     35: test : test.o
                     36:        gcc -o test test.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm
                     37:
                     38:
1.1       takayama   39: .c.o :
1.2       takayama   40:        ${CC} $(CFLAGS) -I$(INCLUDE) -c -g $<
1.1       takayama   41:
                     42:
                     43:
                     44:
                     45:
                     46: clean :
1.6       noro       47:        rm -f test test1 test2 test3 *.o *~ *.a  a.out

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