# Mkpkg file for the CDL Image Display Library
#

$call update
$exit

update:
	# Set architecture-specific compile flags
	#
	$ifeq (MACH, alpha) then
	$set XFLAGS = "$(XFLAGS) -DOSF1"
	$else $ifeq (MACH, dsux, dmip) then
	$set XFLAGS = "$(XFLAGS) -DULTRIX"
	$else $ifeq (MACH, hp700) then
	$set XFLAGS = "$(XFLAGS) -DHPUX -Dhpux -DSYSV -D_HPUX_SOURCE -D_NO_US_"
	$else $ifeq (MACH, rs6000) then
	$set XFLAGS = "$(XFLAGS) -D_NO_US_"
	$else $ifeq (MACH, ssun) then
	$set XFLAGS = "$(XFLAGS) -DSOLARIS"
	$endif
	$endif
	$endif
	$endif

	$set XFLAGS = "$(XFLAGS) -Inolibc"

	# Uncomment the following if you want to compile the library
	# using ANSI C function prototypes.  NOTE:  If the library is
	# compiled with prototypes then *all* client applications must
	# also be compiled with prototypes.

	#$set XFLAGS = "$(XFLAGS) -DCDL_ANSIC"

        $checkout libcdl.a mxtoolslib$
        $update   libcdl.a
        $checkin  libcdl.a mxtoolslib$
        ;


libcdl.a:
        cdl.c           cdl.h cdlP.h
        cdlmark.c       cdl.h cdlP.h cdlfont.h
        cdl_f77.c       cdl.h cdlP.h cdl_f77.h
        cdl_spp.c       cdl.h cdlP.h cdl_f77.h
        cdlfits.c       cdl.h cdlP.h
        cdliraf.c       cdl.h cdlP.h
        cdlzscale.c     cdl.h cdlP.h
        comm.c          cdl.h cdlP.h
        imd.c           cdl.h cdlP.h
        eps.c           cdl.h cdlP.h eps.h
        ;

