2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
if DRI
|
|
|
|
DRI_SUBDIR = dri
|
2013-06-07 11:28:45 -06:00
|
|
|
DRI_LIB = dri/libdri.la
|
2006-11-26 11:13:41 -07:00
|
|
|
endif
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
if DRI2
|
|
|
|
DRI2_SUBDIR = dri2
|
2013-06-07 11:28:45 -06:00
|
|
|
DRI2_LIB = dri2/libdri2.la
|
2008-11-02 08:26:08 -07:00
|
|
|
endif
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
if DRI3
|
|
|
|
DRI3_BUILDDIR = $(top_builddir)/dri3
|
|
|
|
DRI3_LIB = $(DRI3_BUILDDIR)/libdri3.la
|
|
|
|
endif
|
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
if GLAMOR_EGL
|
|
|
|
GLAMOR_EGL_SUBDIR = glamor_egl
|
|
|
|
endif
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
if XF86UTILS
|
|
|
|
XF86UTILS_SUBDIR = utils
|
|
|
|
endif
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
if VGAHW
|
|
|
|
VGAHW_SUBDIR = vgahw
|
|
|
|
endif
|
|
|
|
|
|
|
|
if VBE
|
|
|
|
VBE_SUBDIR = vbe
|
|
|
|
endif
|
|
|
|
|
|
|
|
if INT10MODULE
|
|
|
|
INT10_SUBDIR = int10
|
|
|
|
endif
|
|
|
|
|
2013-06-07 11:28:45 -06:00
|
|
|
SUBDIRS = common ddc x86emu $(INT10_SUBDIR) os-support parser \
|
|
|
|
ramdac $(VGAHW_SUBDIR) loader modes $(DRI_SUBDIR) \
|
|
|
|
$(DRI2_SUBDIR) . $(VBE_SUBDIR) i2c dixmods \
|
2014-09-27 11:52:59 -06:00
|
|
|
fbdevhw shadowfb exa $(XF86UTILS_SUBDIR) doc man \
|
2015-09-16 13:10:19 -06:00
|
|
|
$(GLAMOR_EGL_SUBDIR) drivers
|
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 \
|
2013-06-07 11:28:45 -06:00
|
|
|
parser ramdac shadowfb vbe vgahw \
|
2011-11-05 07:32:40 -06:00
|
|
|
loader dixmods dri dri2 exa modes \
|
2015-09-16 13:10:19 -06:00
|
|
|
utils doc man glamor_egl drivers
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
bin_PROGRAMS = Xorg
|
2011-11-05 07:32:40 -06:00
|
|
|
nodist_Xorg_SOURCES = sdksyms.c
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
|
2016-05-29 06:02:34 -06:00
|
|
|
AM_CPPFLAGS = $(XORG_INCS) -I$(srcdir)/parser \
|
2013-06-07 11:28:45 -06:00
|
|
|
-I$(srcdir)/ddc -I$(srcdir)/i2c -I$(srcdir)/modes -I$(srcdir)/ramdac \
|
2014-05-02 13:27:46 -06:00
|
|
|
-I$(srcdir)/dri -I$(srcdir)/dri2 -I$(top_srcdir)/dri3
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
LOCAL_LIBS = \
|
|
|
|
$(MAIN_LIB) \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(XSERVER_LIBS) \
|
|
|
|
loader/libloader.la \
|
|
|
|
common/libcommon.la \
|
2011-11-05 07:32:40 -06:00
|
|
|
os-support/libxorgos.la \
|
2016-05-29 06:02:34 -06:00
|
|
|
parser/libxf86config.la \
|
2010-07-27 13:02:24 -06:00
|
|
|
dixmods/libdixmods.la \
|
|
|
|
modes/libxf86modes.la \
|
|
|
|
ramdac/libramdac.la \
|
|
|
|
ddc/libddc.la \
|
|
|
|
i2c/libi2c.la \
|
2011-11-05 07:32:40 -06:00
|
|
|
$(XORG_LIBS) \
|
2013-06-07 11:28:45 -06:00
|
|
|
dixmods/libxorgxkb.la \
|
|
|
|
$(DRI_LIB) \
|
|
|
|
$(DRI2_LIB) \
|
2014-05-02 13:27:46 -06:00
|
|
|
$(DRI3_LIB) \
|
|
|
|
$(top_builddir)/miext/sync/libsync.la \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(top_builddir)/mi/libmi.la \
|
2016-05-29 06:02:34 -06:00
|
|
|
$(top_builddir)/os/libos.la \
|
|
|
|
$(top_builddir)/Xext/libXvidmode.la
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
Xorg_LDADD = \
|
|
|
|
$(LOCAL_LIBS) \
|
|
|
|
$(XORG_SYS_LIBS) \
|
|
|
|
$(XSERVER_SYS_LIBS)
|
|
|
|
Xorg_DEPENDENCIES = $(LOCAL_LIBS)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
if SUID_WRAPPER
|
|
|
|
wrapdir = $(SUID_WRAPPER_DIR)
|
|
|
|
wrap_PROGRAMS = Xorg.wrap
|
|
|
|
Xorg_wrap_SOURCES = xorg-wrapper.c
|
|
|
|
endif
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
BUILT_SOURCES = xorg.conf.example
|
2011-11-05 07:32:40 -06:00
|
|
|
DISTCLEANFILES = xorg.conf.example
|
2006-11-26 11:13:41 -07:00
|
|
|
EXTRA_DIST = xorgconf.cpp
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
# Without logdir, X will post an error on the terminal and will not start
|
2006-11-26 11:13:41 -07:00
|
|
|
install-data-local:
|
2014-05-02 13:27:46 -06:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(DESTDIR)$(logdir)
|
|
|
|
if CYGWIN
|
|
|
|
$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
|
|
|
|
endif
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
install-exec-hook:
|
|
|
|
(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
|
2006-11-26 11:13:41 -07:00
|
|
|
if INSTALL_SETUID
|
|
|
|
chown root $(DESTDIR)$(bindir)/Xorg
|
|
|
|
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
|
|
|
endif
|
2014-09-27 11:52:59 -06:00
|
|
|
if SUID_WRAPPER
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(SUID_WRAPPER_DIR)
|
2015-09-16 13:10:19 -06:00
|
|
|
mv $(DESTDIR)$(bindir)/Xorg $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg
|
2014-09-27 11:52:59 -06:00
|
|
|
${INSTALL} -m 755 Xorg.sh $(DESTDIR)$(bindir)/Xorg
|
|
|
|
-chown root $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap && chmod u+s $(DESTDIR)$(SUID_WRAPPER_DIR)/Xorg.wrap
|
|
|
|
endif
|
2014-05-02 13:27:46 -06:00
|
|
|
|
|
|
|
uninstall-local:
|
2013-06-07 11:28:45 -06:00
|
|
|
if CYGWIN
|
2014-05-02 13:27:46 -06:00
|
|
|
$(AM_V_at)rm -f $(DESTDIR)$(libdir)/libXorg.exe.a
|
2013-06-07 11:28:45 -06:00
|
|
|
endif
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
uninstall-hook:
|
|
|
|
$(AM_V_at)rm -f $(DESTDIR)$(bindir)/X
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
# Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
|
|
|
|
# Do not include manpages.am as values are not appropriate for rc files
|
|
|
|
CONF_SUBSTS = -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' \
|
|
|
|
-e 's|MODULEPATH|$(DEFAULT_MODULE_PATH)|g' \
|
|
|
|
-e 's|DEFAULTFONTPATH|$(COMPILEDDEFAULTFONTPATH)|g'
|
|
|
|
|
|
|
|
xorg.conf.example: xorgconf.cpp
|
|
|
|
$(AM_V_GEN)$(SED) $(CONF_SUBSTS) < $(srcdir)/xorgconf.cpp > $@
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
relink:
|
2013-06-07 11:28:45 -06:00
|
|
|
$(AM_V_at)rm -f Xorg$(EXEEXT) && $(MAKE) Xorg$(EXEEXT)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
CLEANFILES = sdksyms.c sdksyms.dep Xorg.sh
|
2011-11-05 07:32:40 -06:00
|
|
|
EXTRA_DIST += sdksyms.sh
|
|
|
|
|
|
|
|
sdksyms.dep sdksyms.c: sdksyms.sh
|
2014-05-02 13:27:46 -06:00
|
|
|
$(AM_V_GEN)CPP='$(CPP)' AWK='$(AWK)' $(SHELL) $(srcdir)/sdksyms.sh $(top_srcdir) $(CFLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS)
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
SDKSYMS_DEP = sdksyms.dep
|
2014-10-20 00:14:23 -06:00
|
|
|
-include $(SDKSYMS_DEP)
|
2013-06-07 11:28:45 -06:00
|
|
|
|
|
|
|
i2c/libi2c.la:
|
|
|
|
$(AM_V_at)cd i2c && $(MAKE) libi2c.la
|
|
|
|
|
|
|
|
dixmods/libdixmods.la:
|
|
|
|
$(AM_V_at)cd dixmods && $(MAKE) libdixmods.la
|
|
|
|
|
|
|
|
dixmods/libxorgxkb.la:
|
|
|
|
$(AM_V_at)cd dixmods && $(MAKE) libxorgxkb.la
|