2006-04-22 08:51:44 -05:00
|
|
|
EXTRA_PROGRAMS += \
|
|
|
|
testhtml testtext medit mterm \
|
|
|
|
markup termbuffer testfileview \
|
|
|
|
testpaned testpanedfileview \
|
|
|
|
miniglade langparser testobject \
|
|
|
|
testfold ms
|
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
bin_PROGRAMS =
|
|
|
|
|
2006-04-16 11:40:58 -05:00
|
|
|
all-tests: $(EXTRA_PROGRAMS)
|
2005-11-22 18:39:05 +00:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
tests/pyapp.py.in \
|
2005-11-23 11:10:03 +00:00
|
|
|
tests/medit-ui.xml \
|
2006-03-16 13:32:05 -06:00
|
|
|
tests/medit-app.opag\
|
|
|
|
tests/medit.win
|
2005-11-22 18:39:05 +00:00
|
|
|
|
2006-06-16 22:50:43 -05:00
|
|
|
BUILT_SOURCES += medit-ui.h
|
2005-11-22 18:39:05 +00:00
|
|
|
medit-ui.h: tests/medit-ui.xml
|
|
|
|
sh $(srcdir)/moo/mooutils/xml2h.sh MEDIT_UI $(srcdir)/tests/medit-ui.xml > medit-ui.h
|
2006-06-16 22:50:43 -05:00
|
|
|
|
2005-11-29 06:29:51 +00:00
|
|
|
tests/medit-app.c: tests/medit-app.opag medit-ui.h
|
2006-04-21 11:51:26 -05:00
|
|
|
if test -z $(OPAG); then \
|
|
|
|
touch $(srcdir)/tests/medit-app.c; \
|
|
|
|
else \
|
|
|
|
$(OPAG) -f _medit_parse_options -O _medit_opt_ -A _medit_arg_ $(srcdir)/tests/medit-app.opag $(srcdir)/tests/medit-app.c; \
|
|
|
|
fi
|
2005-11-22 18:39:05 +00:00
|
|
|
|
2006-03-16 13:32:05 -06:00
|
|
|
if MOO_OS_MINGW
|
2006-03-17 22:14:07 -06:00
|
|
|
medit.win: tests/medit.win
|
2006-03-16 13:32:05 -06:00
|
|
|
cp $(srcdir)/tests/medit.win medit
|
|
|
|
chmod +x medit
|
|
|
|
endif
|
|
|
|
|
2006-03-16 14:00:45 -06:00
|
|
|
all-am: tests/pyapp.py
|
2005-11-22 18:39:05 +00:00
|
|
|
|
|
|
|
if MOO_BUILD_APP
|
|
|
|
medit = medit
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_EDIT
|
|
|
|
medit = medit
|
2006-03-31 23:59:52 -06:00
|
|
|
# noinst_PROGRAMS += testtext
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
if MOO_BUILD_TERM
|
2005-12-11 04:25:13 +00:00
|
|
|
if !MOO_OS_CYGWIN
|
2006-02-10 13:50:27 +00:00
|
|
|
if !MOO_BUILD_APP
|
|
|
|
noinst_PROGRAMS += mterm #termbuffer
|
|
|
|
endif
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
2005-12-11 04:25:13 +00:00
|
|
|
endif
|
2006-02-17 01:06:14 +00:00
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
if MOO_BUILD_UTILS
|
2006-02-17 01:06:14 +00:00
|
|
|
if !MOO_BUILD_EDIT
|
|
|
|
if !MOO_BUILD_TERM
|
|
|
|
if !MOO_OS_CYGWIN
|
|
|
|
noinst_PROGRAMS += testfileview
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-06 03:32:16 -05:00
|
|
|
if !MOO_BUILD_LIB
|
2005-11-22 18:39:05 +00:00
|
|
|
bin_PROGRAMS += $(medit)
|
2006-04-06 03:32:16 -05:00
|
|
|
else
|
|
|
|
noinst_PROGRAMS += $(medit)
|
|
|
|
endif
|
2005-11-22 18:39:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
ldflags = -export-dynamic
|
|
|
|
ldadd = \
|
|
|
|
$(MOO_LIBS) \
|
|
|
|
$(PYTHON_LDFLAGS) \
|
|
|
|
$(PYTHON_EXTRA_LIBS)
|
|
|
|
|
|
|
|
if MOO_BUILD_LIB
|
2006-04-06 03:32:16 -05:00
|
|
|
ldadd += libmoo.la
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MOO_OS_MINGW
|
|
|
|
ldflags += -mwindows
|
|
|
|
endif MOO_OS_MINGW
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## medit
|
|
|
|
##
|
|
|
|
medit_LDFLAGS = $(ldflags)
|
|
|
|
medit_LDADD = $(ldadd)
|
2005-11-22 23:31:28 +00:00
|
|
|
medit_SOURCES = medit-ui.h
|
2006-04-28 16:07:52 -05:00
|
|
|
nodist_medit_SOURCES =
|
|
|
|
EXTRA_DIST += tests/medit.rc.in
|
2005-11-22 18:39:05 +00:00
|
|
|
|
|
|
|
if !MOO_BUILD_LIB
|
|
|
|
medit_SOURCES += $(libmoo_sources)
|
2006-04-28 16:07:52 -05:00
|
|
|
nodist_medit_SOURCES += $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MOO_BUILD_APP
|
|
|
|
medit_SOURCES += tests/medit-app.c
|
|
|
|
else
|
|
|
|
medit_SOURCES += tests/medit.c
|
|
|
|
endif
|
|
|
|
|
2006-04-28 16:07:52 -05:00
|
|
|
nodist_medit_SOURCES += tests/medit.res
|
|
|
|
CLEANFILES += tests/medit.res
|
|
|
|
|
|
|
|
if MOO_OS_MINGW
|
|
|
|
tests/medit.res: tests/medit.rc
|
|
|
|
$(WINDRES) -i tests/medit.rc --input-format=rc -o tests/medit.res -O coff
|
|
|
|
medit_SOURCES += tests/medit.res
|
|
|
|
medit_LDADD += tests/medit.res
|
|
|
|
else ! MOO_OS_MINGW
|
|
|
|
tests/medit.res: tests/medit.rc
|
|
|
|
touch tests/medit.res
|
|
|
|
endif ! MOO_OS_MINGW
|
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
|
2005-12-12 10:58:25 +00:00
|
|
|
testfold_LDFLAGS = $(ldflags)
|
|
|
|
testfold_LDADD = $(ldadd)
|
|
|
|
testfold_SOURCES = tests/testfold.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_testfold_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-12-12 10:58:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2006-03-31 23:59:52 -06:00
|
|
|
testtext_LDFLAGS = $(ldflags)
|
|
|
|
testtext_LDADD = $(ldadd)
|
|
|
|
testtext_SOURCES = tests/testtext.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_testtext_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2006-03-31 23:59:52 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
langparser_LDFLAGS = $(ldflags)
|
|
|
|
langparser_LDADD = $(ldadd)
|
|
|
|
langparser_SOURCES = tests/testparser.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_langparser_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
2006-03-08 02:19:44 -06:00
|
|
|
ms_LDFLAGS = $(ldflags)
|
|
|
|
ms_LDADD = $(ldadd) -lreadline
|
|
|
|
ms_SOURCES = tests/mscript.c
|
2006-02-26 18:56:19 -06:00
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_ms_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2006-02-26 18:56:19 -06:00
|
|
|
endif
|
|
|
|
|
2006-03-13 03:11:09 -06:00
|
|
|
testhtml_LDFLAGS = $(ldflags)
|
|
|
|
testhtml_LDADD = $(ldadd)
|
|
|
|
testhtml_SOURCES = tests/testhtml.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_testhtml_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2006-03-13 03:11:09 -06:00
|
|
|
endif
|
|
|
|
|
2006-02-26 18:56:19 -06:00
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
mterm_LDFLAGS = $(ldflags)
|
|
|
|
mterm_LDADD = $(ldadd)
|
2006-03-13 03:11:09 -06:00
|
|
|
mterm_SOURCES = tests/mterm.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_mterm_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2006-03-13 03:11:09 -06:00
|
|
|
endif
|
|
|
|
|
2005-11-22 18:39:05 +00:00
|
|
|
termbuffer_LDFLAGS = $(ldflags)
|
|
|
|
termbuffer_LDADD = $(ldadd)
|
|
|
|
termbuffer_SOURCES = tests/termbuffer.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_termbuffer_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## markup
|
|
|
|
##
|
|
|
|
markup_LDFLAGS = $(ldflags)
|
|
|
|
markup_LDADD = $(ldadd)
|
|
|
|
|
|
|
|
markup_SOURCES = tests/markup.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_markup_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## miniglade
|
|
|
|
##
|
|
|
|
miniglade_LDFLAGS = $(ldflags)
|
|
|
|
miniglade_LDADD = $(ldadd)
|
|
|
|
|
|
|
|
miniglade_SOURCES = tests/miniglade.c
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_miniglade_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
testpaned_LDFLAGS = $(ldflags)
|
|
|
|
testpaned_LDADD = $(ldadd)
|
|
|
|
testpaned_SOURCES = tests/testpaned.c
|
|
|
|
|
|
|
|
testfileview_LDFLAGS = $(ldflags)
|
|
|
|
testfileview_LDADD = $(ldadd)
|
|
|
|
testfileview_SOURCES = tests/testfileview.c
|
|
|
|
|
|
|
|
testpanedfileview_LDFLAGS = $(ldflags)
|
|
|
|
testpanedfileview_LDADD = $(ldadd)
|
|
|
|
testpanedfileview_SOURCES = tests/testpanedfileview.c
|
|
|
|
|
|
|
|
testobject_LDFLAGS = $(ldflags)
|
|
|
|
testobject_LDADD = $(ldadd)
|
|
|
|
testobject_SOURCES = tests/testobject.c
|
|
|
|
|
|
|
|
if !MOO_BUILD_LIB
|
2006-04-22 08:51:44 -05:00
|
|
|
nodist_testpaned_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
|
|
|
nodist_testfileview_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
|
|
|
nodist_testpanedfileview_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
|
|
|
nodist_testobject_SOURCES = $(libmoo_sources) $(nodist_libmoo_sources)
|
2005-11-22 18:39:05 +00:00
|
|
|
endif
|