XCOMM $XFree86: mit/extensions/server/Imakefile,v 1.6 1993/03/27 08:57:10 dawes Exp $
XCOMM $XConsortium: Imakefile,v 5.15.1.1 92/09/09 15:32:22 rws Exp $
#include <Server.tmpl>

#if BuildXInputExt || BuildPexExt || BuildPexClients
#define IHaveSubdirs
#endif

#if BuildXInputExt
  XINPUTDIRS = xinput
#endif
#if BuildPexExt
  PEXDIRS = PEX
#else
#if BuildPexClients
  PEXDIRS = PEX/dipex/swap
#endif
#endif
#if HasShm
  SHMSRCS = shm.c
  SHMOBJS = shm.o
#endif
       SRCS = shape.c $(SHMSRCS) multibuf.c mitmisc.c sleepuntil.c xtest.c xtest1di.c xtest1dd.c
       OBJS = shape.o $(SHMOBJS) multibuf.o mitmisc.o sleepuntil.o xtest.o xtest1di.o xtest1dd.o
   INCLUDES = -I../include -I$(INCLUDESRC) -I$(SERVERSRC)/include
   LINTLIBS = ../../server/dix/llib-ldix.ln ../../server/os/4.2bsd/llib-los.ln
        SUBDIRS = $(XINPUTDIRS) $(PEXDIRS)

NormalLibraryObjectRule()
NormalLibraryTarget(ext,$(OBJS))
LintLibraryTarget(ext,$(SRCS))
NormalLintTarget($(SRCS))

InstallLinkKitLibrary(ext,$(LINKKITDIR)/lib)

DependTarget()

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

#if HasSaberC
saber_src:
	/**/#load $(CFLAGS) $(SRCS)
#endif
