#ifdef BandAidCompiler
#include BandAidCompiler
#endif

/*
 *  Author:    Lionel Mallet, Simulog 
 *  Created:   April 20, 1991.
 */
        XPM_INCLUDEDIR = /usr/include/X11/Xpm
        XPM_LIBDIR = /usr/lib/X11/Xpm
        EXTRA_INCLUDES = -I. -I.. -I$(XPM_INCLUDEDIR)

# Uncomment the three following lines if you have Motif (see README on X11R5)
#        DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -D_NO_PROTO
#        DEPLIBS = /usr/lib/libXm.a $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) 
#LOCAL_LIBRARIES =  -L$(XPM_LIBDIR) -lXpm -lXm $(XMULIB) $(XTOOLLIB) $(XLIB)

# Comment out the three follwing lines if you have Motif 
        DEFINES = $(IEEE_DEFS) $(SIGNAL_DEFINES) -DUSE_ATHENA
        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES =  -L$(XPM_LIBDIR) -lXpm XawClientLibs

  SYS_LIBRARIES = -lm
           SRCS = PixEdit.c Pixmap.c Dialog.c 
           OBJS = PixEdit.o Pixmap.o Dialog.o 

ComplexProgramTarget(pixmap)
InstallAppDefaults(Pixmap)

all ::	dotpixmap Pixmap.ad

# Uncomment the two following lines if you have Motif  (see README on X11R5)
#Pixmap.ad: PixmapMotifAD
#	cp PixmapMotifAD Pixmap.ad

# Comment out the two follwing lines if you have Motif 
Pixmap.ad: PixmapAthenaAD
	cp PixmapAthenaAD Pixmap.ad

dotpixmap: $(LIBDIR)/rgb.txt
	awk 'NF == 4 && $$4 !~ /[Gg]rey/ && $$4 !~ /[0-9]/ {print $$4}' $(LIBDIR)/rgb.txt > dotpixmap

doc:	Pixmap.tex
	latex Pixmap.tex
	latex Pixmap.tex
	dvi2ps Pixmap.dvi > Pixmap.ps

