version 1.2, 2000/02/09 06:08:58 |
version 1.4, 2000/03/17 02:04:08 |
|
|
# $OpenXM: OpenXM/doc/oxlib/Makefile,v 1.1 2000/02/08 13:25:41 takayama Exp $ |
# $OpenXM: OpenXM/doc/oxlib/Makefile,v 1.3 2000/03/16 07:34:37 noro Exp $ |
all : test1 test2 |
all : test1 test2 test3 |
|
## |
|
## make |
|
## make OpenXM_HOME=/usr/local/OpenXM |
CC=gcc |
CC=gcc |
ASIR_SOURCE=../../OpenXM_contrib2/asir2000 |
OpenXM_HOME=../../../OpenXM |
A=$(ASIR_SOURCE) |
LIBDIR=${OpenXM_HOME}/lib |
P=$(HOME)/OpenXM/lib |
INCDIR=${OpenXM_HOME}/include |
INCLUDE=$(P)/../doc/OpenXM-web |
|
|
|
ASIR_LIB=${P}/libasir.a |
ASIR_LIB=$(LIBDIR)/libasir.a |
ASIR_LIB_PARI_X=$(P)/libasir_pari_X.a |
ASIR_LIB_PARI_X=$(LIBDIR)/libasir_pari_X.a |
GC=$(P)/libasir-gc.a |
GC=$(LIBDIR)/libasir-gc.a |
|
#EXTRALIB=-lnsl -lsocket |
|
EXTRALIB= |
|
|
|
INCLUDE=$(INCDIR) |
|
|
## test1 : test1.o |
## test1 : test1.o |
test1 : test1.o |
test1 : test1.o |
gcc -o test1 test1.o $(ASIR_LIB) $(GC) -lm |
gcc -o test1 test1.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm |
|
|
## test2 : test2.o |
## test2 : test2.o |
test2 : test2.o |
test2 : test2.o |
gcc -o test2 test2.o $(ASIR_LIB) $(GC) -lm |
gcc -o test2 test2.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm |
|
|
|
## test3 : test3.o |
|
test3 : test3.o |
|
gcc -o test3 test3.o $(ASIR_LIB) $(GC) $(EXTRALIB) -lm |
|
|
.c.o : |
.c.o : |
${CC} $(CFLAGS) -I$(INCLUDE) -c -g $< |
${CC} $(CFLAGS) -I$(INCLUDE) -c -g $< |
|
|
|
|
|
|
|
|
clean : |
clean : |
rm -f test1 test2 *.o *~ *.a |
rm -f test1 test2 test3 *.o *~ *.a |