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/os/mkpkg | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 unix/os/mkpkg (limited to 'unix/os/mkpkg') diff --git a/unix/os/mkpkg b/unix/os/mkpkg new file mode 100644 index 00000000..379da65f --- /dev/null +++ b/unix/os/mkpkg @@ -0,0 +1,98 @@ +# Make the 4.2BSD UNIX IRAF kernel. All modules are also dependent on the +# header file . + +$checkout libos.a hlib$ +$update libos.a +$checkin libos.a hlib$ +$exit + +alloc: + !cc -O alloc.c getproc.c -o alloc.e; chmod 4755 alloc.e;\ + mv -f alloc.e ../hlib + ; + +libos.a: + $set XFLAGS = "-cd $(HSI_XF)" + + $ifdef (DEBUG) + $iffile (as$zsvjmp_p.s) + as$zsvjmp_p.s + $else + as$zsvjmp.s + $endif + $else + as$zsvjmp.s + $endif + + #"as$enbint.s" + + # Do not put zmain.o in the library if it is linked explicitly as a .o + # on the host machine. Having it in the library prevents use of the + # libos library in Fortran on a UNIX system as the linker will use the + # iraf zmain (C "main") rather than the Fortran one. + + $ifeq (USE_LIBMAIN, no) + zmain.c + $endif + + irafpath.c + gmttolst.c + prwait.c + zalloc.c + zawset.c + zdojmp.c + zcall.c + zfunc.c + zfacss.c + zfaloc.c + zfchdr.c + zfdele.c + zfgcwd.c + zfinfo.c + zfiobf.c + zfioks.c + zfiolp.c + zfiond.c + zfiomt.c + zfiopl.c + zfiopr.c + zfiosf.c + zfiotx.c + zfioty.c + zfmkcp.c + zfmkdr.c + zfnbrk.c + zfpath.c + zfpoll.c + zfprot.c + zfrnam.c + zfrmdr.c + zfsubd.c + zfutim.c + zfxdir.c + zgcmdl.c + zghost.c + zglobl.c + zgmtco.c + zgtenv.c + zgtime.c + zgtpid.c + zintpr.c + zlocpr.c + zlocva.c + zmaloc.c + zmfree.c + zopdir.c + zopdpr.c + zoscmd.c + zpanic.c + zraloc.c + zshlib.c + zwmsec.c + zxwhen.c + zzepro.c + zzexit.c + zzpstr.c + zzsetk.c + zzstrt.c + ; -- cgit