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 On some systems, imake automatically includes Motif.tmpl, on others
XCOMM it doesn't.
XCOMM
#ifndef MotifDefines
#include
#endif
XCOMM Include the XmHTML configuration file
#include "../XmHTML.cf"
XCOMM
XCOMM Use the Debug version of libXmHTML if it exists, else use static lib.
XCOMM
#if DebugLibXmHTML
XMHTMLLIB = $(TOP)/src/libXmHTML_d.a
#else
#if SharedLibXmHTML
XMHTMLLIB = -L$(TOP)/src -lXmHTML
#else
XMHTMLLIB = $(TOP)/src/libXmHTML.a
#endif
#endif
INCLUDES = -I$(TOP)/src $(DMALLOCINC)
DEPLIBS = $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
XCOMM required libraries
LOCAL_LIBRARIES = $(XMHTMLLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) $(DMALLOCLIB)
XCOMM common routines for all examples
XCOMM
MSRCS = visual.c misc.c cache.c debug_menu.c
MOBJS = visual.o misc.o cache.o debug_menu.o
SRCS = example_1.c example_2.c example_3.c
OBJS1 = example_1.o
OBJS2 = example_2.o $(MOBJS)
OBJS3 = example_3.o
AllTarget(example_1 example_2 example_3)
NormalProgramTarget(example_1,$(OBJS1),$(DEPLIB),$(LOCAL_LIBRARIES),)
NormalProgramTarget(example_2,$(OBJS2),$(DEPLIB),$(LOCAL_LIBRARIES),)
NormalProgramTarget(example_3,$(OBJS3),$(DEPLIB),$(LOCAL_LIBRARIES),)
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