XCOMM $XdotOrg: xc/lib/Xxf86dga/Imakefile,v 1.3 2005/10/18 14:58:52 alanc Exp $
XCOMM $XFree86: xc/lib/Xxf86dga/Imakefile,v 3.6 2003/05/05 20:42:30 tsi Exp $

#define DoNormalLib NormalLibXxf86dga
#define DoSharedLib SharedLibXxf86dga
#define DoExtraLib SharedLibXxf86dga
#define DoDebugLib DebugLibXxf86dga
#define DoProfileLib ProfileLibXxf86dga
#define LibName Xxf86dga
#define SoRev SOXXF86DGAREV
#define LibHeaders NO

#include <Threads.tmpl>

#ifdef SharedXxf86dgaReqs
REQUIREDLIBS = SharedXxf86dgaReqs
#endif

XF86DGASRCS = XF86DGA.c XF86DGA2.c
XF86DGAOBJS = XF86DGA.o XF86DGA2.o

#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

#if defined(HasNetBSDApertureDriver) && HasNetBSDApertureDriver
APERTURE_DEFINES = -DHAS_APERTURE_DRV
#endif

      DEFINES = $(ALLOC_DEFINES) $(APERTURE_DEFINES)
         SRCS = $(XF86DGASRCS)
         OBJS = $(XF86DGAOBJS)
     LINTLIBS = $(LINTXLIB)

#define IncludeSharedObjectInNormalLib

#include <Library.tmpl>

InstallGenManPage(XDGA,$(LIBMANDIR),$(LIBMANSUFFIX))
#if ExpandManNames
DGAFUNCS = XDGAQueryExtension \
	   XDGAQueryVersion \
	   XDGAQueryModes \
	   XDGASetMode \
	   XDGAOpenFramebuffer \
	   XDGACloseFramebuffer \
	   XDGASetViewport \
	   XDGAInstallColormap \
	   XDGACreateColormap \
	   XDGASelectInput \
	   XDGAFillRectangle \
	   XDGACopyArea \
	   XDGACopyTransparentArea \
	   XDGAGetViewportStatus \
	   XDGASync \
	   XDGASetClientVersion \
	   XDGAChangePixmapMode \
	   XDGAKeyEventToXKeyEvent

InstallGenManPageAliases(XDGA,$(LIBMANDIR),$(LIBMANSUFFIX),XF86DGA XFree86-DGA $(DGAFUNCS))
#endif

DependTarget()