summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/sis/Imakefile
blob: 11d0966b3985681e0b8ef8087d3faa5e4d59e44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile,v 1.16 2001/04/03 02:29:36 dawes Exp $

#include <Threads.tmpl>

#if GlxUseBuiltInDRIDriver
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx
#else
#define DoNormalLib SharedLibGlxWithoutPIC
#define DoSharedLib !SharedLibGlxWithoutPIC
#define DoExtrasLib NO
#define DoDebugLib NO
#define DoProfileLib NO
#endif

#include "../common/Imakefile.inc"
#include "Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
#endif

XCOMM SIS_DEFINES = -DSIS_USE_HW_CULL -DSIS_USE_FASTPATH
SIS_DEFINES = -DSIS_USE_HW_CULL

XCOMM DEBUG_DEFINES = -DDEBUG_LOCKING
XCOMM DEBUG_DEFINES = -DSIS_DEBUG

      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) \
		$(DEBUG_DEFINES) $(STEREO_DEFINES)
     INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)

      DRIOBJS = $(GLXLIBSRC)/mesa/dri/dri_mesa.o \
		$(GLXLIBSRC)/dri/dri_tmm.o

      DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \
		$(GLXLIBSRC)/dri/drm/xf86drmHash.o \
		$(GLXLIBSRC)/dri/drm/xf86drmRandom.o \
		$(GLXLIBSRC)/dri/drm/xf86drmSL.o

#ifdef GlxSoProf
       LOSRCS = ../../../../lowpc.c
       HISRCS = ../../../../highpc.c

       LOOBJS = ../../../../lowpc.o
       HIOBJS = ../../../../highpc.o
#endif

         SRCS = $(SISSRCS)
         OBJS = $(DRIOBJS) $(DRMOBJS) $(COREMESAOBJS) \
		$(MESA_ASM_OBJS) $(SISOBJS) $(HIOBJS)

REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB)

#include <Library.tmpl>

LibraryObjectRule()

SubdirLibraryRule($(SISOBJS))
NormalLintTarget($(SRCS))

#if !GlxUseBuiltInDRIDriver
LIBNAME = sis_dri.so
SharedDepModuleTarget($(LIBNAME),DONE,$(OBJS))
InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri)

#ifdef GlxSoProf
SOPROF_LIBNAME = _sis_dri_p
NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE,$(OBJS))
InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri)
#endif
#endif

DependTarget()