2006-08-01 02:57:26 -07:00
|
|
|
AM_CFLAGS = \
|
|
|
|
-I$(top_builddir) \
|
|
|
|
-I../moo \
|
|
|
|
$(MOO_CFLAGS) \
|
|
|
|
$(MOO_DEBUG_CFLAGS)
|
|
|
|
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
EXTRA_PROGRAMS = \
|
|
|
|
testhtml testtext medit mterm \
|
|
|
|
markup termbuffer testfileview \
|
|
|
|
testpaned testpanedfileview \
|
|
|
|
miniglade langparser testobject \
|
2006-08-22 21:15:25 -07:00
|
|
|
testfold ms testkeyfile
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
all-tests: $(EXTRA_PROGRAMS)
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
pyapp.py.in \
|
|
|
|
medit-ui.xml \
|
2006-11-19 23:07:19 -08:00
|
|
|
medit-app.opag
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
BUILT_SOURCES = medit-ui.h THANKS.h
|
|
|
|
|
2006-08-13 04:47:59 -07:00
|
|
|
XML2H = $(srcdir)/../moo/mooutils/xml2h.sh
|
|
|
|
medit-ui.h: medit-ui.xml $(XML2H)
|
|
|
|
$(SHELL) $(XML2H) MEDIT_UI $(srcdir)/medit-ui.xml > medit-ui.h.tmp && \
|
2006-08-02 23:53:24 -07:00
|
|
|
mv medit-ui.h.tmp medit-ui.h
|
2006-08-13 04:47:59 -07:00
|
|
|
THANKS.h: ../THANKS $(XML2H)
|
|
|
|
$(SHELL) $(XML2H) THANKS $(srcdir)/../THANKS > THANKS.h
|
2006-08-01 02:57:26 -07:00
|
|
|
|
2006-08-01 13:48:44 -07:00
|
|
|
# medit-app.c is not in BUILT_SOURCES, so the target must use absolute path to it
|
|
|
|
$(srcdir)/medit-app.c: medit-app.opag medit-ui.h
|
2006-08-01 02:57:26 -07:00
|
|
|
if test -z $(OPAG); then \
|
|
|
|
touch $(srcdir)/medit-app.c; \
|
|
|
|
else \
|
|
|
|
$(OPAG) -f _medit_parse_options -O _medit_opt_ -A _medit_arg_ $(srcdir)/medit-app.opag $(srcdir)/medit-app.c; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
all-am: pyapp.py
|
|
|
|
|
|
|
|
if MOO_BUILD_APP
|
|
|
|
medit = medit
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_EDIT
|
|
|
|
medit = medit
|
|
|
|
# noinst_PROGRAMS += testtext
|
|
|
|
endif
|
|
|
|
if MOO_BUILD_TERM
|
|
|
|
if !MOO_OS_CYGWIN
|
|
|
|
if !MOO_BUILD_APP
|
|
|
|
noinst_PROGRAMS += mterm #termbuffer
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if MOO_BUILD_UTILS
|
|
|
|
if !MOO_BUILD_EDIT
|
|
|
|
if !MOO_BUILD_TERM
|
|
|
|
if !MOO_OS_CYGWIN
|
|
|
|
noinst_PROGRAMS += testfileview
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
bin_PROGRAMS = $(medit)
|
|
|
|
|
2006-09-07 00:01:17 -07:00
|
|
|
ldflags = -export-dynamic $(PYTHON_EXTRA_LDFLAGS)
|
2006-08-04 02:17:32 -07:00
|
|
|
ldadd = ../moo/libmoo.la
|
2006-09-07 00:01:17 -07:00
|
|
|
test_ldflags = -export-dynamic $(PYTHON_EXTRA_LDFLAGS)
|
2006-08-22 21:15:25 -07:00
|
|
|
test_ldadd = ../moo/libmoo-test.la
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
if MOO_OS_MINGW
|
|
|
|
ldflags += -mwindows
|
2006-08-22 21:15:25 -07:00
|
|
|
test_ldflags += -mwindows
|
2006-08-01 02:57:26 -07:00
|
|
|
endif MOO_OS_MINGW
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
## medit
|
|
|
|
##
|
2006-11-19 23:38:41 -08:00
|
|
|
if MOO_OS_MINGW
|
|
|
|
CLEANFILES = medit.res
|
|
|
|
medit_res_ldflag = -Wl,medit.res
|
|
|
|
medit_DEPENDENCIES = medit.res
|
|
|
|
medit.res: medit.rc
|
|
|
|
$(WINDRES) -i medit.rc --input-format=rc -o medit.res -O coff
|
|
|
|
endif
|
|
|
|
|
|
|
|
medit_LDFLAGS = $(ldflags) $(medit_res_ldflag)
|
2006-08-01 02:57:26 -07:00
|
|
|
medit_LDADD = $(ldadd)
|
|
|
|
medit_SOURCES = medit-ui.h THANKS.h
|
|
|
|
nodist_medit_SOURCES =
|
2006-08-01 12:49:57 -07:00
|
|
|
EXTRA_DIST += medit.rc.in medit-app.c
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
if MOO_BUILD_APP
|
|
|
|
medit_SOURCES += medit-app.c
|
|
|
|
else
|
|
|
|
medit_SOURCES += medit.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
testfold_LDFLAGS = $(ldflags)
|
|
|
|
testfold_LDADD = $(ldadd)
|
|
|
|
testfold_SOURCES = testfold.c
|
|
|
|
|
|
|
|
|
|
|
|
testtext_LDFLAGS = $(ldflags)
|
|
|
|
testtext_LDADD = $(ldadd)
|
|
|
|
testtext_SOURCES = testtext.c
|
|
|
|
|
|
|
|
|
|
|
|
langparser_LDFLAGS = $(ldflags)
|
|
|
|
langparser_LDADD = $(ldadd)
|
|
|
|
langparser_SOURCES = testparser.c
|
|
|
|
|
2006-08-22 21:15:25 -07:00
|
|
|
testkeyfile_LDFLAGS = $(ldflags)
|
|
|
|
testkeyfile_LDADD = $(ldadd)
|
|
|
|
testkeyfile_SOURCES = testkeyfile.c
|
|
|
|
|
2006-08-01 02:57:26 -07:00
|
|
|
ms_LDFLAGS = $(ldflags)
|
|
|
|
ms_LDADD = $(ldadd) -lreadline
|
|
|
|
ms_SOURCES = mscript.c
|
|
|
|
|
|
|
|
testhtml_LDFLAGS = $(ldflags)
|
|
|
|
testhtml_LDADD = $(ldadd)
|
|
|
|
testhtml_SOURCES = testhtml.c
|
|
|
|
|
|
|
|
|
|
|
|
mterm_LDFLAGS = $(ldflags)
|
|
|
|
mterm_LDADD = $(ldadd)
|
|
|
|
mterm_SOURCES = mterm.c
|
|
|
|
|
|
|
|
termbuffer_LDFLAGS = $(ldflags)
|
|
|
|
termbuffer_LDADD = $(ldadd)
|
|
|
|
termbuffer_SOURCES = termbuffer.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
|