aboutsummaryrefslogtreecommitdiff
path: root/unix/hlib/mkpkg.inc
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/hlib/mkpkg.inc
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/hlib/mkpkg.inc')
-rw-r--r--unix/hlib/mkpkg.inc77
1 files changed, 77 insertions, 0 deletions
diff --git a/unix/hlib/mkpkg.inc b/unix/hlib/mkpkg.inc
new file mode 100644
index 00000000..f2f61d04
--- /dev/null
+++ b/unix/hlib/mkpkg.inc
@@ -0,0 +1,77 @@
+# Global (possibly system dependent) definitions for MKPKG.
+
+$verbose
+
+$set MACH = $(IRAFARCH) # machine/fpu type
+$set HOSTID = unix # host system name
+$set SITEID = noao # site name
+
+$ifeq (MACH, freebsd) then
+$set XFLAGS = "-c -w -/m32" # default XC compile flags
+$set XVFLAGS = "-c -w" -/m32 # VOPS XC compile flags
+$set LFLAGS = "-z -/static -/m32" # default XC link flags
+$else $ifeq (MACH, linux) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, linux64) then
+$set XFLAGS = "-c -w -/g -/m64" # default XC compile flags
+$set XVFLAGS = "-c -w -/g -/m64" # VOPS XC compile flags
+$set LFLAGS = "-Nz -/g -/m64" # default XC link flags
+$else $ifeq (MACH, redhat) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, macosx) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, macintel) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, ipad) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, linuxppc) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, sunos) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else $ifeq (MACH, cygwin) then
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-Nz" # default XC link flags
+$else
+$set XFLAGS = "-c -w" # default XC compile flags
+$set XVFLAGS = "-c -w" # VOPS XC compile flags
+$set LFLAGS = "-z -/static" # default XC link flags
+$end
+
+$set USE_LIBMAIN = yes # update lib$libmain.o (root object)
+$set USE_KNET = yes # use the KI (network interface)
+$set USE_SHLIB = no # use (update) the shared library
+$set USE_CCOMPILER = yes # use the C compiler
+$set USE_GENERIC = yes # use the generic preprocessor
+$set USE_NSPP = no # make the NCAR/NSPP graphics kernel
+$set USE_IIS = no # make the IIS display control package
+$set USE_CALCOMP = no # make the Calcomp graphics kernel
+$set LIB_CALCOMP = "-lcalcomp" # name of host system calcomp library
+
+$ifeq (MACH, linux, redhat, macosx, macintel, ipad) then
+ $include "hlib$mkpkg.sf.MACX"
+$else $ifeq (MACH, linux, redhat, linuxppc) then
+ $include "hlib$mkpkg.sf.LNUX"
+$else $ifeq (MACH, linux64) then
+ $include "hlib$mkpkg.sf.LNUX64"
+$else $ifeq (MACH, freebsd) then
+ $include "hlib$mkpkg.sf.FBSD"
+$else $ifeq (MACH, sunos) then
+ $include "hlib$mkpkg.sf.SX86"
+$else $ifeq (MACH, cygwin) then
+ $include "hlib$mkpkg.sf.CYGW"
+$end