#error The Imakefile is broken, please use the plain Makefiles

#if 0

XCOMM
XCOMM Imakefile for XmHTML tools
XCOMM
XCOMM (C)Copyright 1995-1997 Ripley Software Development
XCOMM All Rights Reserved
XCOMM
XCOMM This file is part of the XmHTML Widget Library.
XCOMM
XCOMM See the file LICENSE for the full copyright statement.
XCOMM

XCOMM Include the XmHTML configuration file
#define ForTools
#include "../XmHTML.cf"

XCOMM On some systems, imake automatically includes Motif.tmpl, on others
XCOMM it doesn't.
XCOMM
#ifndef MotifDefines
#include <Motif.tmpl>
#endif

EXTRA_INCLUDES = -I. -I$(BUILDINCTOP)/include

XCOMM dependency X libraries, required for reptype
XDEPLIB = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)

XCOMM default dependency libs.
DEPLIB =

XCOMM Default libraries
DEFAULT_LIBS =

XCOMM X libraries, required for reptype
LOCAL_LIBRARIES = $(XMLIB) $(XTOOLLIB) $(XLIB) $(DMALLOCLIB) $(DEFAULT_LIBS)

#if (IHaveZLIB)
SRCS = GetRepTypes.c WidgetSize.c gifinfo.c ImBuffer.c miniparse.c \
../src/parse.c gif2gzf.c ../src/LZWStream.c httpget.c
#else
SRCS = GetRepTypes.c WidgetSize.c gifinfo.c ImBuffer.c miniparse.c \
../src/parse.c httpget.c
#endif

OBJS1 = GetRepTypes.o
OBJS2 = WidgetSize.o
OBJS3 = gifinfo.o ImBuffer.o
OBJS4 = parse.o miniparse.o
OBJS5 = httpget.o

HTTPLIB= -L../http -lhttp

#if (IHaveZLIB)
OBJS6 = gif2gzf.o LZWStream.o ImBuffer.o
XCOMM
XCOMM list of all targets to make
XCOMM
AllTarget(reptype wsize gifinfo HTMLparse gif2gzf httpget)
#else
AllTarget(reptype wsize gifinfo HTMLparse httpget)
#endif

#if (IHaveZLIB)
XCOMM
XCOMM gif2gzf.c requires the path to the zlib includes
XCOMM
SpecialObjectRule(gif2gzf.o, gif2gzf.c, $(ZLIBINC))

XCOMM
XCOMM LZWStream.c needs a special define for standalone version
XCOMM
ObjectFromSpecialSource(LZWStream, ../src/LZWStream, -DNO_XmHTML)
#endif

XCOMM
XCOMM HTMLParse requires a special compilation rule
XCOMM
ObjectFromSpecialSource(parse, ../src/parse, -DMINIPARSE)

XCOMM
XCOMM Rules for all targets
XCOMM
NormalProgramTarget(reptype,$(OBJS1),$(XDEPLIB),$(LOCAL_LIBRARIES),)
NormalProgramTarget(wsize,$(OBJS2),$(DEPLIB),$(DEFAULT_LIBS),)
NormalProgramTarget(gifinfo,$(OBJS3),$(DEPLIB),$(DEFAULT_LIBS),)
NormalProgramTarget(HTMLparse,$(OBJS4),$(DEPLIB),$(DEFAULT_LIBS),)
NormalProgramTarget(httpget,$(OBJS5),$(DEPLIB),$(DEFAULT_LIBS) $(HTTPLIB),)

#if (IHaveZLIB)
XCOMM
XCOMM gif2gzf requires the zlib libraries.
XCOMM
NormalProgramTarget(gif2gzf,$(OBJS6),$(DEPLIB),$(DEFAULT_LIBS) $(ZLIBLIB),)
#else
XCOMM
XCOMM gif2gzf only available when zlib has been selected in the toplevel
XCOMM XmHTML.cf configuration file.
XCOMM
#endif

DEPEND_DEFINES = -DMINIPARSE -DNO_XmHTML
DependTarget()

XCOMM
XCOMM Special rules for creating a distribution with the barebone makefiles
XCOMM
distclean:: clean 
	$(RM) core *.out *.log make.world *.bak *.last *.auto *.rej *.orig
	$(CP) Makefile.org Makefile

#endif
