summaryrefslogtreecommitdiff
path: root/hw/xnest
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-01-18 15:23:57 +1100
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2007-02-05 03:43:10 +0200
commit17d85387d1e6851d35474b65929e268ca64ef65b (patch)
treefb946f657fc5b68abd6be1f83555a73607c2d6b0 /hw/xnest
parent236f04b638e7d4d1656c6bedd8a6e8d7cec285ec (diff)
dmx, vfb, xnest: fix fbcmap compilation
Don't always define XFree86Server, but only for damn fbcmap.c. Split fbcmap.c into its own library to achieve this.
Diffstat (limited to 'hw/xnest')
-rw-r--r--hw/xnest/Makefile.am22
1 files changed, 11 insertions, 11 deletions
diff --git a/hw/xnest/Makefile.am b/hw/xnest/Makefile.am
index cce1fef94..b89761651 100644
--- a/hw/xnest/Makefile.am
+++ b/hw/xnest/Makefile.am
@@ -1,4 +1,10 @@
bin_PROGRAMS = Xnest
+noinst_LIBRARIES = libfbcmap.a
+
+AM_CFLAGS = -DHAVE_XNEST_CONFIG_H \
+ -DNO_HW_ONLY_EXTS \
+ $(DIX_CFLAGS) \
+ $(XNESTMODULES_CFLAGS)
SRCS = Args.c \
Args.h \
@@ -37,23 +43,17 @@ SRCS = Args.c \
xnest-config.h \
$(top_srcdir)/Xext/dpmsstubs.c \
$(top_srcdir)/Xi/stubs.c \
- $(top_srcdir)/mi/miinitext.c \
- $(top_srcdir)/fb/fbcmap.c
+ $(top_srcdir)/mi/miinitext.c
+libfbcmap_a_SOURCES = $(top_srcdir)/fb/fbcmap.c
+libfbcmap_a_CFLAGS = $(AM_CFLAGS) -DXFree86Server
Xnest_SOURCES = $(SRCS)
Xnest_LDADD = $(XORG_CORE_LIBS) \
$(XNEST_LIBS) \
- $(XNESTMODULES_LIBS)
-
-Xnest_LDFLAGS =
-
-AM_CFLAGS = -DHAVE_XNEST_CONFIG_H \
- -DNO_HW_ONLY_EXTS \
- -DXFree86Server \
- $(DIX_CFLAGS) \
- $(XNESTMODULES_CFLAGS)
+ $(XNESTMODULES_LIBS) \
+ libfbcmap.a
EXTRA_DIST = os2Stub.c \
icon \