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
|
|
|
|
|
|
|
|
DOC_SUBDIR = doc
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support parser \
|
|
|
|
ramdac shadowfb vbe vgahw xaa \
|
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
|
|
|
|
|
|
|
DIST_SUBDIRS = common ddc dummylib 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
|
|
|
|
|
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@
|
|
|
|
|
|
|
|
Xorg_SOURCES = xorg.c
|
|
|
|
|
|
|
|
# libxorgos and libcommon need symbols from each other
|
|
|
|
noinst_LTLIBRARIES = libosandcommon.la
|
|
|
|
libosandcommon_la_SOURCES = osandcommon.c
|
|
|
|
libosandcommon_la_LIBADD = \
|
|
|
|
os-support/libxorgos.la \
|
|
|
|
common/libcommon.la
|
|
|
|
|
|
|
|
osandcommon.c xorg.c:
|
|
|
|
touch $@
|
|
|
|
|
2007-11-24 10:55:21 -07:00
|
|
|
DISTCLEANFILES = osandcommon.c xorg.c
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
XORG_LIBS = \
|
2008-11-02 08:26:08 -07:00
|
|
|
$(XSERVER_LIBS) \
|
2006-11-26 11:13:41 -07:00
|
|
|
common/libinit.a \
|
|
|
|
loader/libloader.a \
|
|
|
|
libosandcommon.la \
|
|
|
|
parser/libxf86config.a \
|
|
|
|
dixmods/libdixmods.la \
|
2007-11-24 10:55:21 -07:00
|
|
|
modes/libxf86modes.a \
|
|
|
|
ramdac/libramdac.a \
|
|
|
|
ddc/libddc.a \
|
|
|
|
i2c/libi2c.a \
|
2008-11-02 08:26:08 -07:00
|
|
|
dixmods/libxorgxkb.la \
|
|
|
|
$(top_builddir)/mi/libmi.la \
|
|
|
|
$(top_builddir)/os/libos.la \
|
|
|
|
@XORG_LIBS@ \
|
|
|
|
dixmods/libxorgxkb.la
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
Xorg_DEPENDENCIES = $(XORG_LIBS)
|
|
|
|
Xorg_LDADD = $(XORG_LIBS) $(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
|
|
|
|
|
|
|
|
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:
|
|
|
|
cd os-support/solaris ; make 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
|
|
|
|
|
|
|
|
optionsdir = $(libdir)/X11
|
|
|
|
dist_options_DATA = Options
|
|
|
|
|
|
|
|
CPP_FILES_FLAGS = \
|
|
|
|
-DLOCALFONTPATH="\"$(BASE_FONT_PATH)/local\"" \
|
|
|
|
-DMISCFONTPATH="\"$(BASE_FONT_PATH)/misc\"" \
|
|
|
|
-DT1FONTPATH="\"$(BASE_FONT_PATH)/Type1\"" \
|
|
|
|
-DTRUETYPEFONTPATH="\"$(BASE_FONT_PATH)/TTF\"" \
|
|
|
|
-DDPI75FONTPATH="\"$(BASE_FONT_PATH)/75dpi\"" \
|
|
|
|
-DDPI100FONTPATH="\"$(BASE_FONT_PATH)/100dpi\"" \
|
|
|
|
-DMODULEPATH=\"$(DEFAULT_MODULE_PATH)\"
|
|
|
|
|
|
|
|
relink:
|
|
|
|
rm -f Xorg && $(MAKE) Xorg
|
|
|
|
|
|
|
|
xorg.conf.example.pre: xorgconf.cpp
|
|
|
|
cp $(srcdir)/xorgconf.cpp $@
|