version 1.1, 2015/08/04 05:24:44 |
version 1.5, 2015/09/27 00:12:31 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/ox_pari/Makefile,v 1.4 2015/08/21 01:20:30 noro Exp $ |
|
|
OpenXM_HOME=../.. |
OpenXM_HOME=../.. |
OpenXM_LIBDIR=../../lib |
OpenXM_LIBDIR=../../lib |
OpenXM_LIB = -L$(OpenXM_LIBDIR) -lgmp -lox -lgc |
PARI_LIB = -lmpfr -lpari |
|
OpenXM_LIB = -L$(OpenXM_LIBDIR) -lox $(PARI_LIB) -lgmp -lgc |
INCLUDES = -I$(OpenXM_HOME)/include |
INCLUDES = -I$(OpenXM_HOME)/include |
PREFIX=${OpenXM_HOME} |
PREFIX=${OpenXM_HOME} |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
RM = /bin/rm |
RM = /bin/rm |
MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
CFLAGS = -g -Wall -finline-functions |
CFLAGS = -g -Wall -finline-functions -D_POSIX_C_SOURCE |
|
|
PARI_LIB = -lmpfr |
|
PARIOBJ = ox_pari.o |
|
LIBS = $(OpenXM_LIB) $(PARI_LIB) -lm |
|
|
|
|
PARIOBJ = ox_pari.o convert.o pari_ftab.o |
|
|
|
LIBS = $(OpenXM_LIB) -lm |
|
|
PROG= ox_pari |
PROG= ox_pari |
|
|
all: build |
all: build |
Line 25 ox_pari: $(PARIOBJ) |
|
Line 27 ox_pari: $(PARIOBJ) |
|
|
|
ox_pari.o : ox_pari.c |
ox_pari.o : ox_pari.c |
$(CC) $(CFLAGS) $(INCLUDES) -c $< |
$(CC) $(CFLAGS) $(INCLUDES) -c $< |
|
|
|
convert.o : convert.c |
|
$(CC) $(CFLAGS) $(INCLUDES) -c $< |
|
|
|
pari_ftab.o : pari_ftab.c |
|
$(CC) $(CFLAGS) $(INCLUDES) -c $< |
|
|
|
|
libs : ox gc libgmp |
libs : ox gc libgmp |
|
|