[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

Annotation of OpenXM/src/ox_pari/Makefile, Revision 1.3

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

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