Add efacf056cd
This commit is contained in:
220
dockerdoom/trunk/textscreen/examples/.deps/calculator.Po
Normal file
220
dockerdoom/trunk/textscreen/examples/.deps/calculator.Po
Normal file
@ -0,0 +1,220 @@
|
||||
calculator.o: calculator.c /usr/include/stdio.h /usr/include/features.h \
|
||||
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
|
||||
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stddef.h \
|
||||
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
|
||||
/usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdarg.h \
|
||||
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
||||
/usr/include/bits/stdio.h /usr/include/bits/stdio2.h \
|
||||
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
|
||||
/usr/include/bits/waitstatus.h /usr/include/endian.h \
|
||||
/usr/include/bits/endian.h /usr/include/bits/byteswap.h \
|
||||
/usr/include/xlocale.h /usr/include/sys/types.h /usr/include/time.h \
|
||||
/usr/include/sys/select.h /usr/include/bits/select.h \
|
||||
/usr/include/bits/sigset.h /usr/include/bits/time.h \
|
||||
/usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
||||
/usr/include/alloca.h /usr/include/bits/stdlib.h /usr/include/string.h \
|
||||
/usr/include/bits/string.h /usr/include/bits/string2.h \
|
||||
/usr/include/bits/string3.h ../textscreen.h ../../src/doomkeys.h \
|
||||
../txt_main.h ../txt_sdl.h /usr/include/SDL/SDL.h \
|
||||
/usr/include/SDL/SDL_main.h /usr/include/SDL/SDL_stdinc.h \
|
||||
/usr/include/SDL/SDL_config.h /usr/include/SDL/SDL_platform.h \
|
||||
/usr/include/strings.h /usr/include/inttypes.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdint.h \
|
||||
/usr/include/stdint.h /usr/include/bits/wchar.h /usr/include/ctype.h \
|
||||
/usr/include/iconv.h /usr/include/SDL/begin_code.h \
|
||||
/usr/include/SDL/close_code.h /usr/include/SDL/SDL_audio.h \
|
||||
/usr/include/SDL/SDL_error.h /usr/include/SDL/SDL_endian.h \
|
||||
/usr/include/SDL/SDL_mutex.h /usr/include/SDL/SDL_thread.h \
|
||||
/usr/include/SDL/SDL_rwops.h /usr/include/SDL/SDL_cdrom.h \
|
||||
/usr/include/SDL/SDL_cpuinfo.h /usr/include/SDL/SDL_events.h \
|
||||
/usr/include/SDL/SDL_active.h /usr/include/SDL/SDL_keyboard.h \
|
||||
/usr/include/SDL/SDL_keysym.h /usr/include/SDL/SDL_mouse.h \
|
||||
/usr/include/SDL/SDL_video.h /usr/include/SDL/SDL_joystick.h \
|
||||
/usr/include/SDL/SDL_quit.h /usr/include/SDL/SDL_loadso.h \
|
||||
/usr/include/SDL/SDL_timer.h /usr/include/SDL/SDL_version.h \
|
||||
../txt_button.h ../txt_widget.h ../txt_checkbox.h ../txt_desktop.h \
|
||||
../txt_window.h ../txt_table.h ../txt_window_action.h ../txt_dropdown.h \
|
||||
../txt_inputbox.h ../txt_label.h ../txt_radiobutton.h \
|
||||
../txt_scrollpane.h ../txt_separator.h ../txt_spinctrl.h ../txt_strut.h
|
||||
|
||||
/usr/include/stdio.h:
|
||||
|
||||
/usr/include/features.h:
|
||||
|
||||
/usr/include/sys/cdefs.h:
|
||||
|
||||
/usr/include/bits/wordsize.h:
|
||||
|
||||
/usr/include/gnu/stubs.h:
|
||||
|
||||
/usr/include/gnu/stubs-64.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stddef.h:
|
||||
|
||||
/usr/include/bits/types.h:
|
||||
|
||||
/usr/include/bits/typesizes.h:
|
||||
|
||||
/usr/include/libio.h:
|
||||
|
||||
/usr/include/_G_config.h:
|
||||
|
||||
/usr/include/wchar.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdarg.h:
|
||||
|
||||
/usr/include/bits/stdio_lim.h:
|
||||
|
||||
/usr/include/bits/sys_errlist.h:
|
||||
|
||||
/usr/include/bits/stdio.h:
|
||||
|
||||
/usr/include/bits/stdio2.h:
|
||||
|
||||
/usr/include/stdlib.h:
|
||||
|
||||
/usr/include/bits/waitflags.h:
|
||||
|
||||
/usr/include/bits/waitstatus.h:
|
||||
|
||||
/usr/include/endian.h:
|
||||
|
||||
/usr/include/bits/endian.h:
|
||||
|
||||
/usr/include/bits/byteswap.h:
|
||||
|
||||
/usr/include/xlocale.h:
|
||||
|
||||
/usr/include/sys/types.h:
|
||||
|
||||
/usr/include/time.h:
|
||||
|
||||
/usr/include/sys/select.h:
|
||||
|
||||
/usr/include/bits/select.h:
|
||||
|
||||
/usr/include/bits/sigset.h:
|
||||
|
||||
/usr/include/bits/time.h:
|
||||
|
||||
/usr/include/sys/sysmacros.h:
|
||||
|
||||
/usr/include/bits/pthreadtypes.h:
|
||||
|
||||
/usr/include/alloca.h:
|
||||
|
||||
/usr/include/bits/stdlib.h:
|
||||
|
||||
/usr/include/string.h:
|
||||
|
||||
/usr/include/bits/string.h:
|
||||
|
||||
/usr/include/bits/string2.h:
|
||||
|
||||
/usr/include/bits/string3.h:
|
||||
|
||||
../textscreen.h:
|
||||
|
||||
../../src/doomkeys.h:
|
||||
|
||||
../txt_main.h:
|
||||
|
||||
../txt_sdl.h:
|
||||
|
||||
/usr/include/SDL/SDL.h:
|
||||
|
||||
/usr/include/SDL/SDL_main.h:
|
||||
|
||||
/usr/include/SDL/SDL_stdinc.h:
|
||||
|
||||
/usr/include/SDL/SDL_config.h:
|
||||
|
||||
/usr/include/SDL/SDL_platform.h:
|
||||
|
||||
/usr/include/strings.h:
|
||||
|
||||
/usr/include/inttypes.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdint.h:
|
||||
|
||||
/usr/include/stdint.h:
|
||||
|
||||
/usr/include/bits/wchar.h:
|
||||
|
||||
/usr/include/ctype.h:
|
||||
|
||||
/usr/include/iconv.h:
|
||||
|
||||
/usr/include/SDL/begin_code.h:
|
||||
|
||||
/usr/include/SDL/close_code.h:
|
||||
|
||||
/usr/include/SDL/SDL_audio.h:
|
||||
|
||||
/usr/include/SDL/SDL_error.h:
|
||||
|
||||
/usr/include/SDL/SDL_endian.h:
|
||||
|
||||
/usr/include/SDL/SDL_mutex.h:
|
||||
|
||||
/usr/include/SDL/SDL_thread.h:
|
||||
|
||||
/usr/include/SDL/SDL_rwops.h:
|
||||
|
||||
/usr/include/SDL/SDL_cdrom.h:
|
||||
|
||||
/usr/include/SDL/SDL_cpuinfo.h:
|
||||
|
||||
/usr/include/SDL/SDL_events.h:
|
||||
|
||||
/usr/include/SDL/SDL_active.h:
|
||||
|
||||
/usr/include/SDL/SDL_keyboard.h:
|
||||
|
||||
/usr/include/SDL/SDL_keysym.h:
|
||||
|
||||
/usr/include/SDL/SDL_mouse.h:
|
||||
|
||||
/usr/include/SDL/SDL_video.h:
|
||||
|
||||
/usr/include/SDL/SDL_joystick.h:
|
||||
|
||||
/usr/include/SDL/SDL_quit.h:
|
||||
|
||||
/usr/include/SDL/SDL_loadso.h:
|
||||
|
||||
/usr/include/SDL/SDL_timer.h:
|
||||
|
||||
/usr/include/SDL/SDL_version.h:
|
||||
|
||||
../txt_button.h:
|
||||
|
||||
../txt_widget.h:
|
||||
|
||||
../txt_checkbox.h:
|
||||
|
||||
../txt_desktop.h:
|
||||
|
||||
../txt_window.h:
|
||||
|
||||
../txt_table.h:
|
||||
|
||||
../txt_window_action.h:
|
||||
|
||||
../txt_dropdown.h:
|
||||
|
||||
../txt_inputbox.h:
|
||||
|
||||
../txt_label.h:
|
||||
|
||||
../txt_radiobutton.h:
|
||||
|
||||
../txt_scrollpane.h:
|
||||
|
||||
../txt_separator.h:
|
||||
|
||||
../txt_spinctrl.h:
|
||||
|
||||
../txt_strut.h:
|
220
dockerdoom/trunk/textscreen/examples/.deps/guitest.Po
Normal file
220
dockerdoom/trunk/textscreen/examples/.deps/guitest.Po
Normal file
@ -0,0 +1,220 @@
|
||||
guitest.o: guitest.c /usr/include/stdio.h /usr/include/features.h \
|
||||
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
|
||||
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stddef.h \
|
||||
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
|
||||
/usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdarg.h \
|
||||
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
|
||||
/usr/include/bits/stdio.h /usr/include/bits/stdio2.h \
|
||||
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
|
||||
/usr/include/bits/waitstatus.h /usr/include/endian.h \
|
||||
/usr/include/bits/endian.h /usr/include/bits/byteswap.h \
|
||||
/usr/include/xlocale.h /usr/include/sys/types.h /usr/include/time.h \
|
||||
/usr/include/sys/select.h /usr/include/bits/select.h \
|
||||
/usr/include/bits/sigset.h /usr/include/bits/time.h \
|
||||
/usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \
|
||||
/usr/include/alloca.h /usr/include/bits/stdlib.h /usr/include/string.h \
|
||||
/usr/include/bits/string.h /usr/include/bits/string2.h \
|
||||
/usr/include/bits/string3.h ../textscreen.h ../../src/doomkeys.h \
|
||||
../txt_main.h ../txt_sdl.h /usr/include/SDL/SDL.h \
|
||||
/usr/include/SDL/SDL_main.h /usr/include/SDL/SDL_stdinc.h \
|
||||
/usr/include/SDL/SDL_config.h /usr/include/SDL/SDL_platform.h \
|
||||
/usr/include/strings.h /usr/include/inttypes.h \
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdint.h \
|
||||
/usr/include/stdint.h /usr/include/bits/wchar.h /usr/include/ctype.h \
|
||||
/usr/include/iconv.h /usr/include/SDL/begin_code.h \
|
||||
/usr/include/SDL/close_code.h /usr/include/SDL/SDL_audio.h \
|
||||
/usr/include/SDL/SDL_error.h /usr/include/SDL/SDL_endian.h \
|
||||
/usr/include/SDL/SDL_mutex.h /usr/include/SDL/SDL_thread.h \
|
||||
/usr/include/SDL/SDL_rwops.h /usr/include/SDL/SDL_cdrom.h \
|
||||
/usr/include/SDL/SDL_cpuinfo.h /usr/include/SDL/SDL_events.h \
|
||||
/usr/include/SDL/SDL_active.h /usr/include/SDL/SDL_keyboard.h \
|
||||
/usr/include/SDL/SDL_keysym.h /usr/include/SDL/SDL_mouse.h \
|
||||
/usr/include/SDL/SDL_video.h /usr/include/SDL/SDL_joystick.h \
|
||||
/usr/include/SDL/SDL_quit.h /usr/include/SDL/SDL_loadso.h \
|
||||
/usr/include/SDL/SDL_timer.h /usr/include/SDL/SDL_version.h \
|
||||
../txt_button.h ../txt_widget.h ../txt_checkbox.h ../txt_desktop.h \
|
||||
../txt_window.h ../txt_table.h ../txt_window_action.h ../txt_dropdown.h \
|
||||
../txt_inputbox.h ../txt_label.h ../txt_radiobutton.h \
|
||||
../txt_scrollpane.h ../txt_separator.h ../txt_spinctrl.h ../txt_strut.h
|
||||
|
||||
/usr/include/stdio.h:
|
||||
|
||||
/usr/include/features.h:
|
||||
|
||||
/usr/include/sys/cdefs.h:
|
||||
|
||||
/usr/include/bits/wordsize.h:
|
||||
|
||||
/usr/include/gnu/stubs.h:
|
||||
|
||||
/usr/include/gnu/stubs-64.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stddef.h:
|
||||
|
||||
/usr/include/bits/types.h:
|
||||
|
||||
/usr/include/bits/typesizes.h:
|
||||
|
||||
/usr/include/libio.h:
|
||||
|
||||
/usr/include/_G_config.h:
|
||||
|
||||
/usr/include/wchar.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdarg.h:
|
||||
|
||||
/usr/include/bits/stdio_lim.h:
|
||||
|
||||
/usr/include/bits/sys_errlist.h:
|
||||
|
||||
/usr/include/bits/stdio.h:
|
||||
|
||||
/usr/include/bits/stdio2.h:
|
||||
|
||||
/usr/include/stdlib.h:
|
||||
|
||||
/usr/include/bits/waitflags.h:
|
||||
|
||||
/usr/include/bits/waitstatus.h:
|
||||
|
||||
/usr/include/endian.h:
|
||||
|
||||
/usr/include/bits/endian.h:
|
||||
|
||||
/usr/include/bits/byteswap.h:
|
||||
|
||||
/usr/include/xlocale.h:
|
||||
|
||||
/usr/include/sys/types.h:
|
||||
|
||||
/usr/include/time.h:
|
||||
|
||||
/usr/include/sys/select.h:
|
||||
|
||||
/usr/include/bits/select.h:
|
||||
|
||||
/usr/include/bits/sigset.h:
|
||||
|
||||
/usr/include/bits/time.h:
|
||||
|
||||
/usr/include/sys/sysmacros.h:
|
||||
|
||||
/usr/include/bits/pthreadtypes.h:
|
||||
|
||||
/usr/include/alloca.h:
|
||||
|
||||
/usr/include/bits/stdlib.h:
|
||||
|
||||
/usr/include/string.h:
|
||||
|
||||
/usr/include/bits/string.h:
|
||||
|
||||
/usr/include/bits/string2.h:
|
||||
|
||||
/usr/include/bits/string3.h:
|
||||
|
||||
../textscreen.h:
|
||||
|
||||
../../src/doomkeys.h:
|
||||
|
||||
../txt_main.h:
|
||||
|
||||
../txt_sdl.h:
|
||||
|
||||
/usr/include/SDL/SDL.h:
|
||||
|
||||
/usr/include/SDL/SDL_main.h:
|
||||
|
||||
/usr/include/SDL/SDL_stdinc.h:
|
||||
|
||||
/usr/include/SDL/SDL_config.h:
|
||||
|
||||
/usr/include/SDL/SDL_platform.h:
|
||||
|
||||
/usr/include/strings.h:
|
||||
|
||||
/usr/include/inttypes.h:
|
||||
|
||||
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/stdint.h:
|
||||
|
||||
/usr/include/stdint.h:
|
||||
|
||||
/usr/include/bits/wchar.h:
|
||||
|
||||
/usr/include/ctype.h:
|
||||
|
||||
/usr/include/iconv.h:
|
||||
|
||||
/usr/include/SDL/begin_code.h:
|
||||
|
||||
/usr/include/SDL/close_code.h:
|
||||
|
||||
/usr/include/SDL/SDL_audio.h:
|
||||
|
||||
/usr/include/SDL/SDL_error.h:
|
||||
|
||||
/usr/include/SDL/SDL_endian.h:
|
||||
|
||||
/usr/include/SDL/SDL_mutex.h:
|
||||
|
||||
/usr/include/SDL/SDL_thread.h:
|
||||
|
||||
/usr/include/SDL/SDL_rwops.h:
|
||||
|
||||
/usr/include/SDL/SDL_cdrom.h:
|
||||
|
||||
/usr/include/SDL/SDL_cpuinfo.h:
|
||||
|
||||
/usr/include/SDL/SDL_events.h:
|
||||
|
||||
/usr/include/SDL/SDL_active.h:
|
||||
|
||||
/usr/include/SDL/SDL_keyboard.h:
|
||||
|
||||
/usr/include/SDL/SDL_keysym.h:
|
||||
|
||||
/usr/include/SDL/SDL_mouse.h:
|
||||
|
||||
/usr/include/SDL/SDL_video.h:
|
||||
|
||||
/usr/include/SDL/SDL_joystick.h:
|
||||
|
||||
/usr/include/SDL/SDL_quit.h:
|
||||
|
||||
/usr/include/SDL/SDL_loadso.h:
|
||||
|
||||
/usr/include/SDL/SDL_timer.h:
|
||||
|
||||
/usr/include/SDL/SDL_version.h:
|
||||
|
||||
../txt_button.h:
|
||||
|
||||
../txt_widget.h:
|
||||
|
||||
../txt_checkbox.h:
|
||||
|
||||
../txt_desktop.h:
|
||||
|
||||
../txt_window.h:
|
||||
|
||||
../txt_table.h:
|
||||
|
||||
../txt_window_action.h:
|
||||
|
||||
../txt_dropdown.h:
|
||||
|
||||
../txt_inputbox.h:
|
||||
|
||||
../txt_label.h:
|
||||
|
||||
../txt_radiobutton.h:
|
||||
|
||||
../txt_scrollpane.h:
|
||||
|
||||
../txt_separator.h:
|
||||
|
||||
../txt_spinctrl.h:
|
||||
|
||||
../txt_strut.h:
|
440
dockerdoom/trunk/textscreen/examples/Makefile
Normal file
440
dockerdoom/trunk/textscreen/examples/Makefile
Normal file
@ -0,0 +1,440 @@
|
||||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# textscreen/examples/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
|
||||
|
||||
|
||||
|
||||
|
||||
pkgdatadir = $(datadir)/psdoom
|
||||
pkgincludedir = $(includedir)/psdoom
|
||||
pkglibdir = $(libdir)/psdoom
|
||||
pkglibexecdir = $(libexecdir)/psdoom
|
||||
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 = :
|
||||
noinst_PROGRAMS = guitest$(EXEEXT) calculator$(EXEEXT)
|
||||
subdir = textscreen/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.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_calculator_OBJECTS = calculator.$(OBJEXT)
|
||||
calculator_OBJECTS = $(am_calculator_OBJECTS)
|
||||
calculator_DEPENDENCIES = ../libtextscreen.a
|
||||
am_guitest_OBJECTS = guitest.$(OBJEXT)
|
||||
guitest_OBJECTS = $(am_guitest_OBJECTS)
|
||||
guitest_DEPENDENCIES = ../libtextscreen.a
|
||||
DEFAULT_INCLUDES = -I. -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(calculator_SOURCES) $(guitest_SOURCES)
|
||||
DIST_SOURCES = $(calculator_SOURCES) $(guitest_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run aclocal-1.11
|
||||
AMTAR = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run tar
|
||||
AUTOCONF = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run autoheader
|
||||
AUTOMAKE = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run automake-1.11
|
||||
AWK = gawk
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -O2 -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
|
||||
CPP = gcc -E
|
||||
CPPFLAGS =
|
||||
CYGPATH_W = echo
|
||||
DEFS = -DHAVE_CONFIG_H
|
||||
DEPDIR = .deps
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = /bin/grep -E
|
||||
EXEEXT =
|
||||
GREP = /bin/grep
|
||||
HAVE_PYTHON = true
|
||||
INSTALL = /usr/bin/install -c
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
|
||||
LDFLAGS = -lSDL -lpthread
|
||||
LIBOBJS =
|
||||
LIBS = -lm
|
||||
LTLIBOBJS =
|
||||
MAKEINFO = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/missing --run makeinfo
|
||||
MKDIR_P = /bin/mkdir -p
|
||||
OBJEXT = o
|
||||
PACKAGE = psdoom
|
||||
PACKAGE_BUGREPORT = orsonteodoro@yahoo.com
|
||||
PACKAGE_COPYRIGHT = Copyright (C) 1993-2012
|
||||
PACKAGE_LICENSE = GNU General Public License, version 2
|
||||
PACKAGE_MAINTAINER = Orson Teodoro
|
||||
PACKAGE_NAME = psdoom
|
||||
PACKAGE_SHORTDESC = psdoom-ng source port - psDooM with Chocolate Doom
|
||||
PACKAGE_STRING = psdoom 2012.02.05-1.6.0
|
||||
PACKAGE_TARNAME = psdoom
|
||||
PACKAGE_URL = https://github.com/orsonteodoro/psdoom-ng/
|
||||
PACKAGE_VERSION = 2012.02.05-1.6.0
|
||||
PATH_SEPARATOR = :
|
||||
PROGRAM_PREFIX = ps
|
||||
RANLIB = ranlib
|
||||
SDLMIXER_CFLAGS =
|
||||
SDLMIXER_LIBS = -lSDL_mixer
|
||||
SDLNET_CFLAGS =
|
||||
SDLNET_LIBS = -lSDL_net
|
||||
SDL_CFLAGS = -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
|
||||
SDL_CONFIG = /usr/bin/sdl-config
|
||||
SDL_LIBS = -lSDL -lpthread
|
||||
SET_MAKE =
|
||||
SHELL = /bin/sh
|
||||
STRIP = strip
|
||||
VERSION = 2012.02.05-1.6.0
|
||||
WINDOWS_RC_VERSION = 2012, 02, 05-1, 6, 0, 0
|
||||
WINDRES =
|
||||
abs_builddir = /home/orson/Downloads/chocolate-doom-1.6.0/textscreen/examples
|
||||
abs_srcdir = /home/orson/Downloads/chocolate-doom-1.6.0/textscreen/examples
|
||||
abs_top_builddir = /home/orson/Downloads/chocolate-doom-1.6.0
|
||||
abs_top_srcdir = /home/orson/Downloads/chocolate-doom-1.6.0
|
||||
ac_aux_dir = autotools
|
||||
ac_ct_CC = gcc
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build_alias =
|
||||
builddir = .
|
||||
datadir = ${datarootdir}
|
||||
datarootdir = ${prefix}/share
|
||||
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
|
||||
dvidir = ${docdir}
|
||||
exec_prefix = ${prefix}
|
||||
host_alias =
|
||||
htmldir = ${docdir}
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${datarootdir}/info
|
||||
install_sh = ${SHELL} /home/orson/Downloads/chocolate-doom-1.6.0/autotools/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localedir = ${datarootdir}/locale
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${datarootdir}/man
|
||||
mkdir_p = /bin/mkdir -p
|
||||
oldincludedir = /usr/include
|
||||
pdfdir = ${docdir}
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
psdir = ${docdir}
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
srcdir = .
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
top_build_prefix = ../../
|
||||
top_builddir = ../..
|
||||
top_srcdir = ../..
|
||||
AM_CFLAGS = -I.. -I../../src
|
||||
guitest_LDADD = ../libtextscreen.a -lSDL -lpthread -lSDL -lpthread
|
||||
guitest_SOURCES = guitest.c
|
||||
calculator_LDADD = ../libtextscreen.a -lSDL -lpthread -lSDL -lpthread
|
||||
calculator_SOURCES = calculator.c
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu textscreen/examples/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu textscreen/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: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
|
||||
calculator$(EXEEXT): $(calculator_OBJECTS) $(calculator_DEPENDENCIES)
|
||||
@rm -f calculator$(EXEEXT)
|
||||
$(LINK) $(calculator_OBJECTS) $(calculator_LDADD) $(LIBS)
|
||||
guitest$(EXEEXT): $(guitest_OBJECTS) $(guitest_DEPENDENCIES)
|
||||
@rm -f guitest$(EXEEXT)
|
||||
$(LINK) $(guitest_OBJECTS) $(guitest_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
include ./$(DEPDIR)/calculator.Po
|
||||
include ./$(DEPDIR)/guitest.Po
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
# source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
|
||||
# $(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
# source='$<' object='$@' libtool=no \
|
||||
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
|
||||
# $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
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; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
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; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
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)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__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 "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$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:
|
||||
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)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-generic 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
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
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
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-noinstPROGRAMS ctags distclean distclean-compile \
|
||||
distclean-generic distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am 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 pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am
|
||||
|
||||
|
||||
# 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:
|
11
dockerdoom/trunk/textscreen/examples/Makefile.am
Normal file
11
dockerdoom/trunk/textscreen/examples/Makefile.am
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
AM_CFLAGS = -I.. -I../../src
|
||||
|
||||
noinst_PROGRAMS=guitest calculator
|
||||
|
||||
guitest_LDADD = ../libtextscreen.a @LDFLAGS@ @SDL_LIBS@
|
||||
guitest_SOURCES = guitest.c
|
||||
|
||||
calculator_LDADD = ../libtextscreen.a @LDFLAGS@ @SDL_LIBS@
|
||||
calculator_SOURCES = calculator.c
|
||||
|
440
dockerdoom/trunk/textscreen/examples/Makefile.in
Normal file
440
dockerdoom/trunk/textscreen/examples/Makefile.in
Normal file
@ -0,0 +1,440 @@
|
||||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@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 = :
|
||||
noinst_PROGRAMS = guitest$(EXEEXT) calculator$(EXEEXT)
|
||||
subdir = textscreen/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.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_calculator_OBJECTS = calculator.$(OBJEXT)
|
||||
calculator_OBJECTS = $(am_calculator_OBJECTS)
|
||||
calculator_DEPENDENCIES = ../libtextscreen.a
|
||||
am_guitest_OBJECTS = guitest.$(OBJEXT)
|
||||
guitest_OBJECTS = $(am_guitest_OBJECTS)
|
||||
guitest_DEPENDENCIES = ../libtextscreen.a
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(calculator_SOURCES) $(guitest_SOURCES)
|
||||
DIST_SOURCES = $(calculator_SOURCES) $(guitest_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
HAVE_PYTHON = @HAVE_PYTHON@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_COPYRIGHT = @PACKAGE_COPYRIGHT@
|
||||
PACKAGE_LICENSE = @PACKAGE_LICENSE@
|
||||
PACKAGE_MAINTAINER = @PACKAGE_MAINTAINER@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_SHORTDESC = @PACKAGE_SHORTDESC@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PROGRAM_PREFIX = @PROGRAM_PREFIX@
|
||||
RANLIB = @RANLIB@
|
||||
SDLMIXER_CFLAGS = @SDLMIXER_CFLAGS@
|
||||
SDLMIXER_LIBS = @SDLMIXER_LIBS@
|
||||
SDLNET_CFLAGS = @SDLNET_CFLAGS@
|
||||
SDLNET_LIBS = @SDLNET_LIBS@
|
||||
SDL_CFLAGS = @SDL_CFLAGS@
|
||||
SDL_CONFIG = @SDL_CONFIG@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
WINDOWS_RC_VERSION = @WINDOWS_RC_VERSION@
|
||||
WINDRES = @WINDRES@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_aux_dir = @ac_aux_dir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
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_alias = @build_alias@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host_alias = @host_alias@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CFLAGS = -I.. -I../../src
|
||||
guitest_LDADD = ../libtextscreen.a @LDFLAGS@ @SDL_LIBS@
|
||||
guitest_SOURCES = guitest.c
|
||||
calculator_LDADD = ../libtextscreen.a @LDFLAGS@ @SDL_LIBS@
|
||||
calculator_SOURCES = calculator.c
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu textscreen/examples/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu textscreen/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: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
|
||||
calculator$(EXEEXT): $(calculator_OBJECTS) $(calculator_DEPENDENCIES)
|
||||
@rm -f calculator$(EXEEXT)
|
||||
$(LINK) $(calculator_OBJECTS) $(calculator_LDADD) $(LIBS)
|
||||
guitest$(EXEEXT): $(guitest_OBJECTS) $(guitest_DEPENDENCIES)
|
||||
@rm -f guitest$(EXEEXT)
|
||||
$(LINK) $(guitest_OBJECTS) $(guitest_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calculator.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/guitest.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $(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@ $(am__mv) $(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) '$<'`
|
||||
|
||||
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; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
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; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
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)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__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 "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$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:
|
||||
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)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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-generic 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
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
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
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-noinstPROGRAMS ctags distclean distclean-compile \
|
||||
distclean-generic distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am 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 pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am
|
||||
|
||||
|
||||
# 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:
|
189
dockerdoom/trunk/textscreen/examples/calculator.c
Normal file
189
dockerdoom/trunk/textscreen/examples/calculator.c
Normal file
@ -0,0 +1,189 @@
|
||||
// Emacs style mode select -*- C++ -*-
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Copyright(C) 2006-2009 Simon Howard
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
// 02111-1307, USA.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Example program: desktop calculator
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "textscreen.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
OP_NONE,
|
||||
OP_PLUS,
|
||||
OP_MINUS,
|
||||
OP_MULT,
|
||||
OP_DIV,
|
||||
} operator_t;
|
||||
|
||||
int starting_input = 0;
|
||||
int input_value = 0;
|
||||
txt_label_t *input_box;
|
||||
int first_operand;
|
||||
operator_t operator = OP_NONE;
|
||||
|
||||
void UpdateInputBox(void)
|
||||
{
|
||||
char buf[20];
|
||||
|
||||
sprintf(buf, " %i", input_value);
|
||||
TXT_SetLabel(input_box, buf);
|
||||
}
|
||||
|
||||
void InsertNumber(TXT_UNCAST_ARG(button), TXT_UNCAST_ARG(value))
|
||||
{
|
||||
TXT_CAST_ARG(int, value);
|
||||
|
||||
if (starting_input)
|
||||
{
|
||||
input_value = 0;
|
||||
starting_input = 0;
|
||||
}
|
||||
|
||||
input_value *= 10;
|
||||
input_value += *value;
|
||||
UpdateInputBox();
|
||||
}
|
||||
|
||||
void AddNumberButton(txt_table_t *table, int value)
|
||||
{
|
||||
char buf[10];
|
||||
int *val_copy;
|
||||
|
||||
val_copy = malloc(sizeof(int));
|
||||
*val_copy = value;
|
||||
|
||||
sprintf(buf, " %i ", value);
|
||||
|
||||
TXT_AddWidget(table, TXT_NewButton2(buf, InsertNumber, val_copy));
|
||||
}
|
||||
|
||||
void Operator(TXT_UNCAST_ARG(button), TXT_UNCAST_ARG(op))
|
||||
{
|
||||
TXT_CAST_ARG(operator_t, op);
|
||||
|
||||
first_operand = input_value;
|
||||
operator = *op;
|
||||
starting_input = 1;
|
||||
}
|
||||
|
||||
void AddOperatorButton(txt_table_t *table, char *label, operator_t op)
|
||||
{
|
||||
char buf[10];
|
||||
operator_t *op_copy;
|
||||
|
||||
op_copy = malloc(sizeof(operator_t));
|
||||
*op_copy = op;
|
||||
|
||||
sprintf(buf, " %s ", label);
|
||||
|
||||
TXT_AddWidget(table, TXT_NewButton2(buf, Operator, op_copy));
|
||||
}
|
||||
|
||||
void Calculate(TXT_UNCAST_ARG(button), void *unused)
|
||||
{
|
||||
switch (operator)
|
||||
{
|
||||
case OP_PLUS:
|
||||
input_value = first_operand + input_value;
|
||||
break;
|
||||
case OP_MINUS:
|
||||
input_value = first_operand - input_value;
|
||||
break;
|
||||
case OP_MULT:
|
||||
input_value = first_operand * input_value;
|
||||
break;
|
||||
case OP_DIV:
|
||||
input_value = first_operand / input_value;
|
||||
break;
|
||||
case OP_NONE:
|
||||
break;
|
||||
}
|
||||
|
||||
UpdateInputBox();
|
||||
|
||||
operator = OP_NONE;
|
||||
starting_input = 1;
|
||||
}
|
||||
|
||||
void BuildGUI()
|
||||
{
|
||||
txt_window_t *window;
|
||||
txt_table_t *table;
|
||||
|
||||
window = TXT_NewWindow("Calculator");
|
||||
|
||||
input_box = TXT_NewLabel("asdf");
|
||||
TXT_SetBGColor(input_box, TXT_COLOR_BLACK);
|
||||
TXT_AddWidget(window, input_box);
|
||||
TXT_AddWidget(window, TXT_NewSeparator(NULL));
|
||||
TXT_AddWidget(window, TXT_NewStrut(0, 1));
|
||||
|
||||
table = TXT_NewTable(4);
|
||||
TXT_AddWidget(window, table);
|
||||
TXT_SetWidgetAlign(table, TXT_HORIZ_CENTER);
|
||||
|
||||
AddNumberButton(table, 7);
|
||||
AddNumberButton(table, 8);
|
||||
AddNumberButton(table, 9);
|
||||
AddOperatorButton(table, "*", OP_MULT);
|
||||
AddNumberButton(table, 4);
|
||||
AddNumberButton(table, 5);
|
||||
AddNumberButton(table, 6);
|
||||
AddOperatorButton(table, "-", OP_MINUS);
|
||||
AddNumberButton(table, 1);
|
||||
AddNumberButton(table, 2);
|
||||
AddNumberButton(table, 3);
|
||||
AddOperatorButton(table, "+", OP_PLUS);
|
||||
AddNumberButton(table, 0);
|
||||
TXT_AddWidget(table, NULL);
|
||||
|
||||
TXT_AddWidget(table, TXT_NewButton2(" = ", Calculate, NULL));
|
||||
AddOperatorButton(table, "/", OP_DIV);
|
||||
|
||||
TXT_AddWidget(window, TXT_NewStrut(0, 1));
|
||||
UpdateInputBox();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (!TXT_Init())
|
||||
{
|
||||
fprintf(stderr, "Failed to initialise GUI\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
TXT_SetDesktopTitle("Calculator demo");
|
||||
|
||||
BuildGUI();
|
||||
|
||||
TXT_GUIMainLoop();
|
||||
|
||||
TXT_Shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
260
dockerdoom/trunk/textscreen/examples/guitest.c
Normal file
260
dockerdoom/trunk/textscreen/examples/guitest.c
Normal file
@ -0,0 +1,260 @@
|
||||
// Emacs style mode select -*- C++ -*-
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Copyright(C) 2006-2009 Simon Howard
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 2
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
// 02111-1307, USA.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Example program: GUI test program
|
||||
//
|
||||
// Demonstrates all the main textscreen widgets in use and shows how
|
||||
// a simple textscreen program can be written.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "textscreen.h"
|
||||
|
||||
enum
|
||||
{
|
||||
RADIO_VALUE_BADGER,
|
||||
RADIO_VALUE_MUSHROOM,
|
||||
RADIO_VALUE_SNAKE,
|
||||
};
|
||||
char *radio_values[] = { "Badger", "Mushroom", "Snake" };
|
||||
char *textbox_value = NULL;
|
||||
int numbox_value = 0;
|
||||
int radiobutton_value;
|
||||
txt_label_t *value_label;
|
||||
txt_window_t *firstwin;
|
||||
int cheesy;
|
||||
|
||||
void ClosePwnBox(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(window))
|
||||
{
|
||||
TXT_CAST_ARG(txt_window_t, window);
|
||||
|
||||
TXT_CloseWindow(window);
|
||||
}
|
||||
|
||||
void PwnBox(TXT_UNCAST_ARG(widget), void *user_data)
|
||||
{
|
||||
txt_window_t *window;
|
||||
txt_window_action_t *close_button;
|
||||
|
||||
window = TXT_NewWindow("Pwned!");
|
||||
TXT_AddWidget(window, TXT_NewLabel(" BOOM! HEADSHOT! "));
|
||||
|
||||
close_button = TXT_NewWindowAction(KEY_ENTER, "Close");
|
||||
TXT_SignalConnect(close_button, "pressed", ClosePwnBox, window);
|
||||
|
||||
TXT_SetWindowAction(window, TXT_HORIZ_LEFT, NULL);
|
||||
TXT_SetWindowAction(window, TXT_HORIZ_RIGHT, close_button);
|
||||
}
|
||||
|
||||
void UpdateLabel(TXT_UNCAST_ARG(widget), void *user_data)
|
||||
{
|
||||
char buf[40];
|
||||
|
||||
strcpy(buf, " Current value: ");
|
||||
if (cheesy)
|
||||
{
|
||||
strcat(buf, "Cheesy ");
|
||||
}
|
||||
strcat(buf, radio_values[radiobutton_value]);
|
||||
strcat(buf, "\n");
|
||||
|
||||
TXT_SetLabel(value_label, buf);
|
||||
}
|
||||
|
||||
void CloseWindow(TXT_UNCAST_ARG(button), void *user_data)
|
||||
{
|
||||
TXT_CloseWindow(firstwin);
|
||||
}
|
||||
|
||||
void SetupWindow(void)
|
||||
{
|
||||
txt_window_t *window;
|
||||
txt_table_t *table;
|
||||
txt_table_t *rightpane;
|
||||
txt_checkbox_t *cheesy_checkbox;
|
||||
txt_window_action_t *pwn;
|
||||
txt_label_t *toplabel;
|
||||
char buf[100];
|
||||
int i;
|
||||
|
||||
window = TXT_NewWindow("Window test");
|
||||
|
||||
TXT_AddWidget(window, TXT_NewSeparator("Main section"));
|
||||
table = TXT_NewTable(3);
|
||||
|
||||
toplabel = TXT_NewLabel("This is a multiline label.\n"
|
||||
"A single label object contains \n"
|
||||
"all three of these lines.\n");
|
||||
TXT_AddWidget(window, toplabel);
|
||||
TXT_SetWidgetAlign(toplabel, TXT_HORIZ_CENTER);
|
||||
|
||||
//TXT_AddWidget(window, TXT_NewScrollPane(15, 4, table));
|
||||
TXT_AddWidget(window, table);
|
||||
|
||||
for (i=0; i<5; ++i)
|
||||
{
|
||||
sprintf(buf, "Option %i in a table:", i + 1);
|
||||
TXT_AddWidget(table, TXT_NewLabel(buf));
|
||||
sprintf(buf, " Button %i-1 ", i + 1);
|
||||
TXT_AddWidget(table, TXT_NewButton(buf));
|
||||
sprintf(buf, " Button %i-2 ", i + 1);
|
||||
TXT_AddWidget(table, TXT_NewButton(buf));
|
||||
}
|
||||
|
||||
TXT_AddWidget(window, TXT_NewStrut(0, 1));
|
||||
value_label = TXT_NewLabel("");
|
||||
TXT_AddWidget(window, value_label);
|
||||
|
||||
table = TXT_NewTable(2);
|
||||
TXT_AddWidget(window, table);
|
||||
TXT_SetWidgetAlign(table, TXT_HORIZ_CENTER);
|
||||
|
||||
cheesy_checkbox = TXT_NewCheckBox("Cheesy", &cheesy);
|
||||
TXT_AddWidget(table, cheesy_checkbox);
|
||||
TXT_SignalConnect(cheesy_checkbox, "changed", UpdateLabel, NULL);
|
||||
|
||||
rightpane = TXT_NewTable(1);
|
||||
TXT_AddWidget(table, rightpane);
|
||||
|
||||
for (i=0; i<3; ++i)
|
||||
{
|
||||
txt_radiobutton_t *rbut;
|
||||
|
||||
rbut = TXT_NewRadioButton(radio_values[i], &radiobutton_value, i);
|
||||
TXT_AddWidget(rightpane, rbut);
|
||||
TXT_SignalConnect(rbut, "selected", UpdateLabel, NULL);
|
||||
}
|
||||
|
||||
UpdateLabel(NULL, NULL);
|
||||
|
||||
TXT_AddWidget(window, TXT_NewButton2("Close Window", CloseWindow, NULL));
|
||||
|
||||
pwn = TXT_NewWindowAction(KEY_F1, "PWN!");
|
||||
TXT_SetWindowAction(window, TXT_HORIZ_CENTER, pwn);
|
||||
TXT_SignalConnect(pwn, "pressed", PwnBox, NULL);
|
||||
|
||||
firstwin = window;
|
||||
}
|
||||
|
||||
void Window2(void)
|
||||
{
|
||||
txt_window_t *window;
|
||||
txt_table_t *table;
|
||||
txt_table_t *unselectable_table;
|
||||
txt_scrollpane_t *scrollpane;
|
||||
|
||||
window = TXT_NewWindow("Another test");
|
||||
TXT_SetWindowPosition(window,
|
||||
TXT_HORIZ_RIGHT,
|
||||
TXT_VERT_TOP,
|
||||
TXT_SCREEN_W - 1, 1);
|
||||
|
||||
TXT_AddWidgets(window,
|
||||
TXT_NewScrollPane(40, 1,
|
||||
TXT_NewLabel("* Unselectable scroll pane *")),
|
||||
unselectable_table = TXT_NewTable(1),
|
||||
NULL);
|
||||
|
||||
TXT_AddWidget(unselectable_table, TXT_NewLabel("* Unselectable table *"));
|
||||
|
||||
TXT_AddWidget(window, TXT_NewSeparator("Input boxes"));
|
||||
table = TXT_NewTable(2);
|
||||
TXT_AddWidget(window, table);
|
||||
TXT_AddWidget(table, TXT_NewLabel("String: "));
|
||||
TXT_AddWidget(table, TXT_NewInputBox(&textbox_value, 20));
|
||||
TXT_AddWidget(table, TXT_NewLabel("Int: "));
|
||||
TXT_AddWidget(table, TXT_NewIntInputBox(&numbox_value, 10));
|
||||
TXT_AddWidget(table, TXT_NewLabel("Spin control:"));
|
||||
TXT_AddWidget(table, TXT_NewSpinControl(&numbox_value, 0, 15));
|
||||
|
||||
TXT_AddWidget(window, TXT_NewSeparator("Scroll pane test"));
|
||||
scrollpane = TXT_NewScrollPane(40, 5, TXT_NewLabel(
|
||||
"This is a scrollable pane. The contents\n"
|
||||
"of this box are larger than the box\n"
|
||||
"itself, but it can be scrolled around\n"
|
||||
"to explore the full contents.\n"
|
||||
"\n"
|
||||
"Scrollable panes can be scrolled both\n"
|
||||
"vertically and horizontally. They\n"
|
||||
"can contain any widget. The scroll bars\n"
|
||||
"appear automatically as needed.\n"
|
||||
"\n"
|
||||
"This is a very long line of text that forces a horizontal scrollbar"
|
||||
));
|
||||
TXT_AddWidget(window, scrollpane);
|
||||
}
|
||||
|
||||
void ScrollingMenu(void)
|
||||
{
|
||||
txt_window_t *window;
|
||||
txt_button_t *button;
|
||||
txt_table_t *table;
|
||||
|
||||
window = TXT_NewWindow("Scrollable menu");
|
||||
|
||||
table = TXT_NewTable(1);
|
||||
|
||||
TXT_AddWidgets(table,
|
||||
TXT_NewButton("Configure display"),
|
||||
TXT_NewButton("Configure joystick"),
|
||||
TXT_NewButton("Configure keyboard"),
|
||||
TXT_NewButton("Configure mouse"),
|
||||
TXT_NewButton("Configure sound"),
|
||||
TXT_NewStrut(0, 1),
|
||||
button = TXT_NewButton("Save Parameters and launch DOOM"),
|
||||
TXT_NewStrut(0, 1),
|
||||
TXT_NewButton("Start a network game"),
|
||||
TXT_NewButton("Join a network game"),
|
||||
TXT_NewButton("Multiplayer configuration"),
|
||||
NULL);
|
||||
|
||||
TXT_SignalConnect(button, "pressed", PwnBox, NULL);
|
||||
|
||||
TXT_AddWidget(window, TXT_NewScrollPane(0, 6, table));
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (!TXT_Init())
|
||||
{
|
||||
fprintf(stderr, "Failed to initialise GUI\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
TXT_SetDesktopTitle("Not Chocolate Doom Setup");
|
||||
|
||||
ScrollingMenu();
|
||||
Window2();
|
||||
SetupWindow();
|
||||
|
||||
TXT_GUIMainLoop();
|
||||
|
||||
TXT_Shutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user