Annotation of OpenXM/src/ox_pari/Makefile, Revision 1.4
1.4 ! noro 1: # $OpenXM: OpenXM/src/ox_pari/Makefile,v 1.3 2015/08/17 07:19:16 noro Exp $
1.1 noro 2:
3: OpenXM_HOME=../..
4: OpenXM_LIBDIR=../../lib
5: OpenXM_LIB = -L$(OpenXM_LIBDIR) -lgmp -lox -lgc
6: INCLUDES = -I$(OpenXM_HOME)/include
7: PREFIX=${OpenXM_HOME}
8: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
9: RM = /bin/rm
10: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.3 noro 11: CFLAGS = -g -Wall -finline-functions -D_POSIX_C_SOURCE
1.1 noro 12:
1.2 noro 13: PARI_LIB = -lmpfr -lpari
1.3 noro 14:
1.4 ! noro 15: PARIOBJ = ox_pari.o convert.o pari_ftab.o
! 16:
1.1 noro 17: LIBS = $(OpenXM_LIB) $(PARI_LIB) -lm
18:
19: PROG= ox_pari
20:
21: all: build
22:
23: components : libs $(PROG)
24:
25: ox_pari: $(PARIOBJ)
26: $(CC) $(PARIOBJ) $(LIBS) -o $@
27:
28: ox_pari.o : ox_pari.c
29: $(CC) $(CFLAGS) $(INCLUDES) -c $<
30:
1.4 ! noro 31: convert.o : convert.c
! 32: $(CC) $(CFLAGS) $(INCLUDES) -c $<
! 33:
! 34: pari_ftab.o : pari_ftab.c
! 35: $(CC) $(CFLAGS) $(INCLUDES) -c $<
! 36:
! 37:
1.1 noro 38: libs : ox gc libgmp
39:
40:
41: ox :
42: -@if test -f $(OpenXM_HOME)/lib/libox.a ; then \
43: true ; \
44: else \
45: ( cd $(OpenXM_HOME)/src/ ; make install-oxtoolkit ) ; \
46: fi
47:
48: gc :
49: -@if test -f $(OpenXM_HOME)/lib/libgc.a ; then \
50: true ; \
51: else \
52: ( cd $(OpenXM_HOME)/src/ ; make install-gc ) ; \
53: fi
54:
55: libgmp :
56: -@if test -f $(OpenXM_HOME)/lib/libgmp.a ; then \
57: true ; \
58: else \
59: ( cd $(OpenXM_HOME)/src/ ; make install-gmp ) ; \
60: fi
61:
62: clean:
63:
64: distclean: clean
65: rm -f $(OpenXM_HOME)/lib/libox.a
66: rm -f $(OpenXM_HOME)/lib/libgc.a
67:
68: build : components
69:
70: install: build
71: cp $(PROG) $(PREFIX)/bin
72: -mkdir $(PREFIX)/lib/asir
73: -for i in $(PROG); do \
74: ln -s $(PREFIX)/bin/$$i $(PREFIX)/lib/asir ; \
75: done
76:
77: clean:
78: -$(RM) -f $(PROG) *.o
79: -$(RM) *.core
80:
81: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>