aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile
blob: 342ffd2480902be6e127539c8b8e5c551196f854 (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
XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mach64/Imakefile,v 1.23tsi 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

#define MesaDrvCommonBuildDir ../common/
#include "../common/Imakefile.inc"
#include "../../../array_cache/Imakefile.inc"
#include "../../../main/Imakefile.inc"
#include "../../../math/Imakefile.inc"
#include "../../../shader/Imakefile.inc"
#include "../../../shader/grammar/Imakefile.inc"
#include "../../../shader/slang/Imakefile.inc"
#include "../../../shader/slang/library/Imakefile.inc"
#include "../../../swrast/Imakefile.inc"
#include "../../../swrast_setup/Imakefile.inc"
#include "../../../tnl/Imakefile.inc"
#include "../../../tnl_dd/Imakefile.inc"
#include "../../../Imakefile.inc"
#if defined(i386Architecture) && MesaUseX86Asm
#include "../../../x86/Imakefile.inc"
#endif
#ifdef SparcArchitecture
#include "../../../sparc/Imakefile.inc"
#endif
#define NeedToLinkMesaSrc
#include "Imakefile.inc"

      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)

     INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)

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

         SRCS = $(Mach64SRCS)
         OBJS = $(DRMOBJS) $(COREMESAOBJS) \
		$(MESA_ASM_OBJS) $(COMMONOBJS) $(Mach64OBJS) 

REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB)

#include <Library.tmpl>

LibraryObjectRule()

SubdirLibraryRule($(Mach64OBJS))
NormalLintTarget($(SRCS))

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

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

DependTarget()