#include "defines.imake"

  STD_DEFINES = StandardDefines -D$(WIDGETSET)

/*
 * /usr/local/src/lib/X.V11R4/mit/lib/Xt/IntrinsicI.h is used by
 * xtent_init.c and Converters.c.  In xtent_init.c it can be avoided
 * by setting USE_XTDEFAULTAPPCONTEXT.  This bit of code is used to
 * patch up the process -> defaultAppContext being initialiezed to NULL.
 *
 * Converters.c is a copy of the file from lib/Xt touched up to help
 * with colors, etc.
 */

HEADERS = \
	CreateTile.h \
	xtent.h \
	xtent_quark.h \
	xtent_wdgts.h

SRCS = \
	CreateTile.c \
	ExpandFile.c \
	HPResConvert.c \
	XGetPoints.c \
	hs.regexp.c \
	xtent.c \
	xtent_init.c \
	xtent_tif.c \
	xtent_cvt.c \
	xtent_quark.c \
	xtent_wdgts.c \
	xtent_error.c \
	xtent_signal.c \
	xtent_xipc.c \
	xtent_data.c \
	xtent_name.c \
	xtent_popen.c

OBJS = \
	CreateTile.o \
	ExpandFile.o \
	HPResConvert.o \
	XGetPoints.o \
	XtDragWidget.o \
	hs.regexp.o \
	xtent.o \
	xtent_init.o \
	xtent_tif.o \
	xtent_cvt.o \
	xtent_quark.o \
	xtent_wdgts.o \
	xtent_error.o \
	xtent_signal.o \
	xtent_xipc.o \
	xtent_data.o \
	xtent_name.o \
	xtent_popen.o

NormalLibraryTarget(xtent,$(OBJS))
LintLibraryTarget(xtent,$(SRCS))
InstallLibrary(xtent,$(CPLIBDIR))
InstallLintLibrary(xtent,$(LINTLIBDIR))

BuildIncludes($(HEADERS),xtent,..)

MakeDirectories(install,$(CPINCDIR)/xtent)

InstallMultiple($(HEADERS),$(CPINCDIR)/xtent)

DependTarget()

NormalLintTarget($(SRCS))
