Annotation of OpenXM/src/ox_pari/Makefile, Revision 1.1
1.1 ! noro 1: # $OpenXM$
! 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/
! 11: CFLAGS = -g -Wall -finline-functions
! 12:
! 13: PARI_LIB = -lmpfr
! 14: PARIOBJ = ox_pari.o
! 15: LIBS = $(OpenXM_LIB) $(PARI_LIB) -lm
! 16:
! 17: PROG= ox_pari
! 18:
! 19: all: build
! 20:
! 21: components : libs $(PROG)
! 22:
! 23: ox_pari: $(PARIOBJ)
! 24: $(CC) $(PARIOBJ) $(LIBS) -o $@
! 25:
! 26: ox_pari.o : ox_pari.c
! 27: $(CC) $(CFLAGS) $(INCLUDES) -c $<
! 28:
! 29: libs : ox gc libgmp
! 30:
! 31:
! 32: ox :
! 33: -@if test -f $(OpenXM_HOME)/lib/libox.a ; then \
! 34: true ; \
! 35: else \
! 36: ( cd $(OpenXM_HOME)/src/ ; make install-oxtoolkit ) ; \
! 37: fi
! 38:
! 39: gc :
! 40: -@if test -f $(OpenXM_HOME)/lib/libgc.a ; then \
! 41: true ; \
! 42: else \
! 43: ( cd $(OpenXM_HOME)/src/ ; make install-gc ) ; \
! 44: fi
! 45:
! 46: libgmp :
! 47: -@if test -f $(OpenXM_HOME)/lib/libgmp.a ; then \
! 48: true ; \
! 49: else \
! 50: ( cd $(OpenXM_HOME)/src/ ; make install-gmp ) ; \
! 51: fi
! 52:
! 53: clean:
! 54:
! 55: distclean: clean
! 56: rm -f $(OpenXM_HOME)/lib/libox.a
! 57: rm -f $(OpenXM_HOME)/lib/libgc.a
! 58:
! 59: build : components
! 60:
! 61: install: build
! 62: cp $(PROG) $(PREFIX)/bin
! 63: -mkdir $(PREFIX)/lib/asir
! 64: -for i in $(PROG); do \
! 65: ln -s $(PREFIX)/bin/$$i $(PREFIX)/lib/asir ; \
! 66: done
! 67:
! 68: clean:
! 69: -$(RM) -f $(PROG) *.o
! 70: -$(RM) *.core
! 71:
! 72: distclean: clean
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>