diff options
author | marha <marha@users.sourceforge.net> | 2009-06-28 22:07:26 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-06-28 22:07:26 +0000 |
commit | 3562e78743202e43aec8727005182a2558117eca (patch) | |
tree | 8f9113a77d12470c5c851a2a8e4cb02e89df7d43 /xorg-server/hw/dmx/examples | |
download | vcxsrv-3562e78743202e43aec8727005182a2558117eca.tar.gz vcxsrv-3562e78743202e43aec8727005182a2558117eca.tar.bz2 vcxsrv-3562e78743202e43aec8727005182a2558117eca.zip |
Checked in the following released items:
xkeyboard-config-1.4.tar.gz
ttf-bitstream-vera-1.10.tar.gz
font-alias-1.0.1.tar.gz
font-sun-misc-1.0.0.tar.gz
font-sun-misc-1.0.0.tar.gz
font-sony-misc-1.0.0.tar.gz
font-schumacher-misc-1.0.0.tar.gz
font-mutt-misc-1.0.0.tar.gz
font-misc-misc-1.0.0.tar.gz
font-misc-meltho-1.0.0.tar.gz
font-micro-misc-1.0.0.tar.gz
font-jis-misc-1.0.0.tar.gz
font-isas-misc-1.0.0.tar.gz
font-dec-misc-1.0.0.tar.gz
font-daewoo-misc-1.0.0.tar.gz
font-cursor-misc-1.0.0.tar.gz
font-arabic-misc-1.0.0.tar.gz
font-winitzki-cyrillic-1.0.0.tar.gz
font-misc-cyrillic-1.0.0.tar.gz
font-cronyx-cyrillic-1.0.0.tar.gz
font-screen-cyrillic-1.0.1.tar.gz
font-xfree86-type1-1.0.1.tar.gz
font-adobe-utopia-type1-1.0.1.tar.gz
font-ibm-type1-1.0.0.tar.gz
font-bitstream-type1-1.0.0.tar.gz
font-bitstream-speedo-1.0.0.tar.gz
font-bh-ttf-1.0.0.tar.gz
font-bh-type1-1.0.0.tar.gz
font-bitstream-100dpi-1.0.0.tar.gz
font-bh-lucidatypewriter-100dpi-1.0.0.tar.gz
font-bh-100dpi-1.0.0.tar.gz
font-adobe-utopia-100dpi-1.0.1.tar.gz
font-adobe-100dpi-1.0.0.tar.gz
font-util-1.0.1.tar.gz
font-bitstream-75dpi-1.0.0.tar.gz
font-bh-lucidatypewriter-75dpi-1.0.0.tar.gz
font-adobe-utopia-75dpi-1.0.1.tar.gz
font-bh-75dpi-1.0.0.tar.gz
bdftopcf-1.0.1.tar.gz
font-adobe-75dpi-1.0.0.tar.gz
mkfontscale-1.0.6.tar.gz
openssl-0.9.8k.tar.gz
bigreqsproto-1.0.2.tar.gz
xtrans-1.2.2.tar.gz
resourceproto-1.0.2.tar.gz
inputproto-1.4.4.tar.gz
compositeproto-0.4.tar.gz
damageproto-1.1.0.tar.gz
zlib-1.2.3.tar.gz
xkbcomp-1.0.5.tar.gz
freetype-2.3.9.tar.gz
pthreads-w32-2-8-0-release.tar.gz
pixman-0.12.0.tar.gz
kbproto-1.0.3.tar.gz
evieext-1.0.2.tar.gz
fixesproto-4.0.tar.gz
recordproto-1.13.2.tar.gz
randrproto-1.2.2.tar.gz
scrnsaverproto-1.1.0.tar.gz
renderproto-0.9.3.tar.gz
xcmiscproto-1.1.2.tar.gz
fontsproto-2.0.2.tar.gz
xextproto-7.0.3.tar.gz
xproto-7.0.14.tar.gz
libXdmcp-1.0.2.tar.gz
libxkbfile-1.0.5.tar.gz
libfontenc-1.0.4.tar.gz
libXfont-1.3.4.tar.gz
libX11-1.1.5.tar.gz
libXau-1.0.4.tar.gz
libxcb-1.1.tar.gz
xorg-server-1.5.3.tar.gz
Diffstat (limited to 'xorg-server/hw/dmx/examples')
-rw-r--r-- | xorg-server/hw/dmx/examples/Makefile.am | 70 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/Makefile.in | 1088 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxaddinput.c | 83 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxaddscreen.c | 105 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxreconfig.c | 162 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxresize.c | 104 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxrminput.c | 78 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxrmscreen.c | 80 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/dmxwininfo.c | 496 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/ev.c | 182 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/evi.c | 86 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/res.c | 99 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/xbell.c | 101 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/xdmx.c | 239 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/xinput.c | 318 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/xled.c | 124 | ||||
-rw-r--r-- | xorg-server/hw/dmx/examples/xtest.c | 75 |
17 files changed, 3490 insertions, 0 deletions
diff --git a/xorg-server/hw/dmx/examples/Makefile.am b/xorg-server/hw/dmx/examples/Makefile.am new file mode 100644 index 000000000..d814339fc --- /dev/null +++ b/xorg-server/hw/dmx/examples/Makefile.am @@ -0,0 +1,70 @@ +if DMX_BUILD_USB +# Requires <linux/input.h> +EV_PROG = ev +endif + +bin_PROGRAMS = \ + xdmx dmxwininfo dmxreconfig dmxresize \ + dmxaddscreen dmxrmscreen \ + dmxaddinput dmxrminput +noinst_PROGRAMS = xinput xtest evi res xled xbell $(EV_PROG) + +xdmx_SOURCES = xdmx.c +xdmx_LDADD = @DMXEXAMPLES_DEP_LIBS@ +xdmx_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxwininfo_SOURCES = dmxwininfo.c +dmxwininfo_LDADD = @DMXXMUEXAMPLES_DEP_LIBS@ +dmxwininfo_CFLAGS = @DMXXMUEXAMPLES_DEP_CFLAGS@ + +dmxreconfig_SOURCES = dmxreconfig.c +dmxreconfig_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxreconfig_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxresize_SOURCES = dmxresize.c +dmxresize_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxresize_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxaddscreen_SOURCES = dmxaddscreen.c +dmxaddscreen_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxaddscreen_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxrmscreen_SOURCES = dmxrmscreen.c +dmxrmscreen_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxrmscreen_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxaddinput_SOURCES = dmxaddinput.c +dmxaddinput_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxaddinput_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +dmxrminput_SOURCES = dmxrminput.c +dmxrminput_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxrminput_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ + +xinput_SOURCES = xinput.c +xinput_LDADD = @DMXXIEXAMPLES_DEP_LIBS@ +xinput_CFLAGS = @DMXXIEXAMPLES_DEP_CFLAGS@ + +xtest_SOURCES = xtest.c +xtest_LDADD = @XTSTEXAMPLES_DEP_LIBS@ +xtest_CFLAGS = @XTSTEXAMPLES_DEP_CFLAGS@ + +evi_SOURCES = evi.c +evi_LDADD = @X11EXAMPLES_DEP_LIBS@ +evi_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ + +res_SOURCES = res.c +res_LDADD = @XRESEXAMPLES_DEP_LIBS@ +res_CFLAGS = @XRESEXAMPLES_DEP_CFLAGS@ + +xled_SOURCES = xled.c +xled_LDADD = @X11EXAMPLES_DEP_LIBS@ +xled_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ + +xbell_SOURCES = xbell.c +xbell_LDADD = @X11EXAMPLES_DEP_LIBS@ +xbell_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ + +ev_SOURCES = ev.c +ev_LDADD = +ev_CFLAGS = diff --git a/xorg-server/hw/dmx/examples/Makefile.in b/xorg-server/hw/dmx/examples/Makefile.in new file mode 100644 index 000000000..d85b9b20d --- /dev/null +++ b/xorg-server/hw/dmx/examples/Makefile.in @@ -0,0 +1,1088 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = xdmx$(EXEEXT) dmxwininfo$(EXEEXT) dmxreconfig$(EXEEXT) \ + dmxresize$(EXEEXT) dmxaddscreen$(EXEEXT) dmxrmscreen$(EXEEXT) \ + dmxaddinput$(EXEEXT) dmxrminput$(EXEEXT) +noinst_PROGRAMS = xinput$(EXEEXT) xtest$(EXEEXT) evi$(EXEEXT) \ + res$(EXEEXT) xled$(EXEEXT) xbell$(EXEEXT) $(am__EXEEXT_1) +subdir = hw/dmx/examples +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/include/do-not-use-config.h \ + $(top_builddir)/include/xorg-server.h \ + $(top_builddir)/include/dix-config.h \ + $(top_builddir)/include/xgl-config.h \ + $(top_builddir)/include/xorg-config.h \ + $(top_builddir)/include/xkb-config.h \ + $(top_builddir)/include/xwin-config.h \ + $(top_builddir)/include/kdrive-config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +@DMX_BUILD_USB_TRUE@am__EXEEXT_1 = ev$(EXEEXT) +PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) +am_dmxaddinput_OBJECTS = dmxaddinput-dmxaddinput.$(OBJEXT) +dmxaddinput_OBJECTS = $(am_dmxaddinput_OBJECTS) +dmxaddinput_DEPENDENCIES = +dmxaddinput_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxaddinput_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxaddscreen_OBJECTS = dmxaddscreen-dmxaddscreen.$(OBJEXT) +dmxaddscreen_OBJECTS = $(am_dmxaddscreen_OBJECTS) +dmxaddscreen_DEPENDENCIES = +dmxaddscreen_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxaddscreen_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxreconfig_OBJECTS = dmxreconfig-dmxreconfig.$(OBJEXT) +dmxreconfig_OBJECTS = $(am_dmxreconfig_OBJECTS) +dmxreconfig_DEPENDENCIES = +dmxreconfig_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxreconfig_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxresize_OBJECTS = dmxresize-dmxresize.$(OBJEXT) +dmxresize_OBJECTS = $(am_dmxresize_OBJECTS) +dmxresize_DEPENDENCIES = +dmxresize_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxresize_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxrminput_OBJECTS = dmxrminput-dmxrminput.$(OBJEXT) +dmxrminput_OBJECTS = $(am_dmxrminput_OBJECTS) +dmxrminput_DEPENDENCIES = +dmxrminput_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxrminput_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxrmscreen_OBJECTS = dmxrmscreen-dmxrmscreen.$(OBJEXT) +dmxrmscreen_OBJECTS = $(am_dmxrmscreen_OBJECTS) +dmxrmscreen_DEPENDENCIES = +dmxrmscreen_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxrmscreen_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_dmxwininfo_OBJECTS = dmxwininfo-dmxwininfo.$(OBJEXT) +dmxwininfo_OBJECTS = $(am_dmxwininfo_OBJECTS) +dmxwininfo_DEPENDENCIES = +dmxwininfo_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dmxwininfo_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_ev_OBJECTS = ev-ev.$(OBJEXT) +ev_OBJECTS = $(am_ev_OBJECTS) +ev_DEPENDENCIES = +ev_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(ev_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_evi_OBJECTS = evi-evi.$(OBJEXT) +evi_OBJECTS = $(am_evi_OBJECTS) +evi_DEPENDENCIES = +evi_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(evi_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_res_OBJECTS = res-res.$(OBJEXT) +res_OBJECTS = $(am_res_OBJECTS) +res_DEPENDENCIES = +res_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(res_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_xbell_OBJECTS = xbell-xbell.$(OBJEXT) +xbell_OBJECTS = $(am_xbell_OBJECTS) +xbell_DEPENDENCIES = +xbell_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(xbell_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_xdmx_OBJECTS = xdmx-xdmx.$(OBJEXT) +xdmx_OBJECTS = $(am_xdmx_OBJECTS) +xdmx_DEPENDENCIES = +xdmx_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(xdmx_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_xinput_OBJECTS = xinput-xinput.$(OBJEXT) +xinput_OBJECTS = $(am_xinput_OBJECTS) +xinput_DEPENDENCIES = +xinput_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(xinput_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_xled_OBJECTS = xled-xled.$(OBJEXT) +xled_OBJECTS = $(am_xled_OBJECTS) +xled_DEPENDENCIES = +xled_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(xled_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +am_xtest_OBJECTS = xtest-xtest.$(OBJEXT) +xtest_OBJECTS = $(am_xtest_OBJECTS) +xtest_DEPENDENCIES = +xtest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(xtest_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(dmxaddinput_SOURCES) $(dmxaddscreen_SOURCES) \ + $(dmxreconfig_SOURCES) $(dmxresize_SOURCES) \ + $(dmxrminput_SOURCES) $(dmxrmscreen_SOURCES) \ + $(dmxwininfo_SOURCES) $(ev_SOURCES) $(evi_SOURCES) \ + $(res_SOURCES) $(xbell_SOURCES) $(xdmx_SOURCES) \ + $(xinput_SOURCES) $(xled_SOURCES) $(xtest_SOURCES) +DIST_SOURCES = $(dmxaddinput_SOURCES) $(dmxaddscreen_SOURCES) \ + $(dmxreconfig_SOURCES) $(dmxresize_SOURCES) \ + $(dmxrminput_SOURCES) $(dmxrmscreen_SOURCES) \ + $(dmxwininfo_SOURCES) $(ev_SOURCES) $(evi_SOURCES) \ + $(res_SOURCES) $(xbell_SOURCES) $(xdmx_SOURCES) \ + $(xinput_SOURCES) $(xled_SOURCES) $(xtest_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ADMIN_MAN_DIR = @ADMIN_MAN_DIR@ +ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@ +ALLOCA = @ALLOCA@ +AMTAR = @AMTAR@ +APPDEFAULTDIR = @APPDEFAULTDIR@ +APPLE_APPLICATIONS_DIR = @APPLE_APPLICATIONS_DIR@ +APP_MAN_DIR = @APP_MAN_DIR@ +APP_MAN_SUFFIX = @APP_MAN_SUFFIX@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BASE_FONT_PATH = @BASE_FONT_PATH@ +BUILD_DATE = @BUILD_DATE@ +BUILD_TIME = @BUILD_TIME@ +CC = @CC@ +CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COMPILEDDEFAULTFONTPATH = @COMPILEDDEFAULTFONTPATH@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DARWIN_LIBS = @DARWIN_LIBS@ +DBUS_CFLAGS = @DBUS_CFLAGS@ +DBUS_LIBS = @DBUS_LIBS@ +DEFAULT_LIBRARY_PATH = @DEFAULT_LIBRARY_PATH@ +DEFAULT_LOGPREFIX = @DEFAULT_LOGPREFIX@ +DEFAULT_MODULE_PATH = @DEFAULT_MODULE_PATH@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DGA_CFLAGS = @DGA_CFLAGS@ +DGA_LIBS = @DGA_LIBS@ +DIX_CFLAGS = @DIX_CFLAGS@ +DLLTOOL = @DLLTOOL@ +DMXEXAMPLES_DEP_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +DMXEXAMPLES_DEP_LIBS = @DMXEXAMPLES_DEP_LIBS@ +DMXMODULES_CFLAGS = @DMXMODULES_CFLAGS@ +DMXMODULES_LIBS = @DMXMODULES_LIBS@ +DMXXIEXAMPLES_DEP_CFLAGS = @DMXXIEXAMPLES_DEP_CFLAGS@ +DMXXIEXAMPLES_DEP_LIBS = @DMXXIEXAMPLES_DEP_LIBS@ +DMXXMUEXAMPLES_DEP_CFLAGS = @DMXXMUEXAMPLES_DEP_CFLAGS@ +DMXXMUEXAMPLES_DEP_LIBS = @DMXXMUEXAMPLES_DEP_LIBS@ +DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@ +DRI2PROTO_LIBS = @DRI2PROTO_LIBS@ +DRIPROTO_CFLAGS = @DRIPROTO_CFLAGS@ +DRIPROTO_LIBS = @DRIPROTO_LIBS@ +DRIVER_MAN_DIR = @DRIVER_MAN_DIR@ +DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@ +DRI_DRIVER_PATH = @DRI_DRIVER_PATH@ +DSYMUTIL = @DSYMUTIL@ +DTRACE = @DTRACE@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FILE_MAN_DIR = @FILE_MAN_DIR@ +FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ +FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ +FREETYPE_LIBS = @FREETYPE_LIBS@ +GLX_ARCH_DEFINES = @GLX_ARCH_DEFINES@ +GLX_DEFINES = @GLX_DEFINES@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +HAL_CFLAGS = @HAL_CFLAGS@ +HAL_LIBS = @HAL_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +KDRIVE_CFLAGS = @KDRIVE_CFLAGS@ +KDRIVE_INCS = @KDRIVE_INCS@ +KDRIVE_LIBS = @KDRIVE_LIBS@ +KDRIVE_LOCAL_LIBS = @KDRIVE_LOCAL_LIBS@ +KDRIVE_PURE_INCS = @KDRIVE_PURE_INCS@ +KDRIVE_PURE_LIBS = @KDRIVE_PURE_LIBS@ +LAUNCHD = @LAUNCHD@ +LDFLAGS = @LDFLAGS@ +LD_EXPORT_SYMBOLS_FLAG = @LD_EXPORT_SYMBOLS_FLAG@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ +LIBDRM_LIBS = @LIBDRM_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIB_MAN_DIR = @LIB_MAN_DIR@ +LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@ +LINUXDOC = @LINUXDOC@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MAKE_HTML = @MAKE_HTML@ +MAKE_PDF = @MAKE_PDF@ +MAKE_PS = @MAKE_PS@ +MAKE_TEXT = @MAKE_TEXT@ +MESA_SOURCE = @MESA_SOURCE@ +MISC_MAN_DIR = @MISC_MAN_DIR@ +MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@ +MKDIR_P = @MKDIR_P@ +MKFONTDIR = @MKFONTDIR@ +MKFONTSCALE = @MKFONTSCALE@ +NMEDIT = @NMEDIT@ +OBJC = @OBJC@ +OBJCCLD = @OBJCCLD@ +OBJCDEPMODE = @OBJCDEPMODE@ +OBJCFLAGS = @OBJCFLAGS@ +OBJCLINK = @OBJCLINK@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ +OPENSSL_LIBS = @OPENSSL_LIBS@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@ +PCIACCESS_LIBS = @PCIACCESS_LIBS@ +PCI_TXT_IDS_PATH = @PCI_TXT_IDS_PATH@ +PERL = @PERL@ +PKG_CONFIG = @PKG_CONFIG@ +PROJECTROOT = @PROJECTROOT@ +PS2PDF = @PS2PDF@ +RANLIB = @RANLIB@ +RAWCPP = @RAWCPP@ +RAWCPPFLAGS = @RAWCPPFLAGS@ +SED = @SED@ +SERVER_MISC_CONFIG_PATH = @SERVER_MISC_CONFIG_PATH@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SOLARIS_ASM_CFLAGS = @SOLARIS_ASM_CFLAGS@ +SOLARIS_INOUT_ARCH = @SOLARIS_INOUT_ARCH@ +STRIP = @STRIP@ +TSLIB_CFLAGS = @TSLIB_CFLAGS@ +TSLIB_LIBS = @TSLIB_LIBS@ +UTILS_SYS_LIBS = @UTILS_SYS_LIBS@ +VENDOR_MAN_VERSION = @VENDOR_MAN_VERSION@ +VENDOR_NAME = @VENDOR_NAME@ +VENDOR_NAME_SHORT = @VENDOR_NAME_SHORT@ +VENDOR_RELEASE = @VENDOR_RELEASE@ +VERSION = @VERSION@ +X11APP_ARCHS = @X11APP_ARCHS@ +X11EXAMPLES_DEP_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ +X11EXAMPLES_DEP_LIBS = @X11EXAMPLES_DEP_LIBS@ +XDMCP_CFLAGS = @XDMCP_CFLAGS@ +XDMCP_LIBS = @XDMCP_LIBS@ +XDMXCONFIG_DEP_CFLAGS = @XDMXCONFIG_DEP_CFLAGS@ +XDMXCONFIG_DEP_LIBS = @XDMXCONFIG_DEP_LIBS@ +XDMX_CFLAGS = @XDMX_CFLAGS@ +XDMX_LIBS = @XDMX_LIBS@ +XDMX_SYS_LIBS = @XDMX_SYS_LIBS@ +XEGLMODULES_CFLAGS = @XEGLMODULES_CFLAGS@ +XEGL_LIBS = @XEGL_LIBS@ +XEGL_SYS_LIBS = @XEGL_SYS_LIBS@ +XEPHYR_CFLAGS = @XEPHYR_CFLAGS@ +XEPHYR_DRI_LIBS = @XEPHYR_DRI_LIBS@ +XEPHYR_INCS = @XEPHYR_INCS@ +XEPHYR_LIBS = @XEPHYR_LIBS@ +XF86CONFIGFILE = @XF86CONFIGFILE@ +XF86MISC_CFLAGS = @XF86MISC_CFLAGS@ +XF86MISC_LIBS = @XF86MISC_LIBS@ +XF86VIDMODE_CFLAGS = @XF86VIDMODE_CFLAGS@ +XF86VIDMODE_LIBS = @XF86VIDMODE_LIBS@ +XGLMODULES_CFLAGS = @XGLMODULES_CFLAGS@ +XGLMODULES_LIBS = @XGLMODULES_LIBS@ +XGLXMODULES_CFLAGS = @XGLXMODULES_CFLAGS@ +XGLXMODULES_LIBS = @XGLXMODULES_LIBS@ +XGLX_LIBS = @XGLX_LIBS@ +XGLX_SYS_LIBS = @XGLX_SYS_LIBS@ +XGL_LIBS = @XGL_LIBS@ +XGL_MODULE_PATH = @XGL_MODULE_PATH@ +XGL_SYS_LIBS = @XGL_SYS_LIBS@ +XKB_BASE_DIRECTORY = @XKB_BASE_DIRECTORY@ +XKB_BIN_DIRECTORY = @XKB_BIN_DIRECTORY@ +XKB_COMPILED_DIR = @XKB_COMPILED_DIR@ +XKM_OUTPUT_DIR = @XKM_OUTPUT_DIR@ +XLIB_CFLAGS = @XLIB_CFLAGS@ +XLIB_LIBS = @XLIB_LIBS@ +XNESTMODULES_CFLAGS = @XNESTMODULES_CFLAGS@ +XNESTMODULES_LIBS = @XNESTMODULES_LIBS@ +XNEST_LIBS = @XNEST_LIBS@ +XNEST_SYS_LIBS = @XNEST_SYS_LIBS@ +XORGCFG_DEP_CFLAGS = @XORGCFG_DEP_CFLAGS@ +XORGCFG_DEP_LIBS = @XORGCFG_DEP_LIBS@ +XORGCONFIG_DEP_CFLAGS = @XORGCONFIG_DEP_CFLAGS@ +XORGCONFIG_DEP_LIBS = @XORGCONFIG_DEP_LIBS@ +XORG_CFLAGS = @XORG_CFLAGS@ +XORG_INCS = @XORG_INCS@ +XORG_LIBS = @XORG_LIBS@ +XORG_MODULES_CFLAGS = @XORG_MODULES_CFLAGS@ +XORG_MODULES_LIBS = @XORG_MODULES_LIBS@ +XORG_OS = @XORG_OS@ +XORG_OS_SUBDIR = @XORG_OS_SUBDIR@ +XORG_SYS_LIBS = @XORG_SYS_LIBS@ +XPRINTMODULES_CFLAGS = @XPRINTMODULES_CFLAGS@ +XPRINTMODULES_LIBS = @XPRINTMODULES_LIBS@ +XPRINTPROTO_CFLAGS = @XPRINTPROTO_CFLAGS@ +XPRINTPROTO_LIBS = @XPRINTPROTO_LIBS@ +XPRINT_CFLAGS = @XPRINT_CFLAGS@ +XPRINT_LIBS = @XPRINT_LIBS@ +XPRINT_SYS_LIBS = @XPRINT_SYS_LIBS@ +XRESEXAMPLES_DEP_CFLAGS = @XRESEXAMPLES_DEP_CFLAGS@ +XRESEXAMPLES_DEP_LIBS = @XRESEXAMPLES_DEP_LIBS@ +XSDL_INCS = @XSDL_INCS@ +XSDL_LIBS = @XSDL_LIBS@ +XSERVERCFLAGS_CFLAGS = @XSERVERCFLAGS_CFLAGS@ +XSERVERCFLAGS_LIBS = @XSERVERCFLAGS_LIBS@ +XSERVERLIBS_CFLAGS = @XSERVERLIBS_CFLAGS@ +XSERVERLIBS_LIBS = @XSERVERLIBS_LIBS@ +XSERVER_LIBS = @XSERVER_LIBS@ +XSERVER_SYS_LIBS = @XSERVER_SYS_LIBS@ +XTSTEXAMPLES_DEP_CFLAGS = @XTSTEXAMPLES_DEP_CFLAGS@ +XTSTEXAMPLES_DEP_LIBS = @XTSTEXAMPLES_DEP_LIBS@ +XVFB_LIBS = @XVFB_LIBS@ +XVFB_SYS_LIBS = @XVFB_SYS_LIBS@ +XWINMODULES_CFLAGS = @XWINMODULES_CFLAGS@ +XWINMODULES_LIBS = @XWINMODULES_LIBS@ +XWIN_LIBS = @XWIN_LIBS@ +XWIN_SERVER_NAME = @XWIN_SERVER_NAME@ +XWIN_SYS_LIBS = @XWIN_SYS_LIBS@ +YACC = @YACC@ +YFLAGS = @YFLAGS@ +__XCONFIGFILE__ = @__XCONFIGFILE__@ +abi_ansic = @abi_ansic@ +abi_extension = @abi_extension@ +abi_font = @abi_font@ +abi_videodrv = @abi_videodrv@ +abi_xinput = @abi_xinput@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +driverdir = @driverdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +extdir = @extdir@ +ft_config = @ft_config@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +launchagentsdir = @launchagentsdir@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +logdir = @logdir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +moduledir = @moduledir@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sdkdir = @sdkdir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +xglmoduledir = @xglmoduledir@ +xpconfigdir = @xpconfigdir@ +# Requires <linux/input.h> +@DMX_BUILD_USB_TRUE@EV_PROG = ev +xdmx_SOURCES = xdmx.c +xdmx_LDADD = @DMXEXAMPLES_DEP_LIBS@ +xdmx_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxwininfo_SOURCES = dmxwininfo.c +dmxwininfo_LDADD = @DMXXMUEXAMPLES_DEP_LIBS@ +dmxwininfo_CFLAGS = @DMXXMUEXAMPLES_DEP_CFLAGS@ +dmxreconfig_SOURCES = dmxreconfig.c +dmxreconfig_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxreconfig_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxresize_SOURCES = dmxresize.c +dmxresize_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxresize_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxaddscreen_SOURCES = dmxaddscreen.c +dmxaddscreen_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxaddscreen_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxrmscreen_SOURCES = dmxrmscreen.c +dmxrmscreen_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxrmscreen_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxaddinput_SOURCES = dmxaddinput.c +dmxaddinput_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxaddinput_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +dmxrminput_SOURCES = dmxrminput.c +dmxrminput_LDADD = @DMXEXAMPLES_DEP_LIBS@ +dmxrminput_CFLAGS = @DMXEXAMPLES_DEP_CFLAGS@ +xinput_SOURCES = xinput.c +xinput_LDADD = @DMXXIEXAMPLES_DEP_LIBS@ +xinput_CFLAGS = @DMXXIEXAMPLES_DEP_CFLAGS@ +xtest_SOURCES = xtest.c +xtest_LDADD = @XTSTEXAMPLES_DEP_LIBS@ +xtest_CFLAGS = @XTSTEXAMPLES_DEP_CFLAGS@ +evi_SOURCES = evi.c +evi_LDADD = @X11EXAMPLES_DEP_LIBS@ +evi_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ +res_SOURCES = res.c +res_LDADD = @XRESEXAMPLES_DEP_LIBS@ +res_CFLAGS = @XRESEXAMPLES_DEP_CFLAGS@ +xled_SOURCES = xled.c +xled_LDADD = @X11EXAMPLES_DEP_LIBS@ +xled_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ +xbell_SOURCES = xbell.c +xbell_LDADD = @X11EXAMPLES_DEP_LIBS@ +xbell_CFLAGS = @X11EXAMPLES_DEP_CFLAGS@ +ev_SOURCES = ev.c +ev_LDADD = +ev_CFLAGS = +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign hw/dmx/examples/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign hw/dmx/examples/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + || test -f $$p1 \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; for p in $$list; do \ + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f $$p $$f"; \ + rm -f $$p $$f ; \ + done +dmxaddinput$(EXEEXT): $(dmxaddinput_OBJECTS) $(dmxaddinput_DEPENDENCIES) + @rm -f dmxaddinput$(EXEEXT) + $(dmxaddinput_LINK) $(dmxaddinput_OBJECTS) $(dmxaddinput_LDADD) $(LIBS) +dmxaddscreen$(EXEEXT): $(dmxaddscreen_OBJECTS) $(dmxaddscreen_DEPENDENCIES) + @rm -f dmxaddscreen$(EXEEXT) + $(dmxaddscreen_LINK) $(dmxaddscreen_OBJECTS) $(dmxaddscreen_LDADD) $(LIBS) +dmxreconfig$(EXEEXT): $(dmxreconfig_OBJECTS) $(dmxreconfig_DEPENDENCIES) + @rm -f dmxreconfig$(EXEEXT) + $(dmxreconfig_LINK) $(dmxreconfig_OBJECTS) $(dmxreconfig_LDADD) $(LIBS) +dmxresize$(EXEEXT): $(dmxresize_OBJECTS) $(dmxresize_DEPENDENCIES) + @rm -f dmxresize$(EXEEXT) + $(dmxresize_LINK) $(dmxresize_OBJECTS) $(dmxresize_LDADD) $(LIBS) +dmxrminput$(EXEEXT): $(dmxrminput_OBJECTS) $(dmxrminput_DEPENDENCIES) + @rm -f dmxrminput$(EXEEXT) + $(dmxrminput_LINK) $(dmxrminput_OBJECTS) $(dmxrminput_LDADD) $(LIBS) +dmxrmscreen$(EXEEXT): $(dmxrmscreen_OBJECTS) $(dmxrmscreen_DEPENDENCIES) + @rm -f dmxrmscreen$(EXEEXT) + $(dmxrmscreen_LINK) $(dmxrmscreen_OBJECTS) $(dmxrmscreen_LDADD) $(LIBS) +dmxwininfo$(EXEEXT): $(dmxwininfo_OBJECTS) $(dmxwininfo_DEPENDENCIES) + @rm -f dmxwininfo$(EXEEXT) + $(dmxwininfo_LINK) $(dmxwininfo_OBJECTS) $(dmxwininfo_LDADD) $(LIBS) +ev$(EXEEXT): $(ev_OBJECTS) $(ev_DEPENDENCIES) + @rm -f ev$(EXEEXT) + $(ev_LINK) $(ev_OBJECTS) $(ev_LDADD) $(LIBS) +evi$(EXEEXT): $(evi_OBJECTS) $(evi_DEPENDENCIES) + @rm -f evi$(EXEEXT) + $(evi_LINK) $(evi_OBJECTS) $(evi_LDADD) $(LIBS) +res$(EXEEXT): $(res_OBJECTS) $(res_DEPENDENCIES) + @rm -f res$(EXEEXT) + $(res_LINK) $(res_OBJECTS) $(res_LDADD) $(LIBS) +xbell$(EXEEXT): $(xbell_OBJECTS) $(xbell_DEPENDENCIES) + @rm -f xbell$(EXEEXT) + $(xbell_LINK) $(xbell_OBJECTS) $(xbell_LDADD) $(LIBS) +xdmx$(EXEEXT): $(xdmx_OBJECTS) $(xdmx_DEPENDENCIES) + @rm -f xdmx$(EXEEXT) + $(xdmx_LINK) $(xdmx_OBJECTS) $(xdmx_LDADD) $(LIBS) +xinput$(EXEEXT): $(xinput_OBJECTS) $(xinput_DEPENDENCIES) + @rm -f xinput$(EXEEXT) + $(xinput_LINK) $(xinput_OBJECTS) $(xinput_LDADD) $(LIBS) +xled$(EXEEXT): $(xled_OBJECTS) $(xled_DEPENDENCIES) + @rm -f xled$(EXEEXT) + $(xled_LINK) $(xled_OBJECTS) $(xled_LDADD) $(LIBS) +xtest$(EXEEXT): $(xtest_OBJECTS) $(xtest_DEPENDENCIES) + @rm -f xtest$(EXEEXT) + $(xtest_LINK) $(xtest_OBJECTS) $(xtest_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxaddinput-dmxaddinput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxaddscreen-dmxaddscreen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxreconfig-dmxreconfig.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxresize-dmxresize.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxrminput-dmxrminput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxrmscreen-dmxrmscreen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dmxwininfo-dmxwininfo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ev-ev.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evi-evi.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/res-res.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbell-xbell.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdmx-xdmx.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xinput-xinput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xled-xled.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtest-xtest.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +dmxaddinput-dmxaddinput.o: dmxaddinput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddinput_CFLAGS) $(CFLAGS) -MT dmxaddinput-dmxaddinput.o -MD -MP -MF $(DEPDIR)/dmxaddinput-dmxaddinput.Tpo -c -o dmxaddinput-dmxaddinput.o `test -f 'dmxaddinput.c' || echo '$(srcdir)/'`dmxaddinput.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxaddinput-dmxaddinput.Tpo $(DEPDIR)/dmxaddinput-dmxaddinput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxaddinput.c' object='dmxaddinput-dmxaddinput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddinput_CFLAGS) $(CFLAGS) -c -o dmxaddinput-dmxaddinput.o `test -f 'dmxaddinput.c' || echo '$(srcdir)/'`dmxaddinput.c + +dmxaddinput-dmxaddinput.obj: dmxaddinput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddinput_CFLAGS) $(CFLAGS) -MT dmxaddinput-dmxaddinput.obj -MD -MP -MF $(DEPDIR)/dmxaddinput-dmxaddinput.Tpo -c -o dmxaddinput-dmxaddinput.obj `if test -f 'dmxaddinput.c'; then $(CYGPATH_W) 'dmxaddinput.c'; else $(CYGPATH_W) '$(srcdir)/dmxaddinput.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxaddinput-dmxaddinput.Tpo $(DEPDIR)/dmxaddinput-dmxaddinput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxaddinput.c' object='dmxaddinput-dmxaddinput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddinput_CFLAGS) $(CFLAGS) -c -o dmxaddinput-dmxaddinput.obj `if test -f 'dmxaddinput.c'; then $(CYGPATH_W) 'dmxaddinput.c'; else $(CYGPATH_W) '$(srcdir)/dmxaddinput.c'; fi` + +dmxaddscreen-dmxaddscreen.o: dmxaddscreen.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddscreen_CFLAGS) $(CFLAGS) -MT dmxaddscreen-dmxaddscreen.o -MD -MP -MF $(DEPDIR)/dmxaddscreen-dmxaddscreen.Tpo -c -o dmxaddscreen-dmxaddscreen.o `test -f 'dmxaddscreen.c' || echo '$(srcdir)/'`dmxaddscreen.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxaddscreen-dmxaddscreen.Tpo $(DEPDIR)/dmxaddscreen-dmxaddscreen.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxaddscreen.c' object='dmxaddscreen-dmxaddscreen.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddscreen_CFLAGS) $(CFLAGS) -c -o dmxaddscreen-dmxaddscreen.o `test -f 'dmxaddscreen.c' || echo '$(srcdir)/'`dmxaddscreen.c + +dmxaddscreen-dmxaddscreen.obj: dmxaddscreen.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddscreen_CFLAGS) $(CFLAGS) -MT dmxaddscreen-dmxaddscreen.obj -MD -MP -MF $(DEPDIR)/dmxaddscreen-dmxaddscreen.Tpo -c -o dmxaddscreen-dmxaddscreen.obj `if test -f 'dmxaddscreen.c'; then $(CYGPATH_W) 'dmxaddscreen.c'; else $(CYGPATH_W) '$(srcdir)/dmxaddscreen.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxaddscreen-dmxaddscreen.Tpo $(DEPDIR)/dmxaddscreen-dmxaddscreen.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxaddscreen.c' object='dmxaddscreen-dmxaddscreen.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxaddscreen_CFLAGS) $(CFLAGS) -c -o dmxaddscreen-dmxaddscreen.obj `if test -f 'dmxaddscreen.c'; then $(CYGPATH_W) 'dmxaddscreen.c'; else $(CYGPATH_W) '$(srcdir)/dmxaddscreen.c'; fi` + +dmxreconfig-dmxreconfig.o: dmxreconfig.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxreconfig_CFLAGS) $(CFLAGS) -MT dmxreconfig-dmxreconfig.o -MD -MP -MF $(DEPDIR)/dmxreconfig-dmxreconfig.Tpo -c -o dmxreconfig-dmxreconfig.o `test -f 'dmxreconfig.c' || echo '$(srcdir)/'`dmxreconfig.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxreconfig-dmxreconfig.Tpo $(DEPDIR)/dmxreconfig-dmxreconfig.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxreconfig.c' object='dmxreconfig-dmxreconfig.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxreconfig_CFLAGS) $(CFLAGS) -c -o dmxreconfig-dmxreconfig.o `test -f 'dmxreconfig.c' || echo '$(srcdir)/'`dmxreconfig.c + +dmxreconfig-dmxreconfig.obj: dmxreconfig.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxreconfig_CFLAGS) $(CFLAGS) -MT dmxreconfig-dmxreconfig.obj -MD -MP -MF $(DEPDIR)/dmxreconfig-dmxreconfig.Tpo -c -o dmxreconfig-dmxreconfig.obj `if test -f 'dmxreconfig.c'; then $(CYGPATH_W) 'dmxreconfig.c'; else $(CYGPATH_W) '$(srcdir)/dmxreconfig.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxreconfig-dmxreconfig.Tpo $(DEPDIR)/dmxreconfig-dmxreconfig.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxreconfig.c' object='dmxreconfig-dmxreconfig.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxreconfig_CFLAGS) $(CFLAGS) -c -o dmxreconfig-dmxreconfig.obj `if test -f 'dmxreconfig.c'; then $(CYGPATH_W) 'dmxreconfig.c'; else $(CYGPATH_W) '$(srcdir)/dmxreconfig.c'; fi` + +dmxresize-dmxresize.o: dmxresize.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxresize_CFLAGS) $(CFLAGS) -MT dmxresize-dmxresize.o -MD -MP -MF $(DEPDIR)/dmxresize-dmxresize.Tpo -c -o dmxresize-dmxresize.o `test -f 'dmxresize.c' || echo '$(srcdir)/'`dmxresize.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxresize-dmxresize.Tpo $(DEPDIR)/dmxresize-dmxresize.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxresize.c' object='dmxresize-dmxresize.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxresize_CFLAGS) $(CFLAGS) -c -o dmxresize-dmxresize.o `test -f 'dmxresize.c' || echo '$(srcdir)/'`dmxresize.c + +dmxresize-dmxresize.obj: dmxresize.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxresize_CFLAGS) $(CFLAGS) -MT dmxresize-dmxresize.obj -MD -MP -MF $(DEPDIR)/dmxresize-dmxresize.Tpo -c -o dmxresize-dmxresize.obj `if test -f 'dmxresize.c'; then $(CYGPATH_W) 'dmxresize.c'; else $(CYGPATH_W) '$(srcdir)/dmxresize.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxresize-dmxresize.Tpo $(DEPDIR)/dmxresize-dmxresize.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxresize.c' object='dmxresize-dmxresize.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxresize_CFLAGS) $(CFLAGS) -c -o dmxresize-dmxresize.obj `if test -f 'dmxresize.c'; then $(CYGPATH_W) 'dmxresize.c'; else $(CYGPATH_W) '$(srcdir)/dmxresize.c'; fi` + +dmxrminput-dmxrminput.o: dmxrminput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrminput_CFLAGS) $(CFLAGS) -MT dmxrminput-dmxrminput.o -MD -MP -MF $(DEPDIR)/dmxrminput-dmxrminput.Tpo -c -o dmxrminput-dmxrminput.o `test -f 'dmxrminput.c' || echo '$(srcdir)/'`dmxrminput.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxrminput-dmxrminput.Tpo $(DEPDIR)/dmxrminput-dmxrminput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxrminput.c' object='dmxrminput-dmxrminput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrminput_CFLAGS) $(CFLAGS) -c -o dmxrminput-dmxrminput.o `test -f 'dmxrminput.c' || echo '$(srcdir)/'`dmxrminput.c + +dmxrminput-dmxrminput.obj: dmxrminput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrminput_CFLAGS) $(CFLAGS) -MT dmxrminput-dmxrminput.obj -MD -MP -MF $(DEPDIR)/dmxrminput-dmxrminput.Tpo -c -o dmxrminput-dmxrminput.obj `if test -f 'dmxrminput.c'; then $(CYGPATH_W) 'dmxrminput.c'; else $(CYGPATH_W) '$(srcdir)/dmxrminput.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxrminput-dmxrminput.Tpo $(DEPDIR)/dmxrminput-dmxrminput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxrminput.c' object='dmxrminput-dmxrminput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrminput_CFLAGS) $(CFLAGS) -c -o dmxrminput-dmxrminput.obj `if test -f 'dmxrminput.c'; then $(CYGPATH_W) 'dmxrminput.c'; else $(CYGPATH_W) '$(srcdir)/dmxrminput.c'; fi` + +dmxrmscreen-dmxrmscreen.o: dmxrmscreen.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrmscreen_CFLAGS) $(CFLAGS) -MT dmxrmscreen-dmxrmscreen.o -MD -MP -MF $(DEPDIR)/dmxrmscreen-dmxrmscreen.Tpo -c -o dmxrmscreen-dmxrmscreen.o `test -f 'dmxrmscreen.c' || echo '$(srcdir)/'`dmxrmscreen.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxrmscreen-dmxrmscreen.Tpo $(DEPDIR)/dmxrmscreen-dmxrmscreen.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxrmscreen.c' object='dmxrmscreen-dmxrmscreen.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrmscreen_CFLAGS) $(CFLAGS) -c -o dmxrmscreen-dmxrmscreen.o `test -f 'dmxrmscreen.c' || echo '$(srcdir)/'`dmxrmscreen.c + +dmxrmscreen-dmxrmscreen.obj: dmxrmscreen.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrmscreen_CFLAGS) $(CFLAGS) -MT dmxrmscreen-dmxrmscreen.obj -MD -MP -MF $(DEPDIR)/dmxrmscreen-dmxrmscreen.Tpo -c -o dmxrmscreen-dmxrmscreen.obj `if test -f 'dmxrmscreen.c'; then $(CYGPATH_W) 'dmxrmscreen.c'; else $(CYGPATH_W) '$(srcdir)/dmxrmscreen.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxrmscreen-dmxrmscreen.Tpo $(DEPDIR)/dmxrmscreen-dmxrmscreen.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxrmscreen.c' object='dmxrmscreen-dmxrmscreen.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxrmscreen_CFLAGS) $(CFLAGS) -c -o dmxrmscreen-dmxrmscreen.obj `if test -f 'dmxrmscreen.c'; then $(CYGPATH_W) 'dmxrmscreen.c'; else $(CYGPATH_W) '$(srcdir)/dmxrmscreen.c'; fi` + +dmxwininfo-dmxwininfo.o: dmxwininfo.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxwininfo_CFLAGS) $(CFLAGS) -MT dmxwininfo-dmxwininfo.o -MD -MP -MF $(DEPDIR)/dmxwininfo-dmxwininfo.Tpo -c -o dmxwininfo-dmxwininfo.o `test -f 'dmxwininfo.c' || echo '$(srcdir)/'`dmxwininfo.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxwininfo-dmxwininfo.Tpo $(DEPDIR)/dmxwininfo-dmxwininfo.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxwininfo.c' object='dmxwininfo-dmxwininfo.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxwininfo_CFLAGS) $(CFLAGS) -c -o dmxwininfo-dmxwininfo.o `test -f 'dmxwininfo.c' || echo '$(srcdir)/'`dmxwininfo.c + +dmxwininfo-dmxwininfo.obj: dmxwininfo.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxwininfo_CFLAGS) $(CFLAGS) -MT dmxwininfo-dmxwininfo.obj -MD -MP -MF $(DEPDIR)/dmxwininfo-dmxwininfo.Tpo -c -o dmxwininfo-dmxwininfo.obj `if test -f 'dmxwininfo.c'; then $(CYGPATH_W) 'dmxwininfo.c'; else $(CYGPATH_W) '$(srcdir)/dmxwininfo.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/dmxwininfo-dmxwininfo.Tpo $(DEPDIR)/dmxwininfo-dmxwininfo.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dmxwininfo.c' object='dmxwininfo-dmxwininfo.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dmxwininfo_CFLAGS) $(CFLAGS) -c -o dmxwininfo-dmxwininfo.obj `if test -f 'dmxwininfo.c'; then $(CYGPATH_W) 'dmxwininfo.c'; else $(CYGPATH_W) '$(srcdir)/dmxwininfo.c'; fi` + +ev-ev.o: ev.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ev_CFLAGS) $(CFLAGS) -MT ev-ev.o -MD -MP -MF $(DEPDIR)/ev-ev.Tpo -c -o ev-ev.o `test -f 'ev.c' || echo '$(srcdir)/'`ev.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/ev-ev.Tpo $(DEPDIR)/ev-ev.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ev.c' object='ev-ev.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ev_CFLAGS) $(CFLAGS) -c -o ev-ev.o `test -f 'ev.c' || echo '$(srcdir)/'`ev.c + +ev-ev.obj: ev.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ev_CFLAGS) $(CFLAGS) -MT ev-ev.obj -MD -MP -MF $(DEPDIR)/ev-ev.Tpo -c -o ev-ev.obj `if test -f 'ev.c'; then $(CYGPATH_W) 'ev.c'; else $(CYGPATH_W) '$(srcdir)/ev.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/ev-ev.Tpo $(DEPDIR)/ev-ev.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ev.c' object='ev-ev.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ev_CFLAGS) $(CFLAGS) -c -o ev-ev.obj `if test -f 'ev.c'; then $(CYGPATH_W) 'ev.c'; else $(CYGPATH_W) '$(srcdir)/ev.c'; fi` + +evi-evi.o: evi.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(evi_CFLAGS) $(CFLAGS) -MT evi-evi.o -MD -MP -MF $(DEPDIR)/evi-evi.Tpo -c -o evi-evi.o `test -f 'evi.c' || echo '$(srcdir)/'`evi.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/evi-evi.Tpo $(DEPDIR)/evi-evi.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evi.c' object='evi-evi.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(evi_CFLAGS) $(CFLAGS) -c -o evi-evi.o `test -f 'evi.c' || echo '$(srcdir)/'`evi.c + +evi-evi.obj: evi.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(evi_CFLAGS) $(CFLAGS) -MT evi-evi.obj -MD -MP -MF $(DEPDIR)/evi-evi.Tpo -c -o evi-evi.obj `if test -f 'evi.c'; then $(CYGPATH_W) 'evi.c'; else $(CYGPATH_W) '$(srcdir)/evi.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/evi-evi.Tpo $(DEPDIR)/evi-evi.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evi.c' object='evi-evi.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(evi_CFLAGS) $(CFLAGS) -c -o evi-evi.obj `if test -f 'evi.c'; then $(CYGPATH_W) 'evi.c'; else $(CYGPATH_W) '$(srcdir)/evi.c'; fi` + +res-res.o: res.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(res_CFLAGS) $(CFLAGS) -MT res-res.o -MD -MP -MF $(DEPDIR)/res-res.Tpo -c -o res-res.o `test -f 'res.c' || echo '$(srcdir)/'`res.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/res-res.Tpo $(DEPDIR)/res-res.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='res.c' object='res-res.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(res_CFLAGS) $(CFLAGS) -c -o res-res.o `test -f 'res.c' || echo '$(srcdir)/'`res.c + +res-res.obj: res.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(res_CFLAGS) $(CFLAGS) -MT res-res.obj -MD -MP -MF $(DEPDIR)/res-res.Tpo -c -o res-res.obj `if test -f 'res.c'; then $(CYGPATH_W) 'res.c'; else $(CYGPATH_W) '$(srcdir)/res.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/res-res.Tpo $(DEPDIR)/res-res.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='res.c' object='res-res.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(res_CFLAGS) $(CFLAGS) -c -o res-res.obj `if test -f 'res.c'; then $(CYGPATH_W) 'res.c'; else $(CYGPATH_W) '$(srcdir)/res.c'; fi` + +xbell-xbell.o: xbell.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xbell_CFLAGS) $(CFLAGS) -MT xbell-xbell.o -MD -MP -MF $(DEPDIR)/xbell-xbell.Tpo -c -o xbell-xbell.o `test -f 'xbell.c' || echo '$(srcdir)/'`xbell.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xbell-xbell.Tpo $(DEPDIR)/xbell-xbell.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xbell.c' object='xbell-xbell.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xbell_CFLAGS) $(CFLAGS) -c -o xbell-xbell.o `test -f 'xbell.c' || echo '$(srcdir)/'`xbell.c + +xbell-xbell.obj: xbell.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xbell_CFLAGS) $(CFLAGS) -MT xbell-xbell.obj -MD -MP -MF $(DEPDIR)/xbell-xbell.Tpo -c -o xbell-xbell.obj `if test -f 'xbell.c'; then $(CYGPATH_W) 'xbell.c'; else $(CYGPATH_W) '$(srcdir)/xbell.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xbell-xbell.Tpo $(DEPDIR)/xbell-xbell.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xbell.c' object='xbell-xbell.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xbell_CFLAGS) $(CFLAGS) -c -o xbell-xbell.obj `if test -f 'xbell.c'; then $(CYGPATH_W) 'xbell.c'; else $(CYGPATH_W) '$(srcdir)/xbell.c'; fi` + +xdmx-xdmx.o: xdmx.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdmx_CFLAGS) $(CFLAGS) -MT xdmx-xdmx.o -MD -MP -MF $(DEPDIR)/xdmx-xdmx.Tpo -c -o xdmx-xdmx.o `test -f 'xdmx.c' || echo '$(srcdir)/'`xdmx.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xdmx-xdmx.Tpo $(DEPDIR)/xdmx-xdmx.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdmx.c' object='xdmx-xdmx.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdmx_CFLAGS) $(CFLAGS) -c -o xdmx-xdmx.o `test -f 'xdmx.c' || echo '$(srcdir)/'`xdmx.c + +xdmx-xdmx.obj: xdmx.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdmx_CFLAGS) $(CFLAGS) -MT xdmx-xdmx.obj -MD -MP -MF $(DEPDIR)/xdmx-xdmx.Tpo -c -o xdmx-xdmx.obj `if test -f 'xdmx.c'; then $(CYGPATH_W) 'xdmx.c'; else $(CYGPATH_W) '$(srcdir)/xdmx.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xdmx-xdmx.Tpo $(DEPDIR)/xdmx-xdmx.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdmx.c' object='xdmx-xdmx.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdmx_CFLAGS) $(CFLAGS) -c -o xdmx-xdmx.obj `if test -f 'xdmx.c'; then $(CYGPATH_W) 'xdmx.c'; else $(CYGPATH_W) '$(srcdir)/xdmx.c'; fi` + +xinput-xinput.o: xinput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xinput_CFLAGS) $(CFLAGS) -MT xinput-xinput.o -MD -MP -MF $(DEPDIR)/xinput-xinput.Tpo -c -o xinput-xinput.o `test -f 'xinput.c' || echo '$(srcdir)/'`xinput.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xinput-xinput.Tpo $(DEPDIR)/xinput-xinput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xinput.c' object='xinput-xinput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xinput_CFLAGS) $(CFLAGS) -c -o xinput-xinput.o `test -f 'xinput.c' || echo '$(srcdir)/'`xinput.c + +xinput-xinput.obj: xinput.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xinput_CFLAGS) $(CFLAGS) -MT xinput-xinput.obj -MD -MP -MF $(DEPDIR)/xinput-xinput.Tpo -c -o xinput-xinput.obj `if test -f 'xinput.c'; then $(CYGPATH_W) 'xinput.c'; else $(CYGPATH_W) '$(srcdir)/xinput.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xinput-xinput.Tpo $(DEPDIR)/xinput-xinput.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xinput.c' object='xinput-xinput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xinput_CFLAGS) $(CFLAGS) -c -o xinput-xinput.obj `if test -f 'xinput.c'; then $(CYGPATH_W) 'xinput.c'; else $(CYGPATH_W) '$(srcdir)/xinput.c'; fi` + +xled-xled.o: xled.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xled_CFLAGS) $(CFLAGS) -MT xled-xled.o -MD -MP -MF $(DEPDIR)/xled-xled.Tpo -c -o xled-xled.o `test -f 'xled.c' || echo '$(srcdir)/'`xled.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xled-xled.Tpo $(DEPDIR)/xled-xled.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xled.c' object='xled-xled.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xled_CFLAGS) $(CFLAGS) -c -o xled-xled.o `test -f 'xled.c' || echo '$(srcdir)/'`xled.c + +xled-xled.obj: xled.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xled_CFLAGS) $(CFLAGS) -MT xled-xled.obj -MD -MP -MF $(DEPDIR)/xled-xled.Tpo -c -o xled-xled.obj `if test -f 'xled.c'; then $(CYGPATH_W) 'xled.c'; else $(CYGPATH_W) '$(srcdir)/xled.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xled-xled.Tpo $(DEPDIR)/xled-xled.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xled.c' object='xled-xled.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xled_CFLAGS) $(CFLAGS) -c -o xled-xled.obj `if test -f 'xled.c'; then $(CYGPATH_W) 'xled.c'; else $(CYGPATH_W) '$(srcdir)/xled.c'; fi` + +xtest-xtest.o: xtest.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xtest_CFLAGS) $(CFLAGS) -MT xtest-xtest.o -MD -MP -MF $(DEPDIR)/xtest-xtest.Tpo -c -o xtest-xtest.o `test -f 'xtest.c' || echo '$(srcdir)/'`xtest.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xtest-xtest.Tpo $(DEPDIR)/xtest-xtest.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xtest.c' object='xtest-xtest.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xtest_CFLAGS) $(CFLAGS) -c -o xtest-xtest.o `test -f 'xtest.c' || echo '$(srcdir)/'`xtest.c + +xtest-xtest.obj: xtest.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xtest_CFLAGS) $(CFLAGS) -MT xtest-xtest.obj -MD -MP -MF $(DEPDIR)/xtest-xtest.Tpo -c -o xtest-xtest.obj `if test -f 'xtest.c'; then $(CYGPATH_W) 'xtest.c'; else $(CYGPATH_W) '$(srcdir)/xtest.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/xtest-xtest.Tpo $(DEPDIR)/xtest-xtest.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xtest.c' object='xtest-xtest.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xtest_CFLAGS) $(CFLAGS) -c -o xtest-xtest.obj `if test -f 'xtest.c'; then $(CYGPATH_W) 'xtest.c'; else $(CYGPATH_W) '$(srcdir)/xtest.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool \ + clean-noinstPROGRAMS mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool clean-noinstPROGRAMS ctags \ + distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-binPROGRAMS + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/xorg-server/hw/dmx/examples/dmxaddinput.c b/xorg-server/hw/dmx/examples/dmxaddinput.c new file mode 100644 index 000000000..dcfd4f5cc --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxaddinput.c @@ -0,0 +1,83 @@ +/* + * Copyright 2003,2004 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int id = -1; + int status; + + if (argc != 5) { + printf("Usage: %s display c|b name|screen isCore\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + if (argv[2][0] == 'c') { + status = DMXAddConsoleInput(display, argv[3], atoi(argv[4]), &id); + } else { + status = DMXAddBackendInput(display, atoi(argv[3]), atoi(argv[4]),&id); + } + + printf("status = %d, id = %d\n", status, id); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxaddscreen.c b/xorg-server/hw/dmx/examples/dmxaddscreen.c new file mode 100644 index 000000000..8e60872df --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxaddscreen.c @@ -0,0 +1,105 @@ +/* + * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Kevin E. Martin <kem@redhat.com> + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int screenNum; + DMXScreenAttributes attr; + unsigned int mask = 0; + + if (argc != 4 && argc != 14) { + printf("Usage: %s display screenNum displayName [scrnx scrny scrnw scrnh rootx rooty rootw rooth originx originy]\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + + screenNum = strtol(argv[2], NULL, 0); + if (argc == 14) { + mask |= (DMXScreenWindowXoffset | + DMXScreenWindowYoffset | + DMXScreenWindowWidth | + DMXScreenWindowHeight); + attr.screenWindowXoffset = strtol(argv[4], NULL, 0); + attr.screenWindowYoffset = strtol(argv[5], NULL, 0); + attr.screenWindowWidth = strtol(argv[6], NULL, 0); + attr.screenWindowHeight = strtol(argv[7], NULL, 0); + + mask |= (DMXRootWindowXoffset | + DMXRootWindowYoffset | + DMXRootWindowWidth | + DMXRootWindowHeight); + attr.rootWindowXoffset = strtol(argv[8], NULL, 0); + attr.rootWindowYoffset = strtol(argv[9], NULL, 0); + attr.rootWindowWidth = strtol(argv[10], NULL, 0); + attr.rootWindowHeight = strtol(argv[11], NULL, 0); + + mask |= DMXRootWindowXorigin | DMXRootWindowYorigin; + attr.rootWindowXorigin = strtol(argv[12], NULL, 0); + attr.rootWindowYorigin = strtol(argv[13], NULL, 0); + } + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + if (!DMXAddScreen(display, argv[3], mask, &attr, &screenNum)) + printf("Failed to add %s as screen #%d\n", argv[2], screenNum); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxreconfig.c b/xorg-server/hw/dmx/examples/dmxreconfig.c new file mode 100644 index 000000000..042f8a112 --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxreconfig.c @@ -0,0 +1,162 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Kevin E. Martin <kem@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int screen; + DMXScreenAttributes attr; + unsigned int mask = 0; + int status; + int errorScreen; + + if (argc != 13) { + fprintf(stderr, "Usage: %s display screen scrnx scrny scrnw scrnh rootx rooty rootw rooth originx originy\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + fprintf(stderr, "Cannot open display %s\n", argv[1]); + return -1; + } + + screen = strtol(argv[2], NULL, 0); + + mask |= (DMXScreenWindowXoffset | + DMXScreenWindowYoffset | + DMXScreenWindowWidth | + DMXScreenWindowHeight); + attr.screenWindowXoffset = strtol(argv[3], NULL, 0); + attr.screenWindowYoffset = strtol(argv[4], NULL, 0); + attr.screenWindowWidth = strtol(argv[5], NULL, 0); + attr.screenWindowHeight = strtol(argv[6], NULL, 0); + + mask |= (DMXRootWindowXoffset | + DMXRootWindowYoffset | + DMXRootWindowWidth | + DMXRootWindowHeight); + attr.rootWindowXoffset = strtol(argv[7], NULL, 0); + attr.rootWindowYoffset = strtol(argv[8], NULL, 0); + attr.rootWindowWidth = strtol(argv[9], NULL, 0); + attr.rootWindowHeight = strtol(argv[10], NULL, 0); + + mask |= DMXRootWindowXorigin | DMXRootWindowYorigin; + attr.rootWindowXorigin = strtol(argv[11], NULL, 0); + attr.rootWindowYorigin = strtol(argv[12], NULL, 0); + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + fprintf(stderr, "DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + fprintf(stderr, "Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + if (major_version == 1 && minor_version < 3) { + fprintf(stderr, + "ReconfigureScreen not supported in this extension version\n"); + return -1; + } + + if (major_version < 2) { + fprintf(stderr, + "ChangeScreensAttributes not supported in this extension " + "version\n"); + return -1; + } + + if (!(status = DMXChangeScreensAttributes(display, 1, &screen, 1, &mask, + &attr, &errorScreen))) { + printf("Reconfigured screen #%d to " + "%dx%d%s%d%s%d %dx%d%s%d%s%d %s%d%s%d\n", + screen, + attr.screenWindowWidth, + attr.screenWindowHeight, + (attr.screenWindowXoffset < 0 ? "" : "+"), + attr.screenWindowXoffset, + (attr.screenWindowYoffset < 0 ? "" : "+"), + attr.screenWindowYoffset, + attr.rootWindowWidth, + attr.rootWindowHeight, + (attr.rootWindowXoffset < 0 ? "" : "+"), + attr.rootWindowXoffset, + (attr.rootWindowYoffset < 0 ? "" : "+"), + attr.rootWindowYoffset, + (attr.rootWindowXorigin < 0 ? "" : "+"), + attr.rootWindowXorigin, + (attr.rootWindowYorigin < 0 ? "" : "+"), + attr.rootWindowYorigin); + } else { + fprintf(stderr, + "Could not set screen #%d to " + "%dx%d%s%d%s%d %dx%d%s%d%s%d %s%d%s%d\n" + "[status = %d, errorScreen=%d]\n", + screen, + attr.screenWindowWidth, + attr.screenWindowHeight, + (attr.screenWindowXoffset < 0 ? "" : "+"), + attr.screenWindowXoffset, + (attr.screenWindowYoffset < 0 ? "" : "+"), + attr.screenWindowYoffset, + attr.rootWindowWidth, + attr.rootWindowHeight, + (attr.rootWindowXoffset < 0 ? "" : "+"), + attr.rootWindowXoffset, + (attr.rootWindowYoffset < 0 ? "" : "+"), + attr.rootWindowYoffset, + (attr.rootWindowXorigin < 0 ? "" : "+"), + attr.rootWindowXorigin, + (attr.rootWindowYorigin < 0 ? "" : "+"), + attr.rootWindowYorigin, + status, errorScreen); + return -1; + } + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxresize.c b/xorg-server/hw/dmx/examples/dmxresize.c new file mode 100644 index 000000000..caed91d8d --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxresize.c @@ -0,0 +1,104 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int width, height, shiftX, shiftY, status; + DMXDesktopAttributes attr; + unsigned int mask; + + if (argc != 6) { + printf("Usage: %s display width height shiftX shiftY\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + + width = strtol(argv[2], NULL, 0); + height = strtol(argv[3], NULL, 0); + shiftX = strtol(argv[4], NULL, 0); + shiftY = strtol(argv[5], NULL, 0); + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + mask = (DMXDesktopWidth | + DMXDesktopHeight | + DMXDesktopShiftX | + DMXDesktopShiftY); + attr.width = width; + attr.height = height; + attr.shiftX = shiftX; + attr.shiftY = shiftY; + switch (status = DMXChangeDesktopAttributes(display, mask, &attr)) { + case DmxBadXinerama: + printf("status = %d (No Xinerama)\n", status); + break; + case DmxBadValue: + printf("status = %d (Bad Value)\n", status); + break; + case Success: + printf("status = %d (Success)\n", status); + break; + default: + printf("status = %d (UNKNOWN ERROR *****)\n", status); + break; + } + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxrminput.c b/xorg-server/hw/dmx/examples/dmxrminput.c new file mode 100644 index 000000000..ef62cab8b --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxrminput.c @@ -0,0 +1,78 @@ +/* + * Copyright 2003,2004 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int status; + + if (argc != 3) { + printf("Usage: %s display id\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + status = DMXRemoveInput(display, atoi(argv[2])); + + printf("status = %d\n", status); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxrmscreen.c b/xorg-server/hw/dmx/examples/dmxrmscreen.c new file mode 100644 index 000000000..fecf0f6c1 --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxrmscreen.c @@ -0,0 +1,80 @@ +/* + * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Kevin E. Martin <kem@redhat.com> + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + int screenNum; + + if (argc != 3) { + printf("Usage: %s display screenNum\n", argv[0]); + return -1; + } + + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + + screenNum = strtol(argv[2], NULL, 0); + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + if (!DMXRemoveScreen(display, screenNum)) + printf("Failed to remove screen #%d\n", screenNum); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/dmxwininfo.c b/xorg-server/hw/dmx/examples/dmxwininfo.c new file mode 100644 index 000000000..6cf1d411e --- /dev/null +++ b/xorg-server/hw/dmx/examples/dmxwininfo.c @@ -0,0 +1,496 @@ +/* + * Copyright (c) 2003 by the XFree86 Project, Inc. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Create a window and use the DMX extension to query the window's + * back-end properties. Display the info inside the window itself. + * + * Brian Paul + * 23 Jan 2003 + */ + +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <X11/Xlib.h> +#include <X11/Xutil.h> +#include <X11/Xmu/SysUtil.h> +#include <X11/extensions/dmxext.h> + +static const char *FontName = "fixed"; + + +static void +EventLoop(Display *dpy, Window win, GC gc) +{ + XEvent ev; + while (1) { + XNextEvent( dpy, &ev ); + switch (ev.type) { + case ReparentNotify: + break; + case MapNotify: + break; + case ConfigureNotify: + case Expose: + { + int numScreens, count, i; + DMXWindowAttributes *winInfo; + int x, y; + const char *msg = "DMX window info:"; + + DMXGetScreenCount(dpy, &numScreens); + winInfo + = (DMXWindowAttributes *) + malloc(numScreens * sizeof(DMXWindowAttributes)); + assert(winInfo); + if (!DMXGetWindowAttributes(dpy, win, &count, + numScreens, winInfo)) { + printf("Could not get window information for 0x%08lx\n", + (long unsigned)win); + } + x = y = 50; + XClearWindow(dpy, win); + XDrawString(dpy, win, gc, x, y, msg, strlen(msg)); + y += 20; + for (i = 0; i < count; i++) { + char str[500]; + XmuSnprintf(str, sizeof(str), + "screen %d: pos: %dx%d+%d+%d visible: %dx%d+%d+%d", + winInfo[i].screen, + winInfo[i].pos.width, winInfo[i].pos.height, + winInfo[i].pos.x, winInfo[i].pos.y, + winInfo[i].vis.width, winInfo[i].vis.height, + winInfo[i].vis.x, winInfo[i].vis.y); + XDrawString(dpy, win, gc, x, y, str, strlen(str)); + y += 20; + } + free(winInfo); + } + break; + default: + printf("Event type 0x%x\n", ev.type); + } + } +} + +int +main(int argc, char *argv[]) +{ + const char *displayName = NULL; + Display *dpy; + int event_base, error_base; + int scr, n; + long vinfoMask, attrMask; + XVisualInfo vinfoTemp, *visInfo; + Visual *vis; + Window win, root; + XSetWindowAttributes attr; + XFontStruct *fontInfo; + GC gc; + + if (argc > 1) { + displayName = argv[1]; + } + + dpy = XOpenDisplay(displayName); + if (!dpy) { + fprintf(stderr, "Unable to open display %s\n", displayName); + return -1; + } + + if (!DMXQueryExtension(dpy, &event_base, &error_base)) { + fprintf(stderr, "DMX extension not available on this display.\n"); + return -1; + } + + scr = DefaultScreen(dpy); + root = RootWindow(dpy, scr); + vis = DefaultVisual(dpy, scr); + + vinfoMask = VisualIDMask; + vinfoTemp.visualid = vis->visualid; + visInfo = XGetVisualInfo(dpy, vinfoMask, &vinfoTemp, &n); + if (!visInfo || n != 1) { + fprintf(stderr, "Unable to get visual!\n"); + XCloseDisplay(dpy); + return -1; + } + + attr.background_pixel = 0; + attr.border_pixel = 0; + attr.colormap = XCreateColormap(dpy, root, visInfo->visual, AllocNone); + attr.event_mask = StructureNotifyMask | ExposureMask; + attrMask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; + + win = XCreateWindow(dpy, root, + 500, 500, 600, 400, /* x, y, w, h */ + 0, /* border_width */ + visInfo->depth, InputOutput, + visInfo->visual, attrMask, &attr); + + + if (!win) { + fprintf(stderr, "Unable to create window!\n"); + XCloseDisplay(dpy); + return -1; + } + + fontInfo = XLoadQueryFont(dpy, FontName); + if (!fontInfo) { + fprintf(stderr, "Error: font %s not found\n", FontName); + exit(0); + } + + gc = XCreateGC(dpy, win, 0, NULL); + XSetBackground(dpy, gc, BlackPixel(dpy, scr)); + XSetForeground(dpy, gc, WhitePixel(dpy, scr)); + XSetFont(dpy, gc, fontInfo->fid); + + XMapWindow(dpy, win); + + EventLoop(dpy, win, gc); + + XDestroyWindow(dpy, win); + XCloseDisplay(dpy); + return 0; +} + +#if 00 + +static void make_window( char *title, int color_flag ) +{ + int x = 10, y = 10, width = 400, height = 300; + Display *dpy; + int scr; + Window root, win; + Colormap cmap; + XColor xcolor; + int attr_flags; + XVisualInfo *visinfo; + XSetWindowAttributes attr; + XTextProperty tp; + XSizeHints sh; + XEvent e; + XMesaContext context; + XMesaVisual visual; + XMesaBuffer buffer; + + + /* + * Do the usual X things to make a window. + */ + + dpy = XOpenDisplay(NULL); + if (!dpy) { + printf("Couldn't open default display!\n"); + exit(1); + } + + scr = DefaultScreen(dpy); + root = RootWindow(dpy, scr); + + /* alloc visinfo struct */ + visinfo = (XVisualInfo *) malloc( sizeof(XVisualInfo) ); + + /* Get a visual and colormap */ + if (color_flag) { + /* Open TrueColor window */ + +/* + if (!XMatchVisualInfo( dpy, scr, 24, TrueColor, visinfo )) { + printf("Couldn't get 24-bit TrueColor visual!\n"); + exit(1); + } +*/ + if (!XMatchVisualInfo( dpy, scr, 8, PseudoColor, visinfo )) { + printf("Couldn't get 8-bit PseudoColor visual!\n"); + exit(1); + } + + cmap = XCreateColormap( dpy, root, visinfo->visual, AllocNone ); + Black = Red = Green = Blue = 0; + } + else { + /* Open color index window */ + + if (!XMatchVisualInfo( dpy, scr, 8, PseudoColor, visinfo )) { + printf("Couldn't get 8-bit PseudoColor visual\n"); + exit(1); + } + + cmap = XCreateColormap( dpy, root, visinfo->visual, AllocNone ); + + /* Allocate colors */ + xcolor.red = 0x0; + xcolor.green = 0x0; + xcolor.blue = 0x0; + xcolor.flags = DoRed | DoGreen | DoBlue; + if (!XAllocColor( dpy, cmap, &xcolor )) { + printf("Couldn't allocate black!\n"); + exit(1); + } + Black = xcolor.pixel; + + xcolor.red = 0xffff; + xcolor.green = 0x0; + xcolor.blue = 0x0; + xcolor.flags = DoRed | DoGreen | DoBlue; + if (!XAllocColor( dpy, cmap, &xcolor )) { + printf("Couldn't allocate red!\n"); + exit(1); + } + Red = xcolor.pixel; + + xcolor.red = 0x0; + xcolor.green = 0xffff; + xcolor.blue = 0x0; + xcolor.flags = DoRed | DoGreen | DoBlue; + if (!XAllocColor( dpy, cmap, &xcolor )) { + printf("Couldn't allocate green!\n"); + exit(1); + } + Green = xcolor.pixel; + + xcolor.red = 0x0; + xcolor.green = 0x0; + xcolor.blue = 0xffff; + xcolor.flags = DoRed | DoGreen | DoBlue; + if (!XAllocColor( dpy, cmap, &xcolor )) { + printf("Couldn't allocate blue!\n"); + exit(1); + } + Blue = xcolor.pixel; + } + + /* set window attributes */ + attr.colormap = cmap; + attr.event_mask = ExposureMask | StructureNotifyMask; + attr.border_pixel = BlackPixel( dpy, scr ); + attr.background_pixel = BlackPixel( dpy, scr ); + attr_flags = CWColormap | CWEventMask | CWBorderPixel | CWBackPixel; + + /* Create the window */ + win = XCreateWindow( dpy, root, x,y, width, height, 0, + visinfo->depth, InputOutput, + visinfo->visual, + attr_flags, &attr); + if (!win) { + printf("Couldn't open window!\n"); + exit(1); + } + + XStringListToTextProperty(&title, 1, &tp); + sh.flags = USPosition | USSize; + XSetWMProperties(dpy, win, &tp, &tp, 0, 0, &sh, 0, 0); + XMapWindow(dpy, win); + while (1) { + XNextEvent( dpy, &e ); + if (e.type == MapNotify && e.xmap.window == win) { + break; + } + } + + + /* + * Now do the special Mesa/Xlib stuff! + */ + + visual = XMesaCreateVisual( dpy, visinfo, + (GLboolean) color_flag, + GL_FALSE, /* alpha_flag */ + GL_FALSE, /* db_flag */ + GL_FALSE, /* stereo flag */ + GL_FALSE, /* ximage_flag */ + 0, /* depth size */ + 0, /* stencil size */ + 0,0,0,0, /* accum_size */ + 0, /* num samples */ + 0, /* level */ + 0 /* caveat */ + ); + if (!visual) { + printf("Couldn't create Mesa/X visual!\n"); + exit(1); + } + + /* Create a Mesa rendering context */ + context = XMesaCreateContext( visual, + NULL /* share_list */ + ); + if (!context) { + printf("Couldn't create Mesa/X context!\n"); + exit(1); + } + + buffer = XMesaCreateWindowBuffer( visual, win ); + if (!buffer) { + printf("Couldn't create Mesa/X buffer!\n"); + exit(1); + } + + + XMesaMakeCurrent( context, buffer ); + + /* Ready to render! */ +} + + + +static void draw_cube( void ) +{ + /* X faces */ + glIndexi( Red ); + glColor3f( 1.0, 0.0, 0.0 ); + glBegin( GL_POLYGON ); + glVertex3f( 1.0, 1.0, 1.0 ); + glVertex3f( 1.0, -1.0, 1.0 ); + glVertex3f( 1.0, -1.0, -1.0 ); + glVertex3f( 1.0, 1.0, -1.0 ); + glEnd(); + + glBegin( GL_POLYGON ); + glVertex3f( -1.0, 1.0, 1.0 ); + glVertex3f( -1.0, 1.0, -1.0 ); + glVertex3f( -1.0, -1.0, -1.0 ); + glVertex3f( -1.0, -1.0, 1.0 ); + glEnd(); + + /* Y faces */ + glIndexi( Green ); + glColor3f( 0.0, 1.0, 0.0 ); + glBegin( GL_POLYGON ); + glVertex3f( 1.0, 1.0, 1.0 ); + glVertex3f( 1.0, 1.0, -1.0 ); + glVertex3f( -1.0, 1.0, -1.0 ); + glVertex3f( -1.0, 1.0, 1.0 ); + glEnd(); + + glBegin( GL_POLYGON ); + glVertex3f( 1.0, -1.0, 1.0 ); + glVertex3f( -1.0, -1.0, 1.0 ); + glVertex3f( -1.0, -1.0, -1.0 ); + glVertex3f( 1.0, -1.0, -1.0 ); + glEnd(); + + /* Z faces */ + glIndexi( Blue ); + glColor3f( 0.0, 0.0, 1.0 ); + glBegin( GL_POLYGON ); + glVertex3f( 1.0, 1.0, 1.0 ); + glVertex3f( -1.0, 1.0, 1.0 ); + glVertex3f( -1.0, -1.0, 1.0 ); + glVertex3f( 1.0, -1.0, 1.0 ); + glEnd(); + + glBegin( GL_POLYGON ); + glVertex3f( 1.0, 1.0, -1.0 ); + glVertex3f( 1.0,-1.0, -1.0 ); + glVertex3f( -1.0,-1.0, -1.0 ); + glVertex3f( -1.0, 1.0, -1.0 ); + glEnd(); +} + + + + +static void display_loop( void ) +{ + GLfloat xrot, yrot, zrot; + + xrot = yrot = zrot = 0.0; + + glClearColor( 0.0, 0.0, 0.0, 0.0 ); + glClearIndex( Black ); + + glMatrixMode( GL_PROJECTION ); + glLoadIdentity(); + glFrustum( -1.0, 1.0, -1.0, 1.0, 1.0, 10.0 ); + glTranslatef( 0.0, 0.0, -5.0 ); + + glMatrixMode( GL_MODELVIEW ); + glLoadIdentity(); + + glCullFace( GL_BACK ); + glEnable( GL_CULL_FACE ); + + glShadeModel( GL_FLAT ); + + while (1) { + glClear( GL_COLOR_BUFFER_BIT ); + glPushMatrix(); + glRotatef( xrot, 1.0, 0.0, 0.0 ); + glRotatef( yrot, 0.0, 1.0, 0.0 ); + glRotatef( zrot, 0.0, 0.0, 1.0 ); + + draw_cube(); + + glPopMatrix(); + glFinish(); + + xrot += 10.0; + yrot += 7.0; + zrot -= 3.0; + } + +} + + + + +int main( int argc, char *argv[] ) +{ + int mode = 0; + + if (argc >= 2) + { + if (strcmp(argv[1],"-ci")==0) + mode = 0; + else if (strcmp(argv[1],"-rgb")==0) + mode = 1; + else + { + printf("Bad flag: %s\n", argv[1]); + printf("Specify -ci for 8-bit color index or -rgb for RGB mode\n"); + exit(1); + } + } + else + { + printf("Specify -ci for 8-bit color index or -rgb for RGB mode\n"); + printf("Defaulting to 8-bit color index\n"); + } + + make_window( argv[0], mode ); + + display_loop(); + return 0; +} + + +#endif diff --git a/xorg-server/hw/dmx/examples/ev.c b/xorg-server/hw/dmx/examples/ev.c new file mode 100644 index 000000000..ba45c2b25 --- /dev/null +++ b/xorg-server/hw/dmx/examples/ev.c @@ -0,0 +1,182 @@ +/* + * Copyright 2002 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * This is a simple test program that reads from /dev/input/event*, + * decoding events into a human readable form. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <string.h> +#include <sys/types.h> +#include <fcntl.h> +#include <errno.h> +#include <time.h> +#include <linux/input.h> + +struct input_event event; + +int main(int argc, char **argv) +{ + char name[64]; /* RATS: Use ok, but could be better */ + char buf[256] = { 0, }; /* RATS: Use ok */ + unsigned char mask[EV_MAX/8 + 1]; /* RATS: Use ok */ + int version; + int fd = 0; + int rc; + int i, j; + char *tmp; + +#define test_bit(bit) (mask[(bit)/8] & (1 << ((bit)%8))) + + for (i = 0; i < 32; i++) { + sprintf(name, "/dev/input/event%d", i); + if ((fd = open(name, O_RDONLY, 0)) >= 0) { + ioctl(fd, EVIOCGVERSION, &version); + ioctl(fd, EVIOCGNAME(sizeof(buf)), buf); + ioctl(fd, EVIOCGBIT(0, sizeof(mask)), mask); + printf("%s\n", name); + printf(" evdev version: %d.%d.%d\n", + version >> 16, (version >> 8) & 0xff, version & 0xff); + printf(" name: %s\n", buf); + printf(" features:"); + for (j = 0; j < EV_MAX; j++) { + if (test_bit(j)) { + const char *type = "unknown"; + switch(j) { + case EV_KEY: type = "keys/buttons"; break; + case EV_REL: type = "relative"; break; + case EV_ABS: type = "absolute"; break; + case EV_MSC: type = "reserved"; break; + case EV_LED: type = "leds"; break; + case EV_SND: type = "sound"; break; + case EV_REP: type = "repeat"; break; + case EV_FF: type = "feedback"; break; + } + printf(" %s", type); + } + } + printf("\n"); + close(fd); + } + } + + if (argc > 1) { + sprintf(name, "/dev/input/event%d", atoi(argv[1])); + if ((fd = open(name, O_RDWR, 0)) >= 0) { + printf("%s: open, fd = %d\n", name, fd); + for (i = 0; i < LED_MAX; i++) { + event.time.tv_sec = time(0); + event.time.tv_usec = 0; + event.type = EV_LED; + event.code = i; + event.value = 0; + write(fd, &event, sizeof(event)); + } + + while ((rc = read(fd, &event, sizeof(event))) > 0) { + printf("%-24.24s.%06lu type 0x%04x; code 0x%04x;" + " value 0x%08x; ", + ctime(&event.time.tv_sec), + event.time.tv_usec, + event.type, event.code, event.value); + switch (event.type) { + case EV_KEY: + if (event.code > BTN_MISC) { + printf("Button %d %s", + event.code & 0xff, + event.value ? "press" : "release"); + } else { + printf("Key %d (0x%x) %s", + event.code & 0xff, + event.code & 0xff, + event.value ? "press" : "release"); + } + break; + case EV_REL: + switch (event.code) { + case REL_X: tmp = "X"; break; + case REL_Y: tmp = "Y"; break; + case REL_HWHEEL: tmp = "HWHEEL"; break; + case REL_DIAL: tmp = "DIAL"; break; + case REL_WHEEL: tmp = "WHEEL"; break; + case REL_MISC: tmp = "MISC"; break; + default: tmp = "UNKNOWN"; break; + } + printf("Relative %s %d", tmp, event.value); + break; + case EV_ABS: + switch (event.code) { + case ABS_X: tmp = "X"; break; + case ABS_Y: tmp = "Y"; break; + case ABS_Z: tmp = "Z"; break; + case ABS_RX: tmp = "RX"; break; + case ABS_RY: tmp = "RY"; break; + case ABS_RZ: tmp = "RZ"; break; + case ABS_THROTTLE: tmp = "THROTTLE"; break; + case ABS_RUDDER: tmp = "RUDDER"; break; + case ABS_WHEEL: tmp = "WHEEL"; break; + case ABS_GAS: tmp = "GAS"; break; + case ABS_BRAKE: tmp = "BRAKE"; break; + case ABS_HAT0X: tmp = "HAT0X"; break; + case ABS_HAT0Y: tmp = "HAT0Y"; break; + case ABS_HAT1X: tmp = "HAT1X"; break; + case ABS_HAT1Y: tmp = "HAT1Y"; break; + case ABS_HAT2X: tmp = "HAT2X"; break; + case ABS_HAT2Y: tmp = "HAT2Y"; break; + case ABS_HAT3X: tmp = "HAT3X"; break; + case ABS_HAT3Y: tmp = "HAT3Y"; break; + case ABS_PRESSURE: tmp = "PRESSURE"; break; + case ABS_DISTANCE: tmp = "DISTANCE"; break; + case ABS_TILT_X: tmp = "TILT_X"; break; + case ABS_TILT_Y: tmp = "TILT_Y"; break; + case ABS_MISC: tmp = "MISC"; break; + default: tmp = "UNKNOWN"; break; + } + printf("Absolute %s %d", tmp, event.value); + break; + case EV_MSC: printf("Misc"); break; + case EV_LED: printf("Led"); break; + case EV_SND: printf("Snd"); break; + case EV_REP: printf("Rep"); break; + case EV_FF: printf("FF"); break; + break; + } + printf("\n"); + } + printf("rc = %d, (%s)\n", rc, strerror(errno)); + close(fd); + } + } + return 0; +} diff --git a/xorg-server/hw/dmx/examples/evi.c b/xorg-server/hw/dmx/examples/evi.c new file mode 100644 index 000000000..644ea8f51 --- /dev/null +++ b/xorg-server/hw/dmx/examples/evi.c @@ -0,0 +1,86 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/XEVI.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int major_version, minor_version; + ExtendedVisualInfo *evi; + int count; + int i; + + if (argc == 2) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + } else { + printf("Usage: %s display\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + if (!XeviQueryVersion(display, &major_version, &minor_version)) { + printf("EVI extension not present\n"); + return -1; + } + printf("EVI Extension version: %d.%d\n", major_version, minor_version); + + XeviGetVisualInfo(display, NULL, 0, &evi, &count); + + for (i = 0; i < count; i++) { + printf("%02d vid=0x%02lx screen=%d level=%d type=%u value=%u" + " min=%u max=%u conflicts=%u\n", + i, + (long unsigned)evi[i].core_visual_id, + evi[i].screen, + evi[i].level, + evi[i].transparency_type, + evi[i].transparency_value, + evi[i].min_hw_colormaps, + evi[i].max_hw_colormaps, + evi[i].num_colormap_conflicts); + } + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/res.c b/xorg-server/hw/dmx/examples/res.c new file mode 100644 index 000000000..901a1958b --- /dev/null +++ b/xorg-server/hw/dmx/examples/res.c @@ -0,0 +1,99 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/XRes.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int major_version, minor_version; + int event, error; + int count; + int i; + XResClient *clients; + + if (argc == 2) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + } else { + printf("Usage: %s display\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + if (!XResQueryExtension(display, &event, &error)) { + printf("X-Resource extension not present\n"); + return -1; + } + printf("X-Resource extension present: event=%d error=%d\n", event, error); + + if (!XResQueryVersion(display, &major_version, &minor_version)) { + printf("XResQueryVersion call failed\n"); + return -1; + } + printf("X-Resource extension version: %d.%d\n", + major_version, minor_version); + + XResQueryClients(display, &count, &clients); + + printf("%d clients:\n", count); + for (i = 0; i < count; i++) { + int c, j; + XResType *types; + + XResQueryClientResources(display, clients[i].resource_base, + &c, &types); + printf(" %3d: base = 0x%lx, mask = 0x%lx, %d resource types:\n", + i, (long unsigned)clients[i].resource_base, + (long unsigned)clients[i].resource_mask, c); + for (j = 0; j < c; j++) { + char *name = XGetAtomName(display, types[j].resource_type); + printf(" %2d: %s %d\n", j, name, types[j].count); + XFree(name); + } + XFree(types); + } + + XFree(clients); + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/xbell.c b/xorg-server/hw/dmx/examples/xbell.c new file mode 100644 index 000000000..f3e3be1b8 --- /dev/null +++ b/xorg-server/hw/dmx/examples/xbell.c @@ -0,0 +1,101 @@ +/* + * Copyright 2002 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> + +static void pkc(XKeyboardControl *kc, unsigned long vm) +{ + if (vm&KBKeyClickPercent) + printf(" key_click_percent = %d\n", kc->key_click_percent); + if (vm&KBBellPercent) + printf(" bell_percent = %d\n", kc->bell_percent); + if (vm&KBBellPitch) + printf(" bell_pitch = %d\n", kc->bell_pitch); + if (vm&KBBellDuration) + printf(" bell_duration = %d\n", kc->bell_duration); + if (vm&KBLed) + printf(" led = 0x%x\n", kc->led); + if (vm&KBLedMode) + printf(" led_mode = %d\n", kc->led_mode); + if (vm&KBKey) + printf(" key = %d\n", kc->key); + if (vm&KBAutoRepeatMode) + printf(" auto_repeat_mode = %d\n", kc->auto_repeat_mode); +} + +static void pks(XKeyboardState *ks) +{ + printf(" key_click_percent = %d\n", ks->key_click_percent); + printf(" bell_percent = %d\n", ks->bell_percent); + printf(" bell_pitch = %u\n", ks->bell_pitch); + printf(" bell_duration = %u\n", ks->bell_duration); + printf(" led_mask = 0x%lx\n", ks->led_mask); + printf(" global_auto_repeat = %d\n", ks->global_auto_repeat); +} + +int main(int argc, char **argv) +{ + Display *display = XOpenDisplay(NULL); + XKeyboardControl kc; + XKeyboardState ks; + unsigned long vm; + int percent; + + if (argc != 5) { + printf("Usage: xbell percent baseVolume pitch duration\n"); + return 1; + } + + vm = (KBBellPercent + | KBBellPitch + | KBBellDuration); + percent = atoi(argv[1]); + kc.bell_percent = atoi(argv[2]); + kc.bell_pitch = atoi(argv[3]); + kc.bell_duration = atoi(argv[4]); + + printf("Setting:\n"); + pkc(&kc, vm); + XChangeKeyboardControl(display, vm, &kc); + + printf("Have:\n"); + XGetKeyboardControl(display, &ks); + pks(&ks); + + XBell(display, 100); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/xdmx.c b/xorg-server/hw/dmx/examples/xdmx.c new file mode 100644 index 000000000..dedce6e8d --- /dev/null +++ b/xorg-server/hw/dmx/examples/xdmx.c @@ -0,0 +1,239 @@ +/* + * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/dmxext.h> + +static void indent(int level) +{ + int i; + for (i = 0; i < level; i++) printf(" "); +} + +static void print_window_id(const char *displayName, Display *display, + Window window, int level, int child) +{ + char *name; + + if (!XFetchName(display, window, &name)) name = NULL; + indent(level); + if (child) printf("(%d) ", child); + printf("%s window 0x%08lx: %s%s\n", + displayName, + (long unsigned)window, + name ? name : "", + (window == DefaultRootWindow(display)) + ? " (DMX root window)" : ""); + if (name) XFree(name); +} + +static void print_info(Display *display, Window window, int level, int child) +{ + DMXWindowAttributes winfo[128]; + int count; + int i; + + if (!DMXGetWindowAttributes(display, window, &count, 128, winfo)) { + printf("Could not get window information for 0x%08lx\n", + (long unsigned)window); + exit(-2); + } + printf("\n"); + print_window_id("DMX", display, window, level, child); + for (i = 0; i < count; i++) { + DMXScreenAttributes sinfo; + Display *backend; + + /* This could also be cached -- the information doesn't change. */ + if (!DMXGetScreenAttributes(display, winfo[i].screen, &sinfo)) { + printf("Could not get screen information for screen %d\n", i); + exit(-2); + } + if (!(backend = XOpenDisplay(sinfo.displayName))) { + printf("Cannot open backend display %s\n", sinfo.displayName); + exit(-2); + } + XCloseDisplay(backend); + + indent(level+1); + printf("%s window 0x%08lx: %dx%d%+d%+d", + sinfo.displayName, + (long unsigned)winfo[i].window, + winfo[i].pos.width, winfo[i].pos.height, + winfo[i].pos.x, winfo[i].pos.y); + if (!winfo[i].vis.width + && !winfo[i].vis.height + && !winfo[i].vis.x + && !winfo[i].vis.y) printf(" not visible\n"); + else if (winfo[i].vis.width == winfo[i].pos.width + && winfo[i].vis.height == winfo[i].pos.height) { + printf( " %+d%+d\n", winfo[i].vis.x, winfo[i].vis.y); + } else { + printf( " %dx%d%+d%+d\n", + winfo[i].vis.width, winfo[i].vis.height, + winfo[i].vis.x, winfo[i].vis.y); + } + } +} + +static void print_tree(Display *display, Window window, int level, int child) +{ + Window root, parent; + Window *list; + unsigned int count; + unsigned int i; + + print_info(display, window, level, child); + + if (!XQueryTree(display, window, &root, &parent, &list, &count)) { + printf("Cannot query window tree for 0x%08lx\n", + (long unsigned)window); + exit(-3); + } + + if (count) { + indent(level+1); + printf("%d child%s:\n", count, count > 1 ? "ren" : ""); + for (i = 0; i < count; i++) { + print_tree(display, list[i], level+1, i+1); + } + } +} + +static const char *core(DMXInputAttributes *iinfo) +{ + if (iinfo->isCore) return "core"; + else if (iinfo->sendsCore) return "extension (sends core)"; + else return "extension"; +} + +int main(int argc, char **argv) +{ + Display *display = NULL; + Window window = 0; + int event_base; + int error_base; + int major_version, minor_version, patch_version; + DMXScreenAttributes sinfo; + DMXInputAttributes iinfo; + int count; + int i; + + if (argc == 2 || argc == 3) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + if (argc == 3) window = strtol(argv[2], NULL, 0); + } else { + printf("Usage: %s display [windowid]\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + if (!DMXQueryExtension(display, &event_base, &error_base)) { + printf("DMX extension not present\n"); + return -1; + } + printf("DMX extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + + if (!DMXQueryVersion(display, + &major_version, &minor_version, &patch_version)) { + printf("Could not get extension version\n"); + return -1; + } + printf("Extension version: %d.%d patch %d\n", + major_version, minor_version, patch_version); + + if (!DMXGetScreenCount(display, &count)) { + printf("Could not get screen count\n"); + return -1; + } + printf("Screen count = %d\n", count); + + for (i = 0; i < count; i++) { + if (!DMXGetScreenAttributes(display, i, &sinfo)) { + printf("Could not get screen information for %d\n", i); + return -1; + } + printf("%d: %s %ux%u+%d+%d %d @%dx%d (root: %dx%d%+d%+d)\n", + i, sinfo.displayName, + sinfo.screenWindowWidth, sinfo.screenWindowHeight, + sinfo.screenWindowXoffset, sinfo.screenWindowYoffset, + sinfo.logicalScreen, + sinfo.rootWindowXorigin, sinfo.rootWindowYorigin, + sinfo.rootWindowWidth, sinfo.rootWindowHeight, + sinfo.rootWindowXoffset, sinfo.rootWindowYoffset); + } + + if (major_version == 1 && minor_version >= 1) { + if (!DMXGetInputCount(display, &count)) { + printf("Could not get input count\n"); + return -1; + } + printf("Input count = %d\n", count); + for (i = 0; i < count; i++) { + if (!DMXGetInputAttributes(display, i, &iinfo)) { + printf("Could not get input information for id %d\n", i); + return -1; + } + switch (iinfo.inputType) { + case DMXLocalInputType: + printf(" %2d local %-20.20s %s\n", i, "", core(&iinfo)); + break; + case DMXConsoleInputType: + printf(" %2d console %-20.20s %s\n", + i, iinfo.name, core(&iinfo)); + break; + case DMXBackendInputType: + printf(" %2d backend %-20.20s id=%2d screen=%2d %s\n", + i, iinfo.name, iinfo.physicalId, iinfo.physicalScreen, + core(&iinfo)); + break; + } + } + } + + if (window) print_info(display, window, 0, 0); + else print_tree(display, DefaultRootWindow(display), 0, 0); + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/xinput.c b/xorg-server/hw/dmx/examples/xinput.c new file mode 100644 index 000000000..b6753e4ec --- /dev/null +++ b/xorg-server/hw/dmx/examples/xinput.c @@ -0,0 +1,318 @@ +/* + * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <X11/Xlib.h> +#include <X11/XKBlib.h> +#include <X11/extensions/XInput.h> +#include <X11/extensions/XKB.h> +#include "xkbstr.h" +#include <X11/extensions/dmxext.h> +#include <sys/time.h> + +static const char *core(DMXInputAttributes *iinf) +{ + if (iinf->isCore) return "core"; + else if (iinf->sendsCore) return "extension (sends core events)"; + else return "extension"; +} + +static void printdmxinfo(Display *display, int id) +{ + int event_base; + int error_base; + int major_version, minor_version, patch_version; + DMXInputAttributes iinf; + Display *backend; + char *backendname = NULL; + + if (!DMXQueryExtension(display, &event_base, &error_base)) return; + if (!DMXQueryVersion(display, &major_version, &minor_version, + &patch_version)) return; + if (major_version == 1 && minor_version == 0) return; /* too old */ + if (!DMXGetInputAttributes(display, id, &iinf)) return; + + printf(" DMX Information: "); + if (iinf.detached) printf("detached "); + else printf("active "); + switch (iinf.inputType) { + case DMXLocalInputType: + printf("local, %s", core(&iinf)); + break; + case DMXConsoleInputType: + printf("console %s, %s", iinf.name, core(&iinf)); + break; + case DMXBackendInputType: + if (iinf.physicalId >= 0) { + if ((backend = XOpenDisplay(iinf.name))) { + XExtensionVersion *ext = XGetExtensionVersion(backend, INAME); + if (ext && ext != (XExtensionVersion *)NoSuchExtension) { + int count, i; + XDeviceInfo *devInfo = XListInputDevices(backend, &count); + if (devInfo) { + for (i = 0; i < count; i++) { + if ((unsigned)iinf.physicalId == devInfo[i].id + && devInfo[i].name) { + backendname = strdup(devInfo[i].name); + break; + } + } + XFreeDeviceList(devInfo); + } + } + XCloseDisplay(backend); + } + } + printf("backend o%d/%s",iinf.physicalScreen, iinf.name); + if (iinf.physicalId >= 0) printf("/id%d", iinf.physicalId); + if (backendname) { + printf("=%s", backendname); + free(backendname); + } + printf(" %s", core(&iinf)); + break; + } + printf("\n"); +} + +int main(int argc, char **argv) +{ + Display *display = NULL; + int device = -1; + int newmouse = -1; + int newkbd = -1; + int count; + int i, j; + XDeviceInfo *devInfo; + XExtensionVersion *ext; + + if (argc == 2 || argc == 3 || argc == 4 || argc == 5) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + if (argc >= 3) device = strtol(argv[2], NULL, 0); + if (argc >= 4) newmouse = strtol(argv[3], NULL, 0); + if (argc >= 5) newkbd = strtol(argv[4], NULL, 0); + } else { + printf("Usage: %s display [device] [newmouse] [newkbd]\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + ext = XGetExtensionVersion(display, INAME); + if (!ext || ext == (XExtensionVersion *)NoSuchExtension) { + printf("No XInputExtension\n"); + return -1; + } + printf("%s version %d.%d\n", + INAME, ext->major_version, ext->minor_version); + + if (!(devInfo = XListInputDevices(display, &count)) || !count) { + printf("Cannot list devices\n"); + return -1; + } + + for (i = 0; i < count; i++) { + XAnyClassPtr any; + const char *kind = "Unknown"; + int has_key = 0; + + switch (devInfo[i].use) { + case IsXPointer: kind = "XPointer"; break; + case IsXKeyboard: kind = "XKeyboard"; break; + case IsXExtensionDevice: kind = "XExtensionDevice"; break; + } + printf("%2lu %-20.20s %-16.16s", + (long unsigned)devInfo[i].id, + devInfo[i].name ? devInfo[i].name : "", kind); + + for (j = 0, any = devInfo[i].inputclassinfo; + j < devInfo[i].num_classes; + any = (XAnyClassPtr)((char *)any + any->length), j++) { + const char *class = "unk"; + switch (any->class) { + case KeyClass: class = "key"; ++has_key; break; + case ButtonClass: class = "btn"; break; + case ValuatorClass: class = "val"; break; + case FeedbackClass: class = "fdb"; break; + case ProximityClass: class = "prx"; break; + case FocusClass: class = "foc"; break; + case OtherClass: class = "oth"; break; + } + printf(" %s", class); + } + printf("\n"); + printdmxinfo(display, i); + + if (has_key) { + XkbDescPtr xkb; + if ((xkb = XkbGetKeyboard(display, + XkbAllComponentsMask, + devInfo[i].id))) { + printf(" Xkb Information:\n"); + printf(" Device id = %d\n", xkb->device_spec); + printf(" Min keycode = 0x%02x\n", xkb->min_key_code); + printf(" Max keycode = 0x%02x\n", xkb->max_key_code); +#define PRINTNAME(x) \ + printf(" %s = %s\n", \ + #x, xkb->names->x ? XGetAtomName(display, xkb->names->x) : "") + PRINTNAME(keycodes); + PRINTNAME(geometry); + PRINTNAME(symbols); + PRINTNAME(types); + PRINTNAME(compat); + } + } + } + + if (newmouse >= 0) { + XDevice *dev; + + printf("Trying to make device %d core mouse\n", newmouse); + dev = XOpenDevice(display, devInfo[newmouse].id); + printf("Status = %d\n", + XChangePointerDevice(display, dev, 0, 1)); + return 0; + } + + if (newkbd >= 0) { + XDevice *dev; + + printf("Trying to make device %d core keyboard\n", newkbd); + dev = XOpenDevice(display, devInfo[newkbd].id); + printf("Status = %d\n", + XChangeKeyboardDevice(display, dev)); + return 0; + } + + + if (device >=0){ +#define MAX_EVENTS 100 + int cnt = 0; + XDevice *dev; + XEventClass event_list[MAX_EVENTS]; + int event_type[MAX_EVENTS]; + const char *names[MAX_EVENTS]; + int total = 0; + +#define ADD(type) \ + if (cnt >= MAX_EVENTS) abort(); \ + names[cnt] = #type; \ + type(dev, event_type[cnt], event_list[cnt]); \ + if (event_type[cnt]) ++cnt + + + dev = XOpenDevice(display, devInfo[device].id); + ADD(DeviceKeyPress); + ADD(DeviceKeyRelease); + ADD(DeviceButtonPress); + ADD(DeviceButtonRelease); + ADD(DeviceMotionNotify); + ADD(DeviceFocusIn); + ADD(DeviceFocusOut); + ADD(ProximityIn); + ADD(ProximityOut); + ADD(DeviceStateNotify); + ADD(DeviceMappingNotify); + ADD(ChangeDeviceNotify); + + for (i = 0; i < cnt; i++) { + printf("Waiting for %s events of type %d (%lu) on 0x%08lx\n", + names[i], + event_type[i], (unsigned long)event_list[i], + (long unsigned)DefaultRootWindow(display)); + } + XSelectExtensionEvent(display, DefaultRootWindow(display), + event_list, cnt); + + for (;;) { + XEvent event; + XNextEvent(display, &event); + for (i = 0; i < cnt; i++) { + XDeviceMotionEvent *e = (XDeviceMotionEvent *)&event; + XDeviceButtonEvent *b = (XDeviceButtonEvent *)&event; + if (event.type == event_type[i]) { + printf("%s id=%lu (%d @ %d,%d; s=0x%04x, d=%d, t=%lu)" + " axes_count=%d first=%d %d %d %d %d %d %d\n", + names[i], + (long unsigned)e->deviceid, + e->type, + e->x, e->y, + e->device_state, + b->button, + (long unsigned)b->time, + e->axes_count, + e->first_axis, + e->axis_data[0], + e->axis_data[1], + e->axis_data[2], + e->axis_data[3], + e->axis_data[4], + e->axis_data[5]); + } + } + ++total; +#if 0 + /* Used to check motion history for + * extension devices. */ + if (!(total % 10)) { + XDeviceTimeCoord *tc; + int n, m, a; + struct timeval tv; + unsigned long ms; + gettimeofday(&tv, NULL); + ms = tv.tv_sec * 1000 + tv.tv_usec / 1000; + tc = XGetDeviceMotionEvents(display, dev, ms-1000, ms, + &n, &m, &a); + printf("Got %d events of mode %s with %d axes\n", + n, m == Absolute ? "Absolute" : "Relative", a); + for (i = 0; i < n && i < 10; i++) { + printf(" %d: %lu %d %d\n", + i, tc[i].time, tc[i].data[0], tc[i].data[1]); + } + XFreeDeviceMotionEvents(tc); + } +#endif + } + } + + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/xled.c b/xorg-server/hw/dmx/examples/xled.c new file mode 100644 index 000000000..322dda2f3 --- /dev/null +++ b/xorg-server/hw/dmx/examples/xled.c @@ -0,0 +1,124 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <X11/Xlib.h> +#include <X11/XKBlib.h> +#include <X11/extensions/XKB.h> +#include "xkbstr.h" +#include <sys/time.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int mask = 0; + unsigned i; + XKeyboardState ks; + XKeyboardControl kc; + XkbDescPtr xkb; + int old[32]; + + if (argc == 2 || argc == 3) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + if (argc >= 3) mask = strtol(argv[2], NULL, 0); + } else { + printf("Usage: %s display [mask]\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + if (!(xkb = XkbAllocKeyboard())) { + printf("Cannot allocate\n"); + return -1; + } + if (XkbGetIndicatorMap(display, XkbAllIndicatorsMask, xkb)) { + printf("Cannot Get Indicators\n"); + return -1; + } + if (XkbGetNames(display, XkbAllNamesMask, xkb)) { + printf("Cannot Get Names\n"); + return -1; + } + for (i = 0; i < XkbNumIndicators; i++) { + if (xkb->indicators->phys_indicators & (1 << i)) { + printf("led %d = %d\n", i, xkb->indicators->maps[i].flags); + old[i] = xkb->indicators->maps[i].flags; + xkb->indicators->maps[i].flags = XkbIM_NoAutomatic; + } + } + printf("XkbSetIndicatorMap = %d\n", XkbSetIndicatorMap(display, ~0, xkb)); + XkbFreeKeyboard(xkb, 0, True); + + + if (!(xkb = XkbAllocKeyboard())) { + printf("Cannot allocate\n"); + return -1; + } + if (XkbGetIndicatorMap(display, XkbAllIndicatorsMask, xkb)) { + printf("Cannot Get Indicators\n"); + return -1; + } + for (i = 0; i < XkbNumIndicators; i++) { + if (xkb->indicators->phys_indicators & (1 << i)) + printf("led %d = %d\n", i, xkb->indicators->maps[i].flags); + } + + printf("XGetKeyboardControl = %d\n", XGetKeyboardControl(display, &ks)); + printf("old mask = 0x%08lx\n", ks.led_mask); + for (i = 0; i < 5; i++) { + kc.led = i + 1; + kc.led_mode = (mask & (1 << i)) ? LedModeOn : LedModeOff; + printf("XChangeKeyboardControl = %d\n", + XChangeKeyboardControl(display, KBLed | KBLedMode, &kc)); + } + printf("XGetKeyboardControl = %d\n", XGetKeyboardControl(display, &ks)); + printf("new mask = 0x%08lx\n", ks.led_mask); + + for (i = 0; i < XkbNumIndicators; i++) + if (xkb->indicators->phys_indicators & (i << 1)) + xkb->indicators->maps[i].flags = old[i]; + printf("XkbSetIndicatorMap = %d\n", XkbSetIndicatorMap(display, ~0, xkb)); + + XkbFreeKeyboard(xkb, 0, True); + XCloseDisplay(display); + return 0; +} diff --git a/xorg-server/hw/dmx/examples/xtest.c b/xorg-server/hw/dmx/examples/xtest.c new file mode 100644 index 000000000..1e2d1cfff --- /dev/null +++ b/xorg-server/hw/dmx/examples/xtest.c @@ -0,0 +1,75 @@ +/* + * Copyright 2003 Red Hat Inc., Durham, North Carolina. + * + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation on the rights to use, copy, modify, merge, + * publish, distribute, sublicense, and/or sell copies of the Software, + * and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial + * portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/* + * Authors: + * Rickard E. (Rik) Faith <faith@redhat.com> + * + */ + +#include <stdio.h> +#include <stdlib.h> +#include <X11/Xlib.h> +#include <X11/extensions/XTest.h> + +int main(int argc, char **argv) +{ + Display *display = NULL; + int event_base; + int error_base; + int major_version, minor_version; + + if (argc == 2) { + if (!(display = XOpenDisplay(argv[1]))) { + printf("Cannot open display %s\n", argv[1]); + return -1; + } + } else { + printf("Usage: %s display\n", argv[0]); + return -1; + } + + if (!display && !(display = XOpenDisplay(NULL))) { + printf("Cannot open default display\n"); + return -1; + } + + if (!XTestQueryExtension(display, &event_base, &error_base, + &major_version, &minor_version)) { + printf("XTEST extension not present\n"); + return -1; + } + printf("XTEST extension present: event_base = %d, error_base = %d\n", + event_base, error_base); + printf("Extension version: %d.%d\n", major_version, minor_version); + + XTestFakeKeyEvent(display, 30, True, 10); + XTestFakeKeyEvent(display, 30, False, 10); + + XCloseDisplay(display); + return 0; +} |