Annotation of OpenXM_contrib/pari-2.2/examples/Makefile.freebsd-ix86, Revision 1.1
1.1 ! noro 1: # Generic Makefile for PARI programs -- ix86 running freebsd 32-bit version
! 2: #
! 3: # This file was created by Configure. Any change made to it will be
! 4: # lost when Configure is run.
! 5: #
! 6: # make all will create
! 7: # matexp-dyn (linked dynamically with libpari)
! 8: # matexp-sta (linked statically)
! 9: # libmatexp.so (to be used by "install" under GP)
! 10: #
! 11: # Under GP: install(matexp, Gp, mexp, "./libmatexp.so") enables you to
! 12: # subsequently use mexp to call matexp (see the reference manual).
! 13: #
! 14:
! 15: # change this TARGET to compile your own programs
! 16: TARGET = matexp
! 17: SHELL = /bin/sh
! 18:
! 19: DBGFLAGS = -g -Wall -Wno-implicit
! 20: CFLAGS = -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer
! 21: #CFLAGS = $(DBGFLAGS)
! 22:
! 23: # Various linkers use different flags to force static compilation. Choose
! 24: # the one which is relevant for your installation.
! 25: #
! 26: # Solaris ld (global)
! 27: #STATIC = -dn
! 28:
! 29: # Solaris ld (toggle: no shared object accepted until -B dynamic is seen
! 30: #STATIC = -B static
! 31:
! 32: # gcc
! 33: #STATIC = -static
! 34:
! 35: CC = /usr/bin/gcc
! 36: CPPFLAGS = -I. -I/usr/local/include/pari
! 37: LD = /usr/bin/gcc
! 38: LDFLAGS = -O3 -DGCC_INLINE -Wall -Wno-implicit -fomit-frame-pointer
! 39: DLLD = /usr/bin/ld
! 40: DLLDFLAGS = -shared
! 41: EXTRADLLDFLAGS =
! 42: EXTRALIBS =
! 43:
! 44: RUNPTH =
! 45: LIBDIR = -L/usr/local/lib
! 46: DLCFLAGS =
! 47: LIBS = -lm -lpari
! 48:
! 49: RM = rm -f
! 50:
! 51:
! 52: OBJS = $(TARGET).o
! 53: DYN = lib$(TARGET).so
! 54: ALL = $(TARGET)-sta $(TARGET)-dyn $(DYN)
! 55:
! 56: dft: $(TARGET)-dyn
! 57:
! 58: all: $(ALL)
! 59:
! 60: sta: $(TARGET)-sta
! 61:
! 62: dyn: $(TARGET)-dyn
! 63:
! 64: dynlib: $(DYN)
! 65:
! 66: $(DYN): $(OBJS)
! 67: $(DLLD) -o $@ $(DLLDFLAGS) $(OBJS) $(EXTRADLLDFLAGS)
! 68:
! 69: $(TARGET)-sta: $(OBJS)
! 70: $(LD) -o $@ $(LDFLAGS) $< $(LIBDIR) $(EXTRALIBS) $(STATIC) $(LIBS)
! 71:
! 72: $(TARGET)-dyn: $(OBJS)
! 73: $(LD) -o $@ $(LDFLAGS) $< $(RUNPTH) $(LIBDIR) $(LIBS)
! 74:
! 75: %.o: %.c
! 76: $(CC) -c $(CFLAGS) $(CPPFLAGS) $<
! 77: clean:
! 78: -$(RM) *.o $(ALL)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>