/usr/share/doc/pari-gp/examples/Makefile.linux-x86_64 is in pari-gp 2.7.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | # Generic Makefile for PARI programs -- amd64 running linux (x86-64/GMP-6.0.0 kernel) 64-bit version
#
# This file was created by Configure. Any change made to it will be
# lost when Configure is run.
#
# make all will create
# extgcd-dyn (linked dynamically with libpari)
# extgcd-sta (linked statically)
# libextgcd.so (to be used by "install" under GP)
#
# Under GP: install("extgcd", "GG&&", "gcdex", "./libextgcd.so") enables
# you to subsequently use gcdex to call extgcd (see the reference manual).
#
# change this TARGET to compile your own programs
TARGET = extgcd
SHELL = /bin/sh
DBGFLAGS = -g -Wall
CFLAGS = -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
EXTRACFLAGS=
#CFLAGS = $(DBGFLAGS)
# Various linkers use different flags to force static compilation. Choose
# the one which is relevant for your installation.
#
# Solaris ld (global)
#STATIC = -dn
# Solaris ld (toggle: no shared object accepted until -B dynamic is seen
#STATIC = -B static
# gcc
#STATIC = -static
CC = cc
CPPFLAGS = -I. -I/usr/include/x86_64-linux-gnu
LD = cc
LDFLAGS = -g -O0 -Wall -fno-strict-aliasing -Wl,--export-dynamic -Wl,-z,relro
MODLD = cc
MODLDFLAGS = -shared $(CFLAGS) $(DLCFLAGS) -Wl,-shared -Wl,-z,relro
EXTRAMODLDFLAGS = -lc -lm -L/usr/lib/x86_64-linux-gnu -lpari
EXTRALIBS =
RUNPTH = -Wl,-rpath "/usr/lib/x86_64-linux-gnu"
DLCFLAGS = -fPIC
LIBS = -lm -L/usr/lib/x86_64-linux-gnu -lpari
RM = rm -f
OBJS = $(TARGET).o
DYN = lib$(TARGET).so
ALL = $(TARGET)-sta $(TARGET)-dyn $(DYN)
dft: $(TARGET)-dyn
all: $(ALL)
sta: $(TARGET)-sta
dyn: $(TARGET)-dyn
dynlib: $(DYN)
$(DYN): $(OBJS)
$(MODLD) -o $@ $(MODLDFLAGS) $(EXTRACFLAGS) $(OBJS) $(EXTRAMODLDFLAGS)
$(TARGET)-sta: $(OBJS)
$(LD) -o $@ $(LDFLAGS) $(EXTRACFLAGS) $< $(EXTRALIBS) $(STATIC) $(LIBS)
$(TARGET)-dyn: $(OBJS)
$(LD) -o $@ $(LDFLAGS) $(EXTRACFLAGS) $< $(EXTRALIBS) $(RUNPTH) $(LIBS)
%.o: %.c
$(CC) -c $(CFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(DLCFLAGS) $<
clean:
-$(RM) *.o $(ALL)
|