2008-08-18 17:40:58 -05:00
|
|
|
AM_CFLAGS = $(MOO_CFLAGS)
|
|
|
|
AM_CXXFLAGS = $(MOO_CXXFLAGS)
|
2006-08-01 04:57:26 -05:00
|
|
|
|
2008-01-20 12:03:01 -06:00
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
2006-12-10 16:53:57 -06:00
|
|
|
test_programs = \
|
|
|
|
markup testpaned miniglade \
|
|
|
|
testobject testthreads
|
|
|
|
|
|
|
|
if MOO_BUILD_EDIT
|
|
|
|
test_programs += \
|
|
|
|
testtext testfileview \
|
|
|
|
testpanedfileview testfold \
|
|
|
|
testkeyfile
|
2007-07-12 02:52:51 -05:00
|
|
|
endif
|
2008-08-22 22:52:54 -05:00
|
|
|
if MOO_BUILD_APP
|
2006-12-10 16:53:57 -06:00
|
|
|
test_programs += testhtml
|
|
|
|
endif
|
|
|
|
|
2008-09-14 03:00:42 -05:00
|
|
|
EXTRA_PROGRAMS = $(test_programs)
|
2006-12-10 16:53:57 -06:00
|
|
|
|
2008-01-20 12:03:01 -06:00
|
|
|
if MOO_ENABLE_TESTS
|
|
|
|
noinst_PROGRAMS += $(test_programs)
|
|
|
|
endif
|
2006-08-01 04:57:26 -05:00
|
|
|
|
|
|
|
all-tests: $(EXTRA_PROGRAMS)
|
|
|
|
|
2008-09-14 03:09:52 -05:00
|
|
|
EXTRA_DIST = \
|
2006-12-12 20:51:11 -06:00
|
|
|
pyapp.py.in
|
2006-08-01 04:57:26 -05:00
|
|
|
|
2007-06-20 02:45:26 -05:00
|
|
|
BUILT_SOURCES = pyapp.py
|
2006-08-01 04:57:26 -05:00
|
|
|
|
|
|
|
if MOO_BUILD_UTILS
|
|
|
|
if !MOO_BUILD_EDIT
|
|
|
|
noinst_PROGRAMS += testfileview
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-09-07 02:01:17 -05:00
|
|
|
ldflags = -export-dynamic $(PYTHON_EXTRA_LDFLAGS)
|
2008-08-22 22:52:54 -05:00
|
|
|
include ../moo/moo-comps.mk
|
2008-08-25 04:50:41 -05:00
|
|
|
ldadd = $(moo_app_ldadd)
|
2006-08-01 04:57:26 -05:00
|
|
|
|
2008-02-10 12:56:31 -06:00
|
|
|
# if MOO_OS_MINGW
|
|
|
|
# ldflags += -mwindows
|
|
|
|
# endif MOO_OS_MINGW
|
2006-08-01 04:57:26 -05:00
|
|
|
|
2008-01-19 01:34:21 -06:00
|
|
|
run_tests_LDFLAGS = $(ldflags)
|
2008-01-31 01:16:57 -06:00
|
|
|
run_tests_LDADD = $(ldadd)
|
2008-01-19 01:34:21 -06:00
|
|
|
|
2006-08-01 04:57:26 -05:00
|
|
|
|
|
|
|
testfold_LDFLAGS = $(ldflags)
|
|
|
|
testfold_LDADD = $(ldadd)
|
|
|
|
testfold_SOURCES = testfold.c
|
|
|
|
|
|
|
|
|
|
|
|
testtext_LDFLAGS = $(ldflags)
|
|
|
|
testtext_LDADD = $(ldadd)
|
|
|
|
testtext_SOURCES = testtext.c
|
|
|
|
|
|
|
|
|
2006-08-22 23:15:25 -05:00
|
|
|
testkeyfile_LDFLAGS = $(ldflags)
|
|
|
|
testkeyfile_LDADD = $(ldadd)
|
|
|
|
testkeyfile_SOURCES = testkeyfile.c
|
|
|
|
|
2006-12-10 10:54:35 -06:00
|
|
|
testthreads_LDFLAGS = $(ldflags)
|
|
|
|
testthreads_LDADD = $(ldadd) $(GTHREAD_LIBS)
|
|
|
|
testthreads_SOURCES = testthreads.c
|
|
|
|
|
2006-08-01 04:57:26 -05:00
|
|
|
testhtml_LDFLAGS = $(ldflags)
|
|
|
|
testhtml_LDADD = $(ldadd)
|
|
|
|
testhtml_SOURCES = testhtml.c
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## markup
|
|
|
|
##
|
|
|
|
markup_LDFLAGS = $(ldflags)
|
|
|
|
markup_LDADD = $(ldadd)
|
|
|
|
|
|
|
|
markup_SOURCES = markup.c
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## miniglade
|
|
|
|
##
|
|
|
|
miniglade_LDFLAGS = $(ldflags)
|
|
|
|
miniglade_LDADD = $(ldadd)
|
|
|
|
|
|
|
|
miniglade_SOURCES = miniglade.c
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
testpaned_LDFLAGS = $(ldflags)
|
|
|
|
testpaned_LDADD = $(ldadd)
|
|
|
|
testpaned_SOURCES = testpaned.c
|
|
|
|
|
|
|
|
testfileview_LDFLAGS = $(ldflags)
|
|
|
|
testfileview_LDADD = $(ldadd)
|
|
|
|
testfileview_SOURCES = testfileview.c
|
|
|
|
|
|
|
|
testpanedfileview_LDFLAGS = $(ldflags)
|
|
|
|
testpanedfileview_LDADD = $(ldadd)
|
|
|
|
testpanedfileview_SOURCES = testpanedfileview.c
|
|
|
|
|
|
|
|
testobject_LDFLAGS = $(ldflags)
|
|
|
|
testobject_LDADD = $(ldadd)
|
|
|
|
testobject_SOURCES = testobject.c
|