aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/ximtool/Imakefile
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /vendor/x11iraf/ximtool/Imakefile
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'vendor/x11iraf/ximtool/Imakefile')
-rw-r--r--vendor/x11iraf/ximtool/Imakefile100
1 files changed, 100 insertions, 0 deletions
diff --git a/vendor/x11iraf/ximtool/Imakefile b/vendor/x11iraf/ximtool/Imakefile
new file mode 100644
index 00000000..28d4bc8c
--- /dev/null
+++ b/vendor/x11iraf/ximtool/Imakefile
@@ -0,0 +1,100 @@
+# Imakefile for the XImtool image display server.
+# 18Aug93 - Doug Tody, NOAO/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.
+ */
+
+#define IHaveSubdirs
+#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
+
+#if defined(HPArchitecture) && OSMajorVersion >= 10
+ XMULIB = /usr/lib/X11R6/libXmu.a
+ XAWLIB = /usr/lib/X11R6/libXaw.a
+#endif
+
+
+ CDEBUGFLAGS = -g
+ XAWLIB = LibXaw3d
+
+ LOCAL_LDFLAGS = $(X11IRAF_LDFLAGS)
+ EXTRA_INCLUDES = $(X11IRAF_INCLUDES)
+ OBMLIBS = LibObm LibXpm
+ MATHLIB = -lm
+ DEPOBM = DepLibObm
+
+ SRCS = eps.c iis.c load.c print.c raster.c save.c \
+ rasio.c fitsio.c ximclient.c ximtool.c quant.c util.c \
+ zscale.c gifio.c tiffio.c irafio.c ism.c ism_wcspix.c \
+ logo.c
+ OBJS = eps.o iis.o load.o print.o raster.o save.o \
+ rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o \
+ zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o \
+ logo.o
+ ISM_DIRS = clients
+ ISM_DONE = clients/DONE
+
+ SUBDIRS = $(ISM_DIRS)
+
+
+AllTarget(ximtool ximtool-alt ximtool-old ism_clients)
+
+all::
+ @(cd clients; $(MAKE) $(MFLAGS) all X11IRAFDIR=../../)
+
+NormalProgramTarget(ximtool,$(OBJS),${DEPOBM},${OBMLIBS} XawClientLibs, $(MATHLIB))
+
+ximtool-alt::
+ cat ximtool-alt.csh ximtool.gui > ximtool-alt
+ chmod 755 ximtool-alt
+
+ximtool-old::
+ cat ximtool-old.csh ximtool-old.gui > ximtool-old
+ chmod 755 ximtool-old
+
+ism_clients: $(ISM_DIRS) $(ISM_DONE)
+ @(cd clients; $(MAKE) $(MFLAGS) all X11IRAFDIR=../../)
+
+#install::
+# @(cd clients; $(MAKE) $(MFLAGS) install X11IRAFDIR=../../)
+
+clean::
+ $(RM) ximtool-old ximtool-alt
+
+
+${DEPOBM}:
+
+ximtool.o: ximtool.gui.h ../version.h
+ximtool.c: ximtool.gui.h
+ximclient.o: ximtool.html.h
+ximclient.c: ximtool.html.h
+
+ximtool.gui.h: ximtool.gui
+ sed -f gui2c.sed ximtool.gui > ximtool.gui.h
+ximtool.html.h: ximtool.html
+ sed -f gui2c.sed ximtool.html > ximtool.html.h
+
+XCOMM XImtool.ad: ximtool.gui
+XCOMM sed -e '1,/^appInitialize/d' -e '/^}/,\$d' ximtool.gui > XImtool.ad
+
+#if InstallBinaries
+install:: ximtool
+ -@if [ -d X11irafBinDir ]; then set +x; \
+ else (set -x; $(MKDIRHIER) X11irafBinDir); fi
+ $(CP) ximtool X11irafBinDir
+ $(CP) ximtool-old X11irafBinDir
+ $(CP) ximtool-alt X11irafBinDir
+#endif
+
+#if InstallManuals
+install::
+ MakeDir(X11irafManDir)
+ $(CP) ximtool.man X11irafManDir/ximtool.1
+#endif
+
+DependTarget()