![]() ![]() | ![]() |
File: [local] / OpenXM_contrib / pari-2.2 / src / kernel / sparcv8 / Attic / Makefile.SH (download)
Revision 1.2, Wed Sep 11 07:27:02 2002 UTC (21 years, 11 months ago) by noro
Upgraded pari-2.2 to pari-2.2.4. |
# For SunOS # If __GNUC__, most level0 functions are "asm inline" # If not, they are "asm extern" # The object kernel.o (resp. kernel2.o) contains entries for the functions # that can (resp. cannot) be inline. # Problem: "divll" uses "overflow", so kernel2.o is not the same when # compiled with gcc or with cc. We should try to find a workaround. # For NextStep or Linux # We don't accept "asm inline" since it does not work (Ptitboul) if test "$gnuas" = "yes"; then do_cpp=yes; fi ker=$src/kernel/sparcv8 kernel1=$ker/level0_$asmarch.S kernel2=$ker/level0.S if test "$osname" = "nextstep" -o "$osname" = "linux" then level0=$src/kernel/none/asm0.h else level0=$ker/level0.h fi level1=$src/kernel/none/level1.h if test "$osname" = "nextstep" -o "$osname" = "linux" -o "$do_cpp" = "yes" then cat >> $file << EOT kernel1.s: $kernel1 \$(CPP) $KERNELCPPFLAGS $kernel1 > \$@ kernel2.s: $kernel2 \$(CPP) $KERNELCPPFLAGS $kernel2 > \$@ EOT kernel1=kernel1.s kernel2=kernel2.s fi cat >> $file << EOT pariinl.h: $level0 $level1 cat $level0 $level1 > \$@ kernel.o: $kernel1 \$(AS) \$(ASFLAGS) -o \$@ $kernel1 kernel2.o: $kernel2 \$(AS) \$(ASFLAGS) -o \$@ $kernel2 # Level 1 kernel is the generic one mp.o: .headers $src/kernel/none/mp.c \$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ $src/kernel/none/mp.c mpinl.o: .headers $level1 \$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ $src/kernel/none/level1.c EOT