aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/X11IRAF.tmpl
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 /vendor/x11iraf/X11IRAF.tmpl
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/x11iraf/X11IRAF.tmpl')
-rw-r--r--vendor/x11iraf/X11IRAF.tmpl200
1 files changed, 200 insertions, 0 deletions
diff --git a/vendor/x11iraf/X11IRAF.tmpl b/vendor/x11iraf/X11IRAF.tmpl
new file mode 100644
index 00000000..1296455c
--- /dev/null
+++ b/vendor/x11iraf/X11IRAF.tmpl
@@ -0,0 +1,200 @@
+/*
+ * Imake template and rules for X11IRAF.
+ *
+ * Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
+ * Aug 19 1996
+ */
+
+#include <Library.tmpl>
+
+/* CONFIGURE: You may edit the symbol definitions below as you see fit,
+ * e.g. change the definition of "InstallLibraries" and "InstallIncludes"
+ * to "YES" if you want to have the libraries and include files installed,
+ * see below for *where* they will be installed.
+ */
+#ifndef InstallBinaries
+#define InstallBinaries YES
+#endif
+#ifndef InstallManuals
+#define InstallManuals YES
+#endif
+#ifndef InstallAppdefs
+#define InstallAppdefs YES
+#endif
+#ifndef InstallLibraries
+#define InstallLibraries YES
+#endif
+#ifndef InstallIncludes
+#define InstallIncludes YES
+#endif
+
+/* CONFIGURE: Where to install X11IRAF (defaults to the X11IRAF directories).
+ */
+#ifndef X11irafDir /* defaults to nothing */
+#define X11irafDir
+#endif
+#ifndef X11irafBinDir
+#define X11irafBinDir $(X11IRAFDIR)/bin
+#endif
+#ifndef X11irafManDir
+#define X11irafManDir $(X11IRAFDIR)/man
+#endif
+#ifndef X11irafLibDir
+#define X11irafLibDir $(X11IRAFDIR)/lib
+#endif
+#ifndef X11irafIncDir
+#define X11irafIncDir $(X11IRAFDIR)/include
+#endif
+#ifndef X11irafAppDir
+#define X11irafAppDir $(X11IRAFDIR)/app-defaults
+#endif
+
+/******************************************************************************/
+/********************** End of configurable definitions. **********************/
+/******************************************************************************/
+
+
+/* Subdirectories: */
+#ifndef XGtermDir
+#define XGtermDir $(X11IRAFDIR)/xgterm
+#endif
+#ifndef XImtoolDir
+#define XImtoolDir $(X11IRAFDIR)/ximtool
+#endif
+#ifndef XTapemonDir
+#define XTapemonDir $(X11IRAFDIR)/xtapemon
+#endif
+#ifndef ObmshDir
+#define ObmshDir $(X11IRAFDIR)/obmsh
+#endif
+#ifndef ObmDir
+#define ObmDir $(X11IRAFDIR)/obm
+#endif
+#ifndef Xaw3dDir
+#define Xaw3dDir $(X11IRAFDIR)/xaw3d
+#endif
+#ifndef XpmDir
+#define XpmDir $(X11IRAFDIR)/xpm
+#endif
+#ifndef CDLDir
+#define CDLDir $(X11IRAFDIR)/cdl
+#endif
+
+/* Libraries: */
+#ifndef LibObm
+#define LibObm -lobm
+#endif
+#ifndef LibXpm
+#define LibXpm -lXpm
+#endif
+#ifndef LibXaw3d
+#define LibXaw3d -lXaw3d
+#endif
+#ifndef LibCDL
+#define LibCDL -lcdl
+#endif
+
+/* Dependency libraries: */
+#ifndef DepLibObm
+#define DepLibObm $(OBMDIR)/libobm.a
+#endif
+#ifndef DepLibXpm
+#define DepLibXpm $(XPMDIR)/libXpm.a
+#endif
+#ifndef DepLibXaw3d
+#define DepLibXaw3d $(XAW3DDIR)/libXaw3d.a
+#endif
+#ifndef DepLibCDL
+#define DepLibCDL $(CDLDIR)/libcdl.a
+#endif
+
+
+ X11IRAFBINDIR = X11irafBinDir
+ X11IRAFMANDIR = X11irafManDir
+ X11IRAFLIBDIR = X11irafLibDir
+ X11IRAFINCDIR = X11irafIncDir
+
+ XGTERMDIR = XGtermDir
+ XIMTOOLDIR = XImtoolDir
+ XTAPEMONDIR = XTapemonDir
+ OBMSHDIR = ObmshDir
+ OBMDIR = ObmDir
+ XPMDIR = XpmDir
+ XAW3DDIR = Xaw3dDir
+ CDLDIR = CDLDir
+
+ DEPLIBOBM = DepLibObm
+ LIBOBM = LibObm
+ DEPLIBXPM = DepLibXpm
+ LIBXPM = LibXpm
+ DEPLIBXAW3D = DepLibXaw3d
+ LIBXAW3D = LibXaw3d
+ LIBCDL = LibCDL
+
+ X11IRAF_LDFLAGS = -L$(X11IRAFDIR)/lib -L../lib
+ X11IRAF_INCLUDES = -I$(X11IRAFDIR)/include -I../include
+
+
+/******************************************************************************/
+/******************** Architecture specific definitions. **********************/
+/******************************************************************************/
+
+/* Redefine $(CP) to preserve the filedate so we don't recompile unnecessarily
+ * after a 'make install'.
+ */
+ CP = cp -p
+
+
+/* For Solaris x86 check to see whether the SUNPro compilers are actually
+ * installed, if not assume we have GCC available and use it instead.
+ */
+#if defined(i386Architecture) && defined(SunArchitecture)
+ CC:sh = if test /opt/SUNWspro/bin/cc ; \
+ then \
+ echo gcc ; \
+ fi
+#if CC == gcc
+#define UseGCC YES
+ CCOPTIONS =
+ EXTRA_LDOPTIONS =
+#endif
+#endif
+
+/* Hack to compile under SunPRO V4 on Sun Solaris */
+#if !defined(UseGCC)
+#if defined (SunArchitecture) && HasSunC && OSMajorVersion >= 5
+#if OSMinorVersion <= 5
+ CCOPTIONS = -Xs
+ EXTRA_LDOPTIONS = -xildoff
+#else
+ CCOPTIONS =
+ EXTRA_LDOPTIONS = -xildoff
+#endif
+#endif
+#endif
+
+/* Set needed flags for the HP. */
+#if defined (HPArchitecture)
+ CCOPTIONS = -DHPUX
+#endif
+
+/* Set needed flags for the DECStations. */
+#if defined (UltrixArchitecture)
+ CCOPTIONS = -DULTRIX
+#endif
+
+/* Set needed flags for the Alpha. */
+#if defined (OSF1Architecture) && OSMajorVersion >= 4
+ CCOPTIONS = -DOSF1
+#endif
+
+/* Hack needed so binaries built on NOAO Alpha use patched Xt library */
+#if defined (OSF1Architecture) && OSMajorVersion >= 4
+XTOOLONLYLIB = -no_so -lXt -so_archive
+#endif
+
+/* Set needed flags for the OS X. Shut off the endless -Wall warnings.*/
+#if defined (DarwinArchitecture)
+ CCOPTIONS = -w
+#endif
+