xserver-multidpi/hw/xfree86/parser/Makefile.am
Dan Nicholson 60801ff870 xfree86: Convert libxf86config to static libtool library
In order to use libxf86config in a shared library, all the code must be
compiled with -fPIC. Add proper PIC support for libxf86config by turning
it into a libtool library. However, since we don't want to guarantee API
or ABI stability, make sure it's only built static.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-08 08:42:33 -08:00

53 lines
891 B
Makefile

if INSTALL_LIBXF86CONFIG
noinst_LTLIBRARIES = libxf86config_internal.la
lib_LTLIBRARIES = libxf86config.la
LIBHEADERS = \
xf86Optrec.h \
xf86Parser.h
else
noinst_LTLIBRARIES = libxf86config_internal.la
endif
INTERNAL_SOURCES= \
Device.c \
Files.c \
Flags.c \
Input.c \
InputClass.c \
Layout.c \
Module.c \
Video.c \
Monitor.c \
Pointer.c \
Screen.c \
Vendor.c \
read.c \
scan.c \
write.c \
DRI.c \
Extensions.c
libxf86config_internal_la_SOURCES = \
$(INTERNAL_SOURCES)
libxf86config_la_SOURCES = \
$(top_srcdir)/os/xprintf.c \
$(INTERNAL_SOURCES)
libxf86config_la_CFLAGS = $(AM_CFLAGS)
libxf86config_la_LDFLAGS = -static
AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATADIR=\"$(datadir)\"
EXTRA_DIST = \
Configint.h \
configProcs.h \
xf86Optrec.h \
xf86Parser.h \
xf86tokens.h
sdk_HEADERS = \
xf86Parser.h \
xf86Optrec.h