summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/drv/i810/Imakefile
blob: 5f1d93072896ee83fb2cd892e9ed1e080cf735d2 (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

#define DoNormalLib NormalLibGlx
#define DoSharedLib SharedLibGlx
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx

#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

#if BuildXF86DRI
  DRI_DEFINES = GlxDefines -DFX -DFX_GLIDE3 -DGLIDE3 -DDRIVERTS
 DRI_INCLUDES = -I../../../../dri -I../../../../glx \
		-I$(TOP)/include -I$(TOP)/include/GL \
		-I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri \
		-I$(XF86DRIVERSRC)/i810 \
		-I../../../include -I../.. -I../../X
#endif

MESA_INCLUDES = -I. -I.. -I../../include



      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES)
     INCLUDES = -I$(XLIBSRC) -I$(EXTINCSRC) $(MESA_INCLUDES) $(DRI_INCLUDES) \
		-I/usr/include/glide
      DRISRCS = i810_init.c i810_inithw.c i810_xmesa.c i810clear.c	\
		i810context.c i810dd.c i810depth.c i810dma.c		\
		i810pipeline.c i810span.c i810state.c i810swap.c	\
		i810tex.c i810tris.c i810vb.c

      DRIOBJS = i810_init.o i810_inithw.o i810_xmesa.o i810clear.o	\
		i810context.o i810dd.o i810depth.o i810dma.o		\
		i810pipeline.o i810span.o i810state.o i810swap.o	\
		i810tex.o i810tris.o i810vb.o

	 SRCS = $(DRISRCS) 
	 OBJS = $(DRIOBJS) 

#if !GlxUseBuiltInDRIDriver
#undef DoNormalLib NormalLibGlx
#undef DoExtraLib SharedLibGlx
#undef DoDebugLib DebugLibGlx
#undef DoProfileLib ProfileLibGlx
#endif

#include <Library.tmpl>

LibraryObjectRule()

SubdirLibraryRule($(OBJS))
NormalLintTarget($(SRCS))

#if !GlxUseBuiltInDRIDriver
LIBNAME = i810_dri.so
ALL_OBJS = $(OBJS)
ALL_DEPS = DONE
SharedDepModuleTarget($(LIBNAME),$(ALL_DEPS),$(ALL_OBJS))
InstallDynamicModule($(LIBNAME),$(MODULEDIR),.)
#endif

DependTarget()