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-10-15 13:00:16 +02:00
|
|
|
if DRI2
|
|
|
|
DRI2_SUBDIR = dri2
|
|
|
|
endif
|
2008-02-04 17:58:24 +01:00
|
|
|
|
2006-09-22 05:58:32 +02:00
|
|
|
if XF86UTILS
|
|
|
|
XF86UTILS_SUBDIR = utils
|
|
|
|
endif
|
|
|
|
|
2009-06-23 23:13:32 +02:00
|
|
|
if XAA
|
|
|
|
XAA_SUBDIR = xaa
|
|
|
|
endif
|
|
|
|
|
2009-07-10 14:38:51 +02:00
|
|
|
if VGAHW
|
|
|
|
VGAHW_SUBDIR = vgahw
|
|
|
|
endif
|
|
|
|
|
2009-07-10 14:54:07 +02:00
|
|
|
if VBE
|
|
|
|
VBE_SUBDIR = vbe
|
|
|
|
endif
|
|
|
|
|
2009-07-10 15:09:08 +02:00
|
|
|
if INT10MODULE
|
|
|
|
INT10_SUBDIR = int10
|
|
|
|
endif
|
|
|
|
|
2005-09-27 16:09:31 +02:00
|
|
|
DOC_SUBDIR = doc
|
|
|
|
|
2009-07-11 02:35:57 +02:00
|
|
|
SUBDIRS = common ddc i2c x86emu $(INT10_SUBDIR) fbdevhw os-support parser \
|
2009-07-10 14:54:07 +02:00
|
|
|
ramdac shadowfb $(VBE_SUBDIR) $(VGAHW_SUBDIR) $(XAA_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
|
|
|
|
2008-12-04 04:57:46 +01:00
|
|
|
DIST_SUBDIRS = common ddc i2c x86emu int10 fbdevhw os-support \
|
2009-06-24 10:12:50 +02:00
|
|
|
parser ramdac shadowfb vbe vgahw xaa \
|
2008-04-11 15:47:51 +02:00
|
|
|
xf8_16bpp 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
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
Xorg_SOURCES = xorg.c
|
2005-07-01 22:29:53 +02:00
|
|
|
|
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@
|
|
|
|
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
noinst_LTLIBRARIES = libxorg.la
|
|
|
|
libxorg_la_SOURCES = libxorg.c
|
|
|
|
libxorg_la_LIBADD = \
|
|
|
|
$(XSERVER_LIBS) \
|
|
|
|
loader/libloader.la \
|
2007-09-04 23:49:49 +02:00
|
|
|
os-support/libxorgos.la \
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
common/libcommon.la \
|
2009-08-07 04:05:51 +02:00
|
|
|
parser/libxf86config_internal.la \
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
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@
|
|
|
|
|
2009-01-25 22:19:01 +01:00
|
|
|
libxorg_la_DEPENDENCIES = $(libxorg_la_LIBADD)
|
|
|
|
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
libxorg.c xorg.c:
|
2005-07-01 22:29:53 +02:00
|
|
|
touch $@
|
|
|
|
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
DISTCLEANFILES = libxorg.c xorg.c
|
2005-07-01 22:29:53 +02:00
|
|
|
|
Use libtool convenience libraries and better "symbol" table.
All .a libraries were converted to .la, and instead of linking the
Xorg binary with a mix of .a and .la, and adding some libraries more
then once in the command line, etc, now it generates a single libxorg.la
from all the required convenience libraries, and links with a dummy
xorg.c (that should usually be the file with the main function...).
This removes the requirement of some things like libosandcommon and
libinit, that existed to circumvent problems when linking multiple
.a and .la in the final Xorg binary.
The "symbol table" is now generated dynamically, by a shell script,
with an embedded gawk parser that parses cpp output. The new file
sdksyms.sh is generated by hand by analyzing all Makefile.am's and
making it create a sdksyms.c file, that includes all sdk headers that
will add symbols for the Xorg binary. Module headers aren't read, and
a in 2 files it was required to add a "<hash>ifndef XorgLoader" around
declarations shared between the Xorg binary and libextmod. A few
other changes were added to other sdk headers, like preventing
multiple inclusion, or including other headers to satisfy dependencies.
This should be a lot more portable, and better (hopefully properly)
using libtool to generate convenience libraries.
2008-12-07 05:22:19 +01:00
|
|
|
Xorg_DEPENDENCIES = libxorg.la
|
2009-04-22 05:26:40 +02:00
|
|
|
Xorg_LDADD = $(MAIN_LIB) libxorg.la $(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
|
|
|
|
2008-12-19 04:47:49 +01:00
|
|
|
if XSERVER_DTRACE
|
|
|
|
# Re-add dtrace object code that gets lost when building static libraries
|
|
|
|
Xorg_LDADD += $(XSERVER_LIBS)
|
|
|
|
endif
|
|
|
|
|
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
|
|
|
|
|
2006-10-19 20:14:26 +02:00
|
|
|
CPP_FILES_FLAGS = \
|
2008-12-02 23:35:45 +01:00
|
|
|
$(MANDEFS) \
|
2009-09-14 07:49:01 +02:00
|
|
|
-DDEFAULTFONTPATH="\"$(COMPILEDDEFAULTFONTPATH)\"" \
|
2006-10-19 20:14:26 +02:00
|
|
|
-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 $@
|