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.OS4 | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 unix/hlib/mkpkg.sf.OS4 (limited to 'unix/hlib/mkpkg.sf.OS4') diff --git a/unix/hlib/mkpkg.sf.OS4 b/unix/hlib/mkpkg.sf.OS4 new file mode 100644 index 00000000..968ae23e --- /dev/null +++ b/unix/hlib/mkpkg.sf.OS4 @@ -0,0 +1,82 @@ +# 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$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 + ; + +$special "sys$gio/nspp/sysint/": ishift.x as$ishift.s ; +$special "sys$gio/ncarutil/sysint/": ishift.x as$ishift.s ; + +# SUNOS 4.0. +# --------------------------------------------- + +$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