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

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

1.5     ! takayama    1: # $OpenXM: OpenXM/src/ox_pari/Makefile,v 1.4 2015/08/21 01:20:30 noro Exp $
1.1       noro        2:
                      3: OpenXM_HOME=../..
                      4: OpenXM_LIBDIR=../../lib
1.5     ! takayama    5: PARI_LIB = -lmpfr -lpari
        !             6: OpenXM_LIB = -L$(OpenXM_LIBDIR) -lox $(PARI_LIB) -lgmp  -lgc
1.1       noro        7: INCLUDES = -I$(OpenXM_HOME)/include
                      8: PREFIX=${OpenXM_HOME}
                      9: DISTDIR=${OpenXM_HOME}/../OpenXM_dist
                     10: RM = /bin/rm
                     11: MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/
1.3       noro       12: CFLAGS = -g -Wall -finline-functions -D_POSIX_C_SOURCE
1.1       noro       13:
1.3       noro       14:
1.4       noro       15: PARIOBJ = ox_pari.o convert.o pari_ftab.o
                     16:
1.5     ! takayama   17: LIBS = $(OpenXM_LIB) -lm
1.1       noro       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>