From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- unix/hlib/mkpkg.sf.S34 | 122 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 unix/hlib/mkpkg.sf.S34 (limited to 'unix/hlib/mkpkg.sf.S34') diff --git a/unix/hlib/mkpkg.sf.S34 b/unix/hlib/mkpkg.sf.S34 new file mode 100644 index 00000000..9634d72c --- /dev/null +++ b/unix/hlib/mkpkg.sf.S34 @@ -0,0 +1,122 @@ +# Mkpkg special file list for SUN/IRAF, SUN/UNIX V3.2. + +# All files needing special processing for the local host operating system, +# e.g., to permit host dependent optimization or to work around compiler bugs, +# should be listed here. + +# Files optimized for the local host system. +# ----------------------------------------- + +$special "sys$gio/nspp/sysint/": ishift.x as$ishift.s ; +$special "sys$gio/ncarutil/sysint/": ishift.x as$ishift.s ; + +$special "sys$osb/": aclrb.c as$aclrb.c + bytmov.c as$bytmov.c + ; + +$special "sys$vops/ak/": aclrc.x as$aclrc.c + aclrs.x as$aclrs.c + aclri.x as$aclri.c + aclrl.x as$aclrl.c + aclrr.x as$aclrr.c + aclrd.x as$aclrd.c + ; + +$special "sys$vops/lz/": amovc.x as$amovc.c + amovs.x as$amovs.c + amovi.x as$amovi.c + amovl.x as$amovl.c + amovr.x as$amovr.c + amovd.x as$amovd.c + ; + +# Files requiring special compilation due to host compiler bugs. +# ------------------------------------------------------------- + +# Hand compile without SUN-f77 hardware floating point switch, but with +# optimization, otherwise the f77 compiler fails due to complex datatype +# expressions. (7/31) + +$set XCS = '& "$xc -c &"' + +$special "sys$vops/ak/": + abeqkx.x $(XCS) + abeqx.x $(XCS) + abgekx.x $(XCS) + abgtkx.x $(XCS) + ablekx.x $(XCS) + abltkx.x $(XCS) + abnekx.x $(XCS) + abnex.x $(XCS) + advzx.x $(XCS) + ; + +$special "sys$vops/lz/": + allnx.x $(XCS) + alogx.x $(XCS) + arcpx.x $(XCS) + arczx.x $(XCS) + ; + +# Hand compile without optimization, but with hardware floating point, to +# get around optimizer bugs in SUN-f77. + +$set XCQ = '& "$xc -cq -/$(MACH) &"' + +$special "sys$etc/": main.x $(XCQ); +$special "sys$fmtio/": fprfmt.x $(XCQ); +$special "sys$gio/cursor/": grcwcs.x $(XCQ); +$special "math$curfit/": cvaccumd.x $(XCQ) + cvaccumr.x $(XCQ); +$special "images$lib/": ranges.x $(XCQ); + +# Additions for SunOS 4.0 in case this is used for that too. +# --------------------------------------------------------------------- + +$set XNO = '& "$xc -cq -/$(MACH) &"' +$set XO1 = '& "$xc -cq -/O1 -/$(MACH) &"' +$set XO2 = '& "$xc -cq -/O2 -/$(MACH) &"' + +# Files requiring special compilation due to host compiler bugs. +# ------------------------------------------------------------- + +$special "sys$etc/": + onerror.x $(XNO) + onexit.x $(XNO) + ; + +$special "sys$gio/cursor/": + grcwcs.x $(XNO); + +# The following causes the compiler to produce semi-infinite intermediate code +# tables, necessitating use of reduced levels (O1 or O2) of optimization. + +$special "sys$osb/": + achtbu.c $(XO1) + achtcu.c $(XO1) + achtdu.c $(XO1) + achtiu.c $(XO1) + achtlu.c $(XO1) + achtru.c $(XO1) + achtsu.c $(XO1) + achtuu.c $(XO1) + achtxu.c $(XO1) + achtub.c $(XO1) + achtuc.c $(XO1) + achtud.c $(XO1) + achtui.c $(XO1) + achtul.c $(XO1) + achtur.c $(XO1) + achtus.c $(XO1) + achtuu.c $(XO1) + achtux.c $(XO1) + ; + +# Partial optimization needed to prevent infinite loop in iropt. +# In main.c and errs.c, no optimization is needed to avoid an optimizer problem +# associated with ZSVJMP (setjmp). I tried using a #pragma to fix this but +# it didn't work. + +$special "$(pkg)cl/": ytab.c & "$xc -cq -/O2 &" + main.c & "$xc -cq &" + errs.c & "$xc -cq &"; -- cgit