2006-11-26 11:13:41 -07:00
|
|
|
include $(top_srcdir)/cpprules.in
|
|
|
|
|
|
|
|
if DRI
|
|
|
|
DRI_SUBDIR = dri
|
|
|
|
endif
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
if DRI2
|
|
|
|
DRI2_SUBDIR = dri2
|
|
|
|
endif
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
if XF86UTILS
|
|
|
|
XF86UTILS_SUBDIR = utils
|
|
|
|
endif
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
if XAA
|
|
|
|
XAA_SUBDIR = xaa
|
|
|
|
endif
|
|
|
|
|
|
|
|
if VGAHW
|
|
|
|
VGAHW_SUBDIR = vgahw
|
|
|
|
endif
|
|
|
|
|
|
|
|
if VBE
|
|
|
|
VBE_SUBDIR = vbe
|
|
|
|
endif
|
|
|
|
|
|
|
|
if INT10MODULE
|
|
|
|
INT10_SUBDIR = int10
|
|
|
|
endif
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
DOC_SUBDIR = doc
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
SUBDIRS = common ddc i2c x86emu $(INT10_SUBDIR) fbdevhw os-support parser \
|
|
|
|
ramdac shadowfb $(VBE_SUBDIR) $(VGAHW_SUBDIR) $(XAA_SUBDIR) \
|
2008-11-02 08:26:08 -07:00
|
|
|
xf8_16bpp loader dixmods exa modes \
|
|
|
|
$(DRI_SUBDIR) $(DRI2_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
DIST_SUBDIRS = common ddc i2c x86emu int10 fbdevhw os-support \
|
2009-09-06 13:44:18 -06:00
|
|
|
parser ramdac shadowfb vbe vgahw xaa \
|
|
|
|
xf8_16bpp loader dixmods dri dri2 exa modes \
|
2006-11-26 11:13:41 -07:00
|
|
|
utils doc
|
|
|
|
|
|
|
|
bin_PROGRAMS = Xorg
|
2010-07-27 13:02:24 -06:00
|
|
|
Xorg_SOURCES = xorg.c
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
|
2006-11-26 11:13:41 -07:00
|
|
|
INCLUDES = @XORG_INCS@
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
noinst_LTLIBRARIES = libxorg.la
|
|
|
|
libxorg_la_SOURCES = libxorg.c
|
|
|
|
libxorg_la_LIBADD = \
|
|
|
|
$(XSERVER_LIBS) \
|
|
|
|
loader/libloader.la \
|
2006-11-26 11:13:41 -07:00
|
|
|
os-support/libxorgos.la \
|
2010-07-27 13:02:24 -06:00
|
|
|
common/libcommon.la \
|
|
|
|
parser/libxf86config_internal.la \
|
|
|
|
dixmods/libdixmods.la \
|
|
|
|
modes/libxf86modes.la \
|
|
|
|
ramdac/libramdac.la \
|
|
|
|
ddc/libddc.la \
|
|
|
|
i2c/libi2c.la \
|
|
|
|
dixmods/libxorgxkb.la \
|
|
|
|
$(top_builddir)/mi/libmi.la \
|
|
|
|
$(top_builddir)/os/libos.la \
|
|
|
|
@XORG_LIBS@
|
|
|
|
|
|
|
|
libxorg_la_DEPENDENCIES = $(libxorg_la_LIBADD)
|
|
|
|
|
|
|
|
libxorg.c xorg.c:
|
2006-11-26 11:13:41 -07:00
|
|
|
touch $@
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
DISTCLEANFILES = libxorg.c xorg.c
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
Xorg_DEPENDENCIES = libxorg.la
|
|
|
|
Xorg_LDADD = $(MAIN_LIB) libxorg.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
|
|
|
|
|
|
|
BUILT_SOURCES = xorg.conf.example
|
2007-11-24 10:55:21 -07:00
|
|
|
DISTCLEANFILES += xorg.conf.example xorg.conf.example.pre
|
2006-11-26 11:13:41 -07:00
|
|
|
EXTRA_DIST = xorgconf.cpp
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
if SPECIAL_DTRACE_OBJECTS
|
|
|
|
# Re-add dtrace object code that gets lost when building static libraries
|
|
|
|
Xorg_LDADD += $(XSERVER_LIBS)
|
|
|
|
endif
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
if SOLARIS_ASM_INLINE
|
|
|
|
# Needs to be built before any files are compiled when using Sun compilers
|
|
|
|
# so in*/out* inline definitions are properly processed.
|
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il:
|
2010-07-27 13:02:24 -06:00
|
|
|
cd os-support/solaris ; \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) solaris-@SOLARIS_INOUT_ARCH@.il
|
2006-11-26 11:13:41 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
# do not use $(mkdir_p) if you want automake 1.7 to work
|
|
|
|
install-data-local:
|
|
|
|
mkdir -p $(DESTDIR)$(logdir)
|
|
|
|
|
|
|
|
|
|
|
|
install-exec-local: install-binPROGRAMS
|
|
|
|
(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
|
|
|
|
if INSTALL_SETUID
|
|
|
|
chown root $(DESTDIR)$(bindir)/Xorg
|
|
|
|
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
|
|
|
endif
|
|
|
|
|
|
|
|
CPP_FILES_FLAGS = \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(MANDEFS) \
|
|
|
|
-DDEFAULTFONTPATH="\"$(COMPILEDDEFAULTFONTPATH)\"" \
|
2006-11-26 11:13:41 -07:00
|
|
|
-DMODULEPATH=\"$(DEFAULT_MODULE_PATH)\"
|
|
|
|
|
|
|
|
relink:
|
2010-07-27 13:02:24 -06:00
|
|
|
$(AM_V_at)rm -f Xorg && $(MAKE) Xorg
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
xorg.conf.example.pre: xorgconf.cpp
|
|
|
|
cp $(srcdir)/xorgconf.cpp $@
|