# BuildSystemHeader added automatically
/**/# $Header: [Imakefile,v 1.2.1.5 91/10/31 13:40:14 yip Exp ]$
#define IHaveSubdirs
# include	"DPS.tmpl"

/*
 * based on Imakefile.v3,v 1.1 91/04/09 13:49:15 mmeyer,. added smt
 */
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
#ifdef XTRAP
XTRAPDIR = xtrap
#else
XTRAPDIR = /* nothing */
#endif
#if HasInputExtension
      SUBDIRS = xinput $(XTRAPDIR) smt
#else
      SUBDIRS = $(XTRAPDIR) smt
#endif


IMAKE_DEFINES = ExtensionDefines

#ifdef MITSHM
      SHMSRCS = XShm.c
      SHMOBJS = XShm.o
#else
      SHMSRCS = /* nothing */
      SHMOBJS = /* nothing */
#endif
  STD_DEFINES = LibraryDefines ExtensionDefines -DOS=os_ultrix -DIHaveSMT
  CDEBUGFLAGS = LibraryCDebugFlags
     INCLUDES = -I$(TOP) -I$(INCLUDESRC) -I$(XLIBSRC) \
		-I../include -I$(PSINCLUDEDIR) -I../ip SMTDefineInc
         SRCS = globals.c extutil.c XMultibuf.c XShape.c $(SHMSRCS)  \
		MITMisc.c XDPS.c XDPSops.psw XTestExt1.c cmu.c
         OBJS = globals.o extutil.o XMultibuf.o XShape.o $(SHMOBJS) \
		MITMisc.o XTestExt1.o XDPS.o XDPSops.o cmu.o
     LINTLIBS = $(LINTXLIB)
     DPSHEADERS = XDPSlib.h


includes::
	-(cd $(DEC_TOP)/lib/X; $(LN) . X11)

#if DebugLibXext && ProfileLibXext
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugLibXext
DebuggedLibraryObjectRule()
# else
#  if ProfileLibXext
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

NormalLibraryTarget(Xext,$(OBJS))
LintLibraryTarget(Xext,$(SRCS))
InstallLibrary(Xext,$(USRLIBDIR))

#if DoInstallExtensionsIntoXlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libX11.a,libXext.a)
#endif

InstallLintLibrary(Xext,$(LINTLIBDIR))

MakeDirectories(install, $(DPSINCLDIR))

InstallMultiple($(DPSHEADERS),$(DPSINCLDIR))

#if ProfileLibXext
ProfiledLibraryTarget(Xext,$(OBJS))
InstallLibrary(Xext_p,$(USRLIBDIR))
#if DoInstallExtensionsIntoXlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libX11_p.a,libXext_p.a)
#endif
#endif

#if DebugLibXext
DebuggedLibraryTarget(Xext,$(OBJS))
InstallLibrary(Xext_d,$(USRLIBDIR))
#if DoInstallExtensionsIntoXlib
MergeIntoInstalledLibrary($(USRLIBDIR)/libX11_d.a,libXext_d.a)
#endif
#endif

#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

DependTarget()

NormalLintTarget($(SRCS))
