summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-15 10:32:34 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-16 22:15:39 +0000
commit3771387ad11b5842a83e58a4b373c2acdd827bd2 (patch)
tree59da2bf679d2cae00ebdd6d720fab2a835b39649 /src/Makefile.am
parentedbeab8c4edf9e0e89d85add485fe659795b6350 (diff)
Compile out UXA if so desired
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cd1bb36e..e5097daf 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,13 +27,12 @@ SUBDIRS = xvmc render_program legacy
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @UDEV_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
- @PCIACCESS_CFLAGS@ -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program
+ @PCIACCESS_CFLAGS@
intel_drv_la_LTLIBRARIES = intel_drv.la
intel_drv_la_LDFLAGS = -module -avoid-version
intel_drv_ladir = @moduledir@/drivers
-intel_drv_la_LIBADD = @UDEV_LIBS@ -lm @DRM_LIBS@ -ldrm_intel ../uxa/libuxa.la legacy/liblegacy.la
-intel_drv_la_LIBADD += @PCIACCESS_LIBS@
+intel_drv_la_LIBADD = legacy/liblegacy.la @PCIACCESS_LIBS@
if SNA
SUBDIRS += sna
@@ -43,11 +42,17 @@ endif
NULL:=#
intel_drv_la_SOURCES = \
+ intel_module.c \
+ $(NULL)
+
+if UXA
+AM_CFLAGS += -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program
+intel_drv_la_LIBADD += @UDEV_LIBS@ @DRM_LIBS@ -ldrm_intel ../uxa/libuxa.la
+intel_drv_la_SOURCES += \
brw_defines.h \
brw_structs.h \
common.h \
intel.h \
- intel_module.c \
intel_batchbuffer.c \
intel_batchbuffer.h \
intel_display.c \
@@ -87,3 +92,4 @@ intel_drv_la_SOURCES += \
intel_hwmc.c \
$(NULL)
endif
+endif