aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/xtapemon/Imakefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/x11iraf/xtapemon/Imakefile')
-rw-r--r--vendor/x11iraf/xtapemon/Imakefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/vendor/x11iraf/xtapemon/Imakefile b/vendor/x11iraf/xtapemon/Imakefile
new file mode 100644
index 00000000..8c745346
--- /dev/null
+++ b/vendor/x11iraf/xtapemon/Imakefile
@@ -0,0 +1,69 @@
+#
+# Imakefile for xtapemon : X11 based tape monitoring utility for IRAF.
+#
+
+X11IRAFDIR = ../
+#include <../X11IRAF.tmpl>
+
+/* Hack to build on NOAO HP systems where the Xmu and Xaw libs had to be added
+ * specially to the system they don't come with the default X11 development
+ * system. This also avoids the binary requiring the shared lib version on
+ * systems which may not have it.
+ */
+#if defined(HPArchitecture) && OSMajorVersion >= 10
+ XMULIB = /usr/lib/X11R6/libXmu.a
+ XAWLIB = /usr/lib/X11R6/libXaw.a
+#endif
+
+
+ CDEBUGFLAGS = -g
+ XAWLIB = LibXaw3d
+
+##############################################################################
+# Nothing to change below here...
+
+SRCS= classnames.c types.c xtapemon.c
+OBJS= classnames.o types.o xtapemon.o
+DEFINES= -DXTAPEMON
+INCLUDES= -I. $(X11IRAF_INCLUDES)
+DEPLIBS= XawClientDepLibs
+LOCAL_LIBRARIES= XawClientLibs
+LOCAL_LDFLAGS= -L../lib $(X11IRAF_LDFLAGS)
+OBMLIBS = LibObm LibXpm
+MATHLIB = -lm
+
+
+
+AllTarget(xtapemon)
+
+NormalProgramTarget(xtapemon,$(OBJS),,${OBMLIBS} XawClientLibs,$(MATHLIB))
+
+#if InstallAppdefs
+install:: XTapemon.ad
+ MakeDir(X11irafAppDir)
+ $(CP) XTapemon.ad X11irafAppDir/XTapemon
+#endif
+
+#if InstallManuals
+install::
+ MakeDir(X11irafManDir)
+ $(CP) xtapemon.man X11irafManDir/xtapemon.1
+#endif
+
+#if InstallBinaries
+install:: xtapemon
+ -@if [ -d X11irafBinDir ]; then set +x; \
+ else (set -x; $(MKDIRHIER) X11irafBinDir); fi
+ $(CP) xtapemon X11irafBinDir
+#endif
+
+xtapemon.o: XTapemon.ad.h
+xtapemon.c: XTapemon.ad.h
+
+XTapemon.ad.h: XTapemon.ad
+ ad2c.sh XTapemon.ad > XTapemon.ad.h
+
+clean::
+ rm -f *.o xtapemon
+
+DependTarget()