2006-10-19 20:14:26 +02:00
|
|
|
include $(top_srcdir)/cpprules.in
|
|
|
|
|
2005-07-14 05:32:09 +02:00
|
|
|
if DRI
|
|
|
|
DRI_SUBDIR = dri
|
|
|
|
endif
|
|
|
|
|
2008-02-04 17:58:24 +01:00
|
|
|
if DRI2
|
|
|
|
DRI2_SUBDIR = dri2
|
|
|
|
endif
|
|
|
|
|
2006-09-22 05:58:32 +02:00
|
|
|
if XF86UTILS
|
|
|
|
XF86UTILS_SUBDIR = utils
|
|
|
|
endif
|
|
|
|
|
2007-02-27 20:14:47 +01:00
|
|
|
if MFB
|
|
|
|
MFB_SUBDIR = xf1bpp xf4bpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
if CFB
|
2007-11-02 17:51:56 +01:00
|
|
|
CFB_SUBDIR = xf8_32bpp
|
2007-02-27 20:14:47 +01:00
|
|
|
endif
|
|
|
|
|
2005-09-27 16:09:31 +02:00
|
|
|
DOC_SUBDIR = doc
|
|
|
|
|
2005-07-12 16:50:10 +02:00
|
|
|
SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support parser rac \
|
2007-02-27 20:14:47 +01:00
|
|
|
ramdac shadowfb vbe vgahw xaa $(MFB_SUBDIR) $(CFB_SUBDIR) \
|
2007-11-02 17:51:56 +01:00
|
|
|
xf8_16bpp loader dixmods exa modes \
|
2008-02-04 17:58:24 +01:00
|
|
|
$(DRI_SUBDIR) $(DRI2_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-07-29 01:28:34 +02:00
|
|
|
DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \
|
|
|
|
parser rac ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp \
|
2008-02-04 17:58:24 +01:00
|
|
|
xf8_16bpp xf8_32bpp loader dixmods dri dri2 exa modes \
|
2006-07-27 01:03:39 +02:00
|
|
|
utils doc
|
2005-07-29 01:28:34 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
bin_PROGRAMS = Xorg
|
|
|
|
|
2006-11-07 21:49:28 +01:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
|
2005-08-15 20:59:16 +02:00
|
|
|
INCLUDES = @XORG_INCS@
|
|
|
|
|
2005-08-02 02:41:07 +02:00
|
|
|
Xorg_SOURCES = xorg.c
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2007-09-04 23:49:49 +02:00
|
|
|
# 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:
|
2005-07-01 22:29:53 +02:00
|
|
|
touch $@
|
|
|
|
|
2006-05-09 20:04:29 +02:00
|
|
|
DISTCLEANFILES = osandcommon.c xorg.c
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
XORG_LIBS = \
|
2007-09-03 00:16:01 +02:00
|
|
|
$(XSERVER_LIBS) \
|
2005-07-01 22:29:53 +02:00
|
|
|
common/libinit.a \
|
2006-06-22 02:49:21 +02:00
|
|
|
loader/libloader.a \
|
2007-09-04 23:49:49 +02:00
|
|
|
libosandcommon.la \
|
2006-06-19 05:54:04 +02:00
|
|
|
rac/librac.a \
|
2005-11-23 08:14:46 +01:00
|
|
|
parser/libxf86config.a \
|
2005-08-15 20:59:16 +02:00
|
|
|
dixmods/libdixmods.la \
|
2007-02-16 05:36:20 +01:00
|
|
|
modes/libxf86modes.a \
|
2007-03-15 07:59:29 +01:00
|
|
|
ramdac/libramdac.a \
|
2007-02-16 05:36:20 +01:00
|
|
|
ddc/libddc.a \
|
|
|
|
i2c/libi2c.a \
|
2007-08-31 21:24:07 +02:00
|
|
|
dixmods/libxorgxkb.la \
|
2007-09-03 00:16:01 +02:00
|
|
|
$(top_builddir)/mi/libmi.la \
|
|
|
|
$(top_builddir)/os/libos.la \
|
|
|
|
@XORG_LIBS@ \
|
|
|
|
dixmods/libxorgxkb.la
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2007-08-31 21:24:07 +02:00
|
|
|
Xorg_DEPENDENCIES = $(XORG_LIBS)
|
|
|
|
Xorg_LDADD = $(XORG_LIBS) $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-07-16 09:39:48 +02:00
|
|
|
Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
|
2005-08-04 04:39:56 +02:00
|
|
|
|
2006-11-01 01:05:48 +01:00
|
|
|
BUILT_SOURCES = xorg.conf.example
|
2007-08-01 07:11:08 +02:00
|
|
|
DISTCLEANFILES += xorg.conf.example xorg.conf.example.pre
|
2006-11-01 01:05:48 +01:00
|
|
|
EXTRA_DIST = xorgconf.cpp
|
2005-08-04 04:39:56 +02: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-07-12 22:00:32 +02:00
|
|
|
BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il
|
2005-08-04 04:39:56 +02:00
|
|
|
|
2007-07-12 22:00:32 +02:00
|
|
|
os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il:
|
|
|
|
cd os-support/solaris ; make solaris-@SOLARIS_INOUT_ARCH@.il
|
2005-08-04 04:39:56 +02:00
|
|
|
endif
|
2005-09-15 07:06:54 +02:00
|
|
|
|
2005-10-18 00:42:03 +02:00
|
|
|
# do not use $(mkdir_p) if you want automake 1.7 to work
|
2005-09-15 07:06:54 +02:00
|
|
|
install-data-local:
|
2005-10-18 00:42:03 +02:00
|
|
|
mkdir -p $(DESTDIR)$(logdir)
|
2005-09-15 07:55:21 +02:00
|
|
|
|
2005-09-20 17:50:31 +02:00
|
|
|
|
2005-10-18 21:43:48 +02:00
|
|
|
install-exec-local: install-binPROGRAMS
|
2005-10-29 02:12:33 +02:00
|
|
|
(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
|
2005-09-20 17:50:31 +02:00
|
|
|
if INSTALL_SETUID
|
2005-09-15 07:55:21 +02:00
|
|
|
chown root $(DESTDIR)$(bindir)/Xorg
|
|
|
|
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
2005-09-20 17:50:31 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-08 18:55:19 +01:00
|
|
|
optionsdir = $(libdir)/X11
|
|
|
|
dist_options_DATA = Options
|
|
|
|
|
2006-10-19 20:14:26 +02:00
|
|
|
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)\"
|
|
|
|
|
2005-12-26 20:13:52 +01:00
|
|
|
relink:
|
|
|
|
rm -f Xorg && $(MAKE) Xorg
|
2006-10-19 20:14:26 +02:00
|
|
|
|
|
|
|
xorg.conf.example.pre: xorgconf.cpp
|
2006-10-29 18:19:56 +01:00
|
|
|
cp $(srcdir)/xorgconf.cpp $@
|