Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
dir=examples1file=$objdir/Makefile.examples2lnfile=Makefile34echo Extracting $file5rm -f $file $dir/$lnfile67if test -z "$DLLD"; then static=y; fi8case "$static" in9n) dft=dyn ;;10y) dft=sta ;;11esac1213RUNPTH=14if test -n "$runpathprefix"; then15RUNPTH=`config/ldflags "$LDneedsWl" "$runpathprefix $runpath"`16fi1718cat > $file << EOT19# Generic Makefile for PARI programs -- $pretty20#21# This file was created by Configure. Any change made to it will be22# lost when Configure is run.23#24# make all will create25# extgcd-dyn (linked dynamically with libpari)26# extgcd-sta (linked statically)27# libextgcd.so (to be used by "install" under GP)28#29# Under GP: install("extgcd", "GG&&", "gcdex", "./libextgcd.so") enables30# you to subsequently use gcdex to call extgcd (see the reference manual).31#3233# change this TARGET to compile your own programs34TARGET = extgcd35SHELL = $make_sh3637DBGFLAGS = $DBGFLAGS38CFLAGS = $OPTFLAGS39EXTRACFLAGS=40#CFLAGS = \$(DBGFLAGS)4142# Various linkers use different flags to force static compilation. Choose43# the one which is relevant for your installation.44#45# Solaris ld (global)46#STATIC = -dn4748# Solaris ld (toggle: no shared object accepted until -B dynamic is seen49#STATIC = -B static5051# gcc52#STATIC = -static5354CC = $CC55CPPFLAGS = -I. -I$includedir56LD = $LD57LDFLAGS = $LDFLAGS58MODLD = $MODLD59MODLDFLAGS = $MODLDFLAGS60EXTRAMODLDFLAGS = $EXTRAMODLDFLAGS61EXTRALIBS =6263RUNPTH = $RUNPTH64DLCFLAGS = $DLCFLAGS65LIBS = $LIBS -L$libdir -lpari6667RM = rm -f686970OBJS = \$(TARGET).o71DYN = lib\$(TARGET).$DLSUFFIX72ALL = \$(TARGET)-sta \$(TARGET)-dyn \$(DYN)7374dft: \$(TARGET)-$dft7576all: \$(ALL)7778sta: \$(TARGET)-sta7980dyn: \$(TARGET)-dyn8182dynlib: \$(DYN)8384\$(DYN): \$(OBJS)85\$(MODLD) -o \$@ \$(MODLDFLAGS) \$(EXTRACFLAGS) \$(OBJS) \$(EXTRAMODLDFLAGS)8687\$(TARGET)-sta: \$(OBJS)88\$(LD) -o \$@ \$(LDFLAGS) \$(EXTRACFLAGS) \$< \$(EXTRALIBS) \$(STATIC) \$(LIBS)8990\$(TARGET)-dyn: \$(OBJS)91\$(LD) -o \$@ \$(LDFLAGS) \$(EXTRACFLAGS) \$< \$(EXTRALIBS) \$(RUNPTH) \$(LIBS)9293%.o: %.c94\$(CC) -c \$(CFLAGS) \$(EXTRACFLAGS) \$(CPPFLAGS) \$(DLCFLAGS) \$<95clean:96-\$(RM) *.o \$(ALL)97EOT9899( cd $dir ; $ln_s ../$file $lnfile )100101102