Commit ded56b1a authored by Daniel Stone's avatar Daniel Stone

Adding initial build system.

parent aabb8689
AUTOMAKE_OPTIONS=dist-bzip2 foreign
if COMPOSITE
COMPOSITE_DIR=composite
endif
if XTRAP
XTRAP_DIR=XTrap
endif
SUBDIRS= \
include \
dix \
fb \
mi \
Xext \
miext \
os \
randr \
render \
Xi \
mfb \
xkb \
afb \
cfb \
cfb16 \
cfb24 \
cfb32 \
record \
xfixes \
damageext \
$(XTRAP_DIR) \
$(COMPOSITE_DIR) \
hw
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xorg-server.pc
EXTRA_DIST = xorg-server.pc.in
module_LTLIBRARIES = libxtrap.la
libxtrap_la_SOURCES = xf86XTrapModule.c xtrapddmi.c xtrapdi.c xtrapdiswp.c xtrapditbl.c
noinst_LTLIBRARIES = libXext.la
sdk_HEADERS = dgaproc.h xvdix.h xvmcext.h
SUBDIRS = extmod
if MITSHM
MITSHM_SRCS = shm.c
endif
if XV
XV_SRCS = xvmain.c xvdisp.c xvmc.c xvdix.h xvmcext.h
endif
if RES
RES_SRCS = xres.c
endif
if SCREENSAVER
SCREENSAVER_SRCS = saver.c
endif
if XCSECURITY
XCSECURITY_SRCS = security.c
endif
if XINERAMA
PANORAMIX_SRCS = panoramiX.c panoramiX.h panoramiXh.h panoramiXsrv.h panoramiXprocs.c panoramiXSwap.c
endif
if XEVIE
XEVIE_SRCS = xevie.c EVIstruct.h
endif
AM_CFLAGS = -I$(srcdir)/extmod
EXTRA_DIST = \
dgaproc.h \
vidmodeproc.h \
xf86dgaext.h \
xf86miscproc.h \
appgroup.h \
xvdisp.h \
xvmodproc.h
# dmx.c has a hard dependency on the dmx DDX
libXext_la_SOURCES = \
bigreq.c \
mitmisc.c \
shape.c \
sleepuntil.c \
sleepuntil.h \
sync.c \
xtest.c \
xtest1di.c \
xtest1dd.c \
xtest1dd.h \
xcmisc.c \
dpms.c \
dpmsproc.h \
xf86bigfont.c \
xf86dga.c \
xf86dgaext.h \
xf86dga2.c \
$(MITSHM_SRCS) \
$(XV_SRCS) \
$(RES_SRCS) \
$(SCREENSAVER_SRCS) \
$(PANORAMIX_SRCS) \
$(XCSECURITY_SRCS) \
$(XEVIE_SRCS) \
extmod/modinit.c
EXTRA_DIST = modinit.h
noinst_LTLIBRARIES = libXi.la
libXi_la_SOURCES = \
allowev.c \
allowev.h \
chgdctl.c \
chgdctl.h \
chgfctl.c \
chgfctl.h \
chgkbd.c \
chgkbd.h \
chgkmap.c \
chgkmap.h \
chgprop.c \
chgprop.h \
chgptr.c \
chgptr.h \
closedev.c \
closedev.h \
devbell.c \
devbell.h \
exevents.c \
exglobals.h \
extinit.c \
getbmap.c \
getbmap.h \
getdctl.c \
getdctl.h \
getfctl.c \
getfctl.h \
getfocus.c \
getfocus.h \
getkmap.c \
getkmap.h \
getmmap.c \
getmmap.h \
getprop.c \
getprop.h \
getselev.c \
getselev.h \
getvers.c \
getvers.h \
grabdev.c \
grabdev.h \
grabdevb.c \
grabdevb.h \
grabdevk.c \
grabdevk.h \
gtmotion.c \
gtmotion.h \
listdev.c \
listdev.h \
opendev.c \
opendev.h \
queryst.c \
queryst.h \
selectev.c \
selectev.h \
sendexev.c \
sendexev.h \
setbmap.c \
setbmap.h \
setdval.c \
setdval.h \
setfocus.c \
setfocus.h \
setmmap.c \
setmmap.h \
setmode.c \
setmode.h \
stubs.c \
ungrdev.c \
ungrdev.h \
ungrdevb.c \
ungrdevb.h \
ungrdevk.c \
ungrdevk.h
AC_DEFUN([AC_DEFINE_DIR], [
prefix_NONE=
exec_prefix_NONE=
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
eval ac_define_dir="\"[$]$2\""
AC_SUBST($1, "$ac_define_dir")
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])
test "$prefix_NONE" && prefix=NONE
test "$exec_prefix_NONE" && exec_prefix=NONE
])
noinst_LTLIBRARIES = libafb.la
libafb_gen_sources = afbbltC.c afbbltX.c afbbltCI.c afbbltO.c afbbltG.c afbtileC.c afbtileG.c afbseg.c
DISTCLEANFILES = $(libafb_gen_sources)
libafb_la_SOURCES = afbgc.c afbwindow.c afbfont.c afbfillrct.c afbpntwin.c afbpixmap.c \
afbimage.c afbline.c afbbres.c afbhrzvert.c afbbresd.c afbpushpxl.c afbply1rct.c \
afbzerarc.c afbfillarc.c afbfillsp.c afbsetsp.c afbscrinit.c afbplygblt.c \
afbclip.c afbgetsp.c afbpolypnt.c afbbitblt.c afbcmap.c afbimggblt.c afbpntarea.c \
afbmisc.c afbbstore.c afbtegblt.c $(libafb_gen_sources)
INCLUDES = -I$(top_srcdir)/mfb
EXTRA_DIST = afbline.c afbblt.c afbtile.c
afbseg.c:
echo "#define POLYSEGMENT" > $@
echo "#include \"$(srcdir)/afbline.c\"" >> $@
afbbltC.c:
echo "#define MROP Mcopy" > $@
echo "#include \"$(srcdir)/afbblt.c\"" >> $@
afbbltX.c:
echo "#define MROP Mxor" > $@
echo "#include \"$(srcdir)/afbblt.c\"" >> $@
afbbltCI.c:
echo "#define MROP McopyInverted" > $@
echo "#include \"$(srcdir)/afbblt.c\"" >> $@
afbbltO.c:
echo "#define MROP Mor" > $@
echo "#include \"$(srcdir)/afbblt.c\"" >> $@
afbbltG.c:
echo "#define MROP 0" > $@
echo "#include \"$(srcdir)/afbblt.c\"" >> $@
afbtileC.c:
echo "#define MROP Mcopy" > $@
echo "#include \"$(srcdir)/afbtile.c\"" >> $@
afbtileG.c:
echo "#define MROP 0" > $@
echo "#include \"$(srcdir)/afbtile.c\"" >> $@
sdk_HEADERS = afb.h
#! /bin/sh
autoreconf -v --install || exit 1
./configure --enable-maintainer-mode "$@"
noinst_LTLIBRARIES = libcfb.la
include Makefile.am.inc
DISTCLEANFILES += cfbglrop8.c
libcfb_la_SOURCES = cfb8bit.c cfbcmap.c cfbteblt8.c cfbglrop8.c cfbpush8.c \
cfbrctstp8.c $(libcfb_gen_sources) $(libcfb_common_sources)
libcfb_la_LIBADD = ../mfb/libmfb.la
AM_CFLAGS = -DPSZ=8
INCLUDES = $(CFB_INCLUDES)
EXTRA_DIST = cfbline.c cfbfillarc.c cfbzerarc.c cfbblt.c cfbsolid.c \
cfbtileodd.c cfbtile32.c cfb8line.c cfbply1rct.c cfbglblt8.c \
cfb16.h cfb24.h cfb32.h cfb8bit.h cfbmap.h cfbmskbits.h cfbrrop.h \
cfbtab.h cfbunmap.h
sdk_HEADERS = cfb.h
noinst_LTLIBRARIES = libcfb16.la
include $(top_srcdir)/cfb/Makefile.am.inc
libcfb16_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
INCLUDES = $(CFB_INCLUDES)
AM_CFLAGS = -DPSZ=16
noinst_LTLIBRARIES = libcfb24.la
include $(top_srcdir)/cfb/Makefile.am.inc
libcfb24_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
EXTRA_DIST = cfbrrop24.h
AM_CFLAGS = -DPSZ=24
INCLUDES = $(CFB_INCLUDES)
noinst_LTLIBRARIES = libcfb32.la
include $(top_srcdir)/cfb/Makefile.am.inc
libcfb32_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
INCLUDES = $(CFB_INCLUDES)
AM_CFLAGS = -DPSZ=32
noinst_LTLIBRARIES = libcomposite.la
libcomposite_la_SOURCES = \
compalloc.c \
compext.c \
compint.h \
compinit.c \
compwindow.c
This diff is collapsed.
noinst_LTLIBRARIES = libdamageext.la
libdamageext_la_SOURCES = \
damageext.c \
damageext.h \
damageextint.h
noinst_LTLIBRARIES = libdix.la libxpstubs.la
libdix_la_SOURCES = \
atom.c \
colormap.c \
cursor.c \
devices.c \
dispatch.c \
dispatch.h \
dixfonts.c \
dixutils.c \
events.c \
extension.c \
ffs.c \
gc.c \
globals.c \
glyphcurs.c \
grabs.c \
initatoms.c \
main.c \
pixmap.c \
privates.c \
property.c \
resource.c \
swaprep.c \
swapreq.c \
tables.c \
window.c
libxpstubs_la_SOURCES = \
xpstubs.c
INCLUDES = -I$(top_srcdir)/Xprint
noinst_LTLIBRARIES = libfb.la
sdk_HEADERS = fb.h fbrop.h
AM_CFLAGS = -DXFree86Server -DXFree86Loader
libfb_la_SOURCES = \
fb.h \
fb24_32.c \
fballpriv.c \
fbarc.c \
fbbits.c \
fbbits.h \
fbblt.c \
fbbltone.c \
fbbstore.c \
fbcmap.c \
fbcompose.c \
fbcopy.c \
fbfill.c \
fbfillrect.c \
fbfillsp.c \
fbgc.c \
fbgetsp.c \
fbglyph.c \
fbimage.c \
fbline.c \
fboverlay.c \
fboverlay.h \
fbpict.c \
fbpict.h \
fbpixmap.c \
fbpoint.c \
fbpush.c \
fbrop.h \
fbscreen.c \
fbseg.c \
fbsetsp.c \
fbsolid.c \
fbstipple.c \
fbtile.c \
fbtrap.c \
fbutil.c \
fbwindow.c \
fbpseudocolor.c \
fbpseudocolor.h \
fbedge.c \
fbedgeimp.h \
fbmmx.c \
fbmmx.h
if DMX
DMX_SUBDIRS = dmx
endif
XORG_SUBDIRS = xfree86
SUBDIRS = \
$(XORG_SUBDIRS) \
$(DMX_SUBDIRS)
SUBDIRS = input
bin_PROGRAMS = Xdmx
if XINERAMA
PANORAMIX_SRCS = $(top_srcdir)/Xext/panoramiX.c
endif
if GLX
SUBDIRS += glxProxy
GLX_LIBS = glxProxy/libglxproxy.a
GLX_SRCS = $(PANORAMIX_SRCS) dmx_glxvisuals.c
endif
Xdmx_SOURCES = dmxinit.c \
dmxscrinit.c \
dmxshadow.c \
dmxcursor.c \
dmxinput.c \
dmxdpms.c \
dmxgc.c \
dmxgcops.c \
dmxwindow.c \
dmxpixmap.c \
dmxfont.c \
dmxcmap.c \
dmxvisual.c \
dmxlog.c \
dmxcb.c \
dmxprop.c \
dmxstat.c \
dmxsync.c \
dmxextension.c \
miinitext.c \
dmxpict.c \
libc_wrapper.c \
$(GLX_SRCS)
#if COMPOSITE
#Xdmx_SOURCES += fakecw.c
#endif
miinitext.c:
echo "#include <config.h>" > $@
echo "#undef HAVE_CONFIG_H" >> $@
echo "#define DMXEXT" >> $@
echo "#undef BEZIER " >> $@
echo "#undef PEXEXT " >> $@
echo "#undef MULTIBUFFER " >> $@
echo "#undef XV " >> $@
echo "#undef XIE " >> $@
echo "#undef DBE " >> $@
echo "#undef XF86VIDMODE " >> $@
echo "#undef XF86MISC " >> $@
echo "#undef XFreeXDGA " >> $@
echo "#undef XF86DRI " >> $@
echo "#undef MITSHM " >> $@
echo "#undef TOGCUP " >> $@
echo "#undef DPSEXT " >> $@
echo "#undef MITMISC " >> $@
echo "#undef SCREENSAVER " >> $@
echo "#undef RANDR " >> $@
echo "#undef XFIXES " >> $@
echo "#undef DAMAGE " >> $@
echo "#undef COMPOSITE " >> $@
echo "#undef FONTCACHE " >> $@
echo "#undef XFree86LOADER " >> $@
echo "#include \"$(top_srcdir)/mi/miinitext.c\"" >> $@
DISTCLEANFILES = miinitext.c libc_wrapper.c
libc_wrapper.c:
echo "#define SELF_CONTAINED_WRAPPER" > $@
echo "#include \"$(top_srcdir)/hw/xorg/os-support/shared/libc_wrapper.c\"" >> $@
Xdmx_LDFLAGS = -rdynamic
Xdmx_LDADD = $(XORG_CORE_LIBS) $(top_srcdir)/hw/xorg/os-support/@XORG_OS_SUBDIR@/lib@XORG_OS_SUBDIR@.a \
$(XDMX_LIBS) $(GLX_LIBS) $(top_srcdir)/miext/shadow/.libs/libshadow.a $(top_srcdir)/fb/.libs/libfb.a \
$(top_srcdir)/hw/xorg/dummylib/libdummy.a input/libdmxinput.a \
config/libdmxconfig.a -lfl $(XDMCP_LIBS) @DMXMODULES_LIBS@ -lXi
Xdmx_CFLAGS = @DMXMODULES_CFLAGS@
noinst_LIBRARIES = libglxproxy.a
libglxproxy_a_SOURCES = g_disptab.c glxcmds.c glxext.c glxutil.c g_renderswap.c \
render2swap.c renderpixswap.c global.c glxcmdsswap.c \
compsize.c glxscreens.c glxvisuals.c \
glxsingle.c glxvendor.c glxfbconfig.c glxswap.c
AM_CFLAGS = -I.. -I$(top_srcdir)/include @GL_CFLAGS@ -UXFree86LOADER
\ No newline at end of file
noinst_LIBRARIES = libdmxinput.a
RAWSRCS = lnx-keyboard.c lnx-ms.c lnx-ps2.c
USBSRCS = usb-keyboard.c usb-mouse.c usb-other.c usb-common.c
DRVSRCS = dmxdummy.c dmxbackend.c dmxconsole.c dmxcommon.c
DMXSRCS = dmxinputinit.c dmxarg.c dmxsigio.c dmxevents.c \
dmxxinput.c dmxmotion.c dmxeq.c dmxmap.c
libdmxinput_a_SOURCES = ChkNotMaskEv.c $(RAWSRCS) $(USBSRCS) $(DRVSRCS) $(DMXSRCS) $(LIBSRCS)
AM_CFLAGS = -I..
SUBDIRS = common ddc dummylib i2c int10 fbdevhw os-support parser rac \
ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp xf8_16bpp \
xf8_32wid loader scanpci dixmods
bin_PROGRAMS = Xorg
Xorg_SOURCES = dummy.c
DISTCLEANFILES = dummy.c
dummy.c:
touch $@
OS_LIBS = os-support/bus/libbus.a \
os-support/@XORG_OS_SUBDIR@/lib@XORG_OS_SUBDIR@.a os-support/misc/libmisc.a
XORG_LIBS = \
@XORG_CORE_LIBS@ \
common/libinit.a \
loader/libloader.a \
common/libcommon.a \
parser/libparser.a \
$(OS_LIBS) \
dummylib/libdummy.a \
dixmods/libdixmods.la \
vgahw/libvgahw.la \
$(top_builddir)/fb/libfb.la \
@XORG_LIBS@
Xorg_LDADD = $(XORG_LIBS) \
@XSERVER_LIBS@ \
-ldl
Xorg_LDFLAGS = -rdynamic
sdk_HEADERS = xf86Date.h xf86Version.h xorgVersion.h
noinst_LIBRARIES = libcommon.a libinit.a
if XORG_BUS_SBUS
SBUS_SOURCES = xf86sbusBus.c
endif
#if DEBUG
#DEBUGSOURCES = xf86Debug.c
#endif
#if BUILDXV
XVSOURCES = xf86xv.c xf86xvmc.c
XVSDKINCS = xf86xv.h xf86xvmc.h
#endif
#if XKB
XKBSOURCES = xf86XKB.c
#endif
#if XINPUT
XISOURCES = xf86Xinput.c xisb.c
XISDKINCS = xf86Xinput.h xisb.h
#endif
RANDRSOURCES = xf86RandR.c
BUSSOURCES = xf86isaBus.c xf86pciBus.c xf86fbBus.c xf86noBus.c $(SBUS_SOURCES)
#if LINUX
KBDSOURCES = xf86KbdLnx.c
# XXX psuedocodeish
#else if BSD
#KBDSOURCES = xf86KbdBSD.c
#else if Mach && !GNU/Mach
#KBDSOURCES = xf86KbdMach.c
#else
#KBDSOURCES = xf86Kbd.c
#endif
# shouldn't isaBus and pciBus only be built on the relevant architectures? -ds
# ditto DoScanPci
AM_LDFLAGS = -r
libcommon_a_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \
xf86Cursor.c xf86DGA.c xf86DPMS.c xf86DefModes.c \
xf86DoProbe.c xf86DoScanPci.c xf86Events.c \
xf86Globals.c xf86Io.c xf86AutoConfig.c \
xf86MiscExt.c xf86Option.c xf86PM.c \
xf86VidMode.c xf86fbman.c xf86cmap.c \
../scanpci/xf86ScanPci.c xf86Helper.c \
xf86Mode.c xf86Build.h xorgHelper.c xf86Versions.c \
$(XVSOURCES) $(BUSSOURCES) $(XKBSOURCES) \
$(DEBUGSOURCES) $(XISOURCES) $(RANDRSOURCES) \
$(KBDSOURCES)
libinit_a_SOURCES = xf86Build.h xf86Init.c
INCLUDES = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c \
-I$(srcdir)/../loader -I$(srcdir)/../rac -I$(srcdir)/../parser \
-I$(srcdir)/../scanpci -I$(srcdir)/../vbe -I$(srcdir)/../int10 \
-I$(srcdir)/../vgahw
sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
xf86PciInfo.h xf86Priv.h xf86Privstr.h xf86Resources.h \
xf86cmap.h xf86fbman.h xf86str.h $(XISDKINCS) \
$(XVSDKINCS) atKeynames.h
DISTCLEANFILES = xf86Build.h
EXTRA_DIST = \
atKeynames.h \
compiler.h \
fourcc.h \
scoasm.h \
xf86.h \
xf86Build.h \
xf86Bus.h \
xf86Config.h \
xf86InPriv.h \
xf86Keymap.h \
xf86Module.h \
xf86Opt.h \
xf86PciInfo.h \
xf86Priv.h \
xf86Privstr.h \
xf86Resources.h \
xf86Xinput.h \
xf86cmap.h \
xf86fbman.h \
xf86pciBus.h \
xf86sbusBus.h \
xf86str.h \
xf86xv.h \
xf86xvmc.h \
xf86xvpriv.h \
xisb.h \
xf86Build.h.in
AM_CFLAGS = $(XORG_CFLAGS)
sdk_HEADERS = edid.h vdif.h xf86DDC.h
module_LTLIBRARIES = libddc.la
libddc_la_SOURCES = xf86DDC.c edid.c interpret_edid.c print_edid.c \
interpret_vdif.c print_vdif.c ddcProperty.c
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
EXTRA_DIST = ddcPriv.h
noinst_LTLIBRARIES = libdixmods.la
module_LTLIBRARIES = libbitmap.la libfb.la
# yes, this is a cheesy hack.
AM_CFLAGS = -include xorg-config.h $(XORG_CFLAGS)
INCLUDES = $(XORG_INCS) -I$(top_srcdir)/afb -I$(top_srcdir)/mfb \
-I$(top_srcdir)/cfb -I$(top_srcdir)/dbe -I$(srcdir)/../loader \
-I$(top_srcdir)/miext/layer -I$(top_srcdir)/miext/shadow
libbitmap_la_SOURCES = bitmapmod.c
libbitmap_la_LDFLAGS = -lXfont
libfb_la_SOURCES = fbmodule.c
libdixmods_la_SOURCES = \
afbmodule.c \
cfbmodule.c \
cfb16module.c \
cfb24module.c \
cfb32module.c \
mfbmodule.c \
miinitext.c \
laymodule.c \
shmodule.c \
$(top_srcdir)/Xext/xf86misc.c \
$(top_srcdir)/Xext/xf86vmode.c
noinst_LIBRARIES = libdummy.a
INCLUDES = $(XORG_INCS)
libdummy_a_SOURCES = getvalidbios.c \
pcitestmulti.c xf86allocscripi.c \
xf86addrestolist.c xf86drvmsg.c xf86drvmsgverb.c \
xf86getverb.c \
xf86opt.c xf86screens.c xf86servisinit.c xf86verbose.c \
strlcat.c strlcpy.c
#xf86errorf.c xf86errorfverb.c xf86msg.c xf86msgverb.c \
#logvwrite.c verrorf.c xf86info.c xalloc.c fatalerror.c \
#$(srcdir)/../os-support/shared/sigiostubs.c
module_LTLIBRARIES = libfbdevhw.la
#if FBDEVHW
libfbdevhw_la_SOURCES = fbdevhw.c
#else
#libxorgfbdevhw_la_SOURCES = fbdevhwstub.c
#endif
INCLUDES = $(XORG_INCS) -I$(srcdir)/../i2c
sdk_HEADERS = fbdevhw.h
EXTRA_DIST = fbpriv.h
module_LTLIBRARIES = libi2c.la
libi2c_la_SOURCES = xf86i2c.c xf86i2cmodule.c
INCLUDES = $(XORG_INCS)
sdk_HEADERS = xf86i2c.h
module_LTLIBRARIES = libint10.la
sdk_HEADERS = xf86int10.h