XCOMM
XCOMM Imakefile for XmHTML examples
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
#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

XCOMM
XCOMM Use the Debug version of libXmHTML if it exists, else use static lib.
XCOMM

#if DebugLibXmHTML
   XMHTMLLIB = $(BUILDINCTOP)/src/libXmHTML_d.a
   DEPLIB    = $(XMHTMLLIB)
#else
#if SharedLibXmHTML
   XMHTMLLIB = -L$(BUILDINCTOP)/src -lXmHTML
#else
   XMHTMLLIB = $(BUILDINCTOP)/src/libXmHTML.a
   DEPLIB    = $(XMHTMLLIB)
#endif
#endif
XCOMM    INCLUDES = -I$(BUILDINCTOP)/include $(DMALLOCINC)
     DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)

XCOMM
XCOMM Richard's http client-side library (used by example_4)
XCOMM
HTTPLIB = -L$(BUILDINCTOP)/http -lhttp

XCOMM required libraries
LOCAL_LIBS = $(XMHTMLLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) $(DMALLOCLIB)

XCOMM common routines for all examples
XCOMM

MSRCS = visual.c misc.c cache.c menu.c
MOBJS = visual.o misc.o cache.o menu.o

SRCS = example_1.c example_2.c example_4.c

OBJS1 = example_1.o
OBJS2 = example_2.o $(MOBJS)
OBJS4 = example_4.o

AllTarget(example_1 example_2 example_4)

NormalProgramTarget(example_1,$(OBJS1),$(DEPLIB),$(LOCAL_LIBS),)
NormalProgramTarget(example_2,$(OBJS2),$(DEPLIB),$(LOCAL_LIBS),)
NormalProgramTarget(example_4,$(OBJS4),$(DEPLIB),$(LOCAL_LIBS) $(HTTPLIB),)
DependTarget()

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

