XCOMM
XCOMM  Imakefile for the Client Display Library V1.0
XCOMM
XCOMM  Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
XCOMM  Feb 1997

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

    CDEBUGFLAGS = -g
 EXTRA_INCLUDES = -I.
#if defined (HPArchitecture) || defined(RsArchitecture)
  EXTRA_DEFINES = -D_NO_US_
#else 
  EXTRA_DEFINES =
#endif

#if HasLargeTmp | SystemV4
          ARADD = ar ru
#else
          ARADD = ar rul
#endif

#if defined (SunArchitecture)  &&  OSMajorVersion >= 5 && HasSunC
# Hack to compile under SunPRO V4 on Solaris
      CCOPTIONS = -Xs
EXTRA_LDOPTIONS = -xildoff
#else
#if defined (UltrixArchitecture)
        CCOPTIONS = -DULTRIX
#endif
#endif

        SUBDIRS = examples test
        MATHLIB = -lm

        HEADERS = imd.h cdl.h
           SRCS = cdl.c cdlmark.c cdlfits.c cdliraf.c cdlzscale.c cdl_f.c \
		  eps.c comm.c imd.c
           OBJS = cdl.o cdlmark.o cdlfits.o cdliraf.o cdlzscale.o cdl_f.o \
		  eps.o comm.o imd.o
   CDL_INCLUDES = cdl.h cdl_f.h cdlfont.h eps.h imd.h


World::
	@echo "Building Release 1.0 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

NormalLibraryTarget(cdl,$(OBJS))

ForceSubdirs($(SUBDIRS))
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

pristine::
	$(MAKE) $(MFLAGS) clean
	$(RM) -f Makefile test/Makefile examples/Makefile

DependTarget()
