aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/cdl/Imakefile.standalone
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/cdl/Imakefile.standalone
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'vendor/x11iraf/cdl/Imakefile.standalone')
-rw-r--r--vendor/x11iraf/cdl/Imakefile.standalone97
1 files changed, 97 insertions, 0 deletions
diff --git a/vendor/x11iraf/cdl/Imakefile.standalone b/vendor/x11iraf/cdl/Imakefile.standalone
new file mode 100644
index 00000000..9e4d9c39
--- /dev/null
+++ b/vendor/x11iraf/cdl/Imakefile.standalone
@@ -0,0 +1,97 @@
+#
+# Imakefile for the Client Display Library V1.8
+#
+# Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
+# Feb 1997
+
+#define IHaveSubdirs
+#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
+
+ CDEBUGFLAGS = -g
+ EXTRA_INCLUDES = -I.
+#if defined (HPArchitecture) || defined(RsArchitecture)
+ EXTRA_DEFINES = -D_NO_US_
+#else
+
+# If you plan to use the ANSI function prototypes in your application
+# you *must* edit the following to include '-DCDL_ANSIC' so the CDL
+# is compiled with prototypes and will not promote arguments to a
+# different type.
+
+# EXTRA_DEFINES = -DCDL_ANSIC
+#endif
+
+#if HasLargeTmp | SystemV4
+ ARADD = ar ru
+#else
+ ARADD = ar rul
+#endif
+
+# Hack to compile under SunPRO V4 on Solaris
+#if defined (SunArchitecture) && OSMajorVersion >= 5 && HasSunC
+#if OSMinorVersion <= 5
+#if !defined (i386Architecture)
+ CCOPTIONS = -Xs
+EXTRA_LDOPTIONS = -xildoff
+#endif
+#else
+ CCOPTIONS =
+EXTRA_LDOPTIONS = -xildoff
+#endif
+
+#else
+#if defined (UltrixArchitecture)
+ CCOPTIONS = -DULTRIX
+#endif
+#if defined (OSF1Architecture) && OSMajorVersion >= 4
+ CCOPTIONS = -DOSF1
+#endif
+#endif
+
+ SUBDIRS = examples test
+ MATHLIB = -lm
+
+ SRCS = cdl.c cdlmark.c cdlfits.c cdliraf.c cdlzscale.c cdl_f77.c \
+ cdl_spp.c eps.c comm.c imd.c
+ OBJS = cdl.o cdlmark.o cdlfits.o cdliraf.o cdlzscale.o cdl_f77.o \
+ cdl_spp.o eps.o comm.o imd.o
+ CDL_INCLUDES = cdl.h cdlP.h cdlProto.h cdl_f77.h cdlfont.h eps.h
+
+
+World::
+ @echo "Building Release 1.8 of the IRAF Client Display Library"
+ @echo "" ; date ; echo ""
+ $(MAKE) $(MFLAGS) Makefiles
+ $(MAKE) $(MFLAGS) clean
+ $(MAKE) $(MFLAGS) depend
+ $(MAKE) $(MFLAGS) all
+ @echo "Done." ; date ; echo ""
+
+all:: libcdl.a vximtool
+
+NormalLibraryTarget(cdl,$(OBJS))
+
+vximtool: vximtool.o
+ $(RM) vximtool
+ $(CC) -o vximtool -DHAVE_CDL vximtool.o $(LDOPTIONS) libcdl.a \
+ $(MATHLIB) $(EXTRA_LIBRARIES)
+
+vximtool.o:
+ $(CC) -c $(CFLAGS) -DHAVE_CDL vximtool.c
+
+clean::
+ $(RM) vximtool vximtool.o
+
+ForceSubdirs($(SUBDIRS))
+MakeSubdirs($(SUBDIRS))
+DependSubdirs($(SUBDIRS))
+
+pristine::
+ $(MAKE) $(MFLAGS) clean
+ $(RM) -f Makefile test/Makefile examples/Makefile *spool*
+
+archive::
+ $(MAKE) $(MFLAGS) pristine
+ !tar -cvf - . | compress > ../cdl.tar.Z
+
+DependTarget()