XCOMM
XCOMM    Copyright (c) 1992 Minnesota Supercomputer Center, Inc.
XCOMM    Copyright (c) 1992 Army High Performance Computing Research Center
XCOMM        (AHPCRC), University of Minnesota
XCOMM    Copyright (c) 1995-1999 Laboratory for Computational Science and
XCOMM        Engineering (LCSE), University of Minnesota
XCOMM
XCOMM    This is free software released under the GNU General Public License.
XCOMM    There is no warranty for this software.  See the file COPYING for
XCOMM    details.
XCOMM
XCOMM    See the file CONTRIBUTORS for a list of contributors.
XCOMM
XCOMM    Orignal author(s):
XCOMM      Ken Chin-Purcell <ken@ahpcrc.umn.edu> 
XCOMM
XCOMM    This file is maintained by:
XCOMM      Grant Erickson <grant@lcse.umn.edu>
XCOMM
XCOMM    Module name: Imakefile
XCOMM
XCOMM    Description:
XCOMM      Imakefile for Interactive Colormap Editor (icol).
XCOMM

TOP		= ..
APP		= icol
CLASS		= Icol
SRCS		= icol.c file.c cbar.c setup.c abar.c rgb.c
LIB		= $(LIBGVL) $(XMLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)

#include "../Imake.h"

#ifndef Debugging
DEFINES		= -DUSEFALLBACK
setup.o:	fallback.h
fallback.h:	$(CLASS).ad
	$(GVLUTIL)/mkfallback < $(CLASS).ad > fallback.h
clean::
	RemoveFile(fallback.h)
#endif

XCOMM
XCOMM Rules for making icol
XCOMM

AllTarget($(APP))
NormalProgramTarget($(APP),$(OBJS),$(LIBGVL),$(LIB),-lm)
DependTarget()
InstallProgram($(APP),$(INSTALL_BIN))
install:: $(CLASS).ad
	$(INSTALL) -c $(INSTAPPFLAGS) $(CLASS).ad $(INSTALL_DEF)/$(CLASS)

$(LIBGVL):
	cd $(GVLLIB); $(MAKE)

XCOMM
XCOMM Rules for making a debug build.
XCOMM

debug: 
	$(IMAKE_CMD) -DDebugging
	$(MAKE)
