2005-06-22 11:20:32 -07:00
|
|
|
#
|
|
|
|
# mooterm/Makefile.am
|
|
|
|
#
|
|
|
|
|
|
|
|
SUBDIRS = glade
|
|
|
|
|
2005-07-10 19:54:58 -07:00
|
|
|
widget_sources = \
|
2005-07-13 08:48:25 -07:00
|
|
|
mooterm.c \
|
|
|
|
mooterm.h \
|
|
|
|
mooterm-ctlfuncs.h \
|
|
|
|
mooterm-input.c \
|
|
|
|
mooterm-keymap.h \
|
|
|
|
mooterm-private.h \
|
2005-07-16 21:49:01 -07:00
|
|
|
mooterm-selection.h \
|
2005-07-19 02:52:05 -07:00
|
|
|
mooterm-text.c \
|
2005-07-13 08:48:25 -07:00
|
|
|
mooterm-vt.h \
|
2005-07-15 02:51:45 -07:00
|
|
|
mooterm-draw.c \
|
2005-07-10 19:54:58 -07:00
|
|
|
mootermbuffer.c \
|
|
|
|
mootermbuffer-graph.h \
|
|
|
|
mootermbuffer.h \
|
|
|
|
mootermbuffer-private.h \
|
2005-07-21 15:11:16 -07:00
|
|
|
mootermline.c \
|
2005-07-10 19:54:58 -07:00
|
|
|
mootermline.h \
|
|
|
|
mootermparser.c \
|
|
|
|
mootermparser.h \
|
|
|
|
mootermparser-yacc.y \
|
|
|
|
mootermpt.c \
|
|
|
|
mootermpt.h \
|
2005-07-15 03:17:19 -07:00
|
|
|
mootermpt-private.h
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-06-22 15:13:12 -07:00
|
|
|
widget_unix_sources = \
|
2005-07-07 04:06:23 -07:00
|
|
|
mootermpt-unix.c \
|
2005-06-22 15:13:12 -07:00
|
|
|
pty.c \
|
|
|
|
pty.h
|
|
|
|
|
|
|
|
widget_win32_sources = \
|
2005-07-07 04:06:23 -07:00
|
|
|
mootermpt-win32.c
|
2005-06-22 15:13:12 -07:00
|
|
|
|
2005-06-22 11:20:32 -07:00
|
|
|
AM_INCLUDES =
|
|
|
|
common_cflags = \
|
|
|
|
-I$(top_builddir) \
|
|
|
|
-I$(top_builddir)/$(MOO_SRC_PREFIX) \
|
|
|
|
$(MOO_CFLAGS) \
|
|
|
|
$(PYTHON_INCLUDES) \
|
|
|
|
$(PYGTK_CFLAGS) \
|
|
|
|
$(GTK_CFLAGS) \
|
|
|
|
-DG_LOG_DOMAIN=\"Moo\"
|
2005-06-22 15:13:12 -07:00
|
|
|
|
2005-06-22 11:20:32 -07:00
|
|
|
AM_CFLAGS = $(common_cflags) $(M_CFLAGS) $(CFLAGS)
|
2005-07-02 07:59:59 -07:00
|
|
|
AM_YFLAGS = -d
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-06-22 15:13:12 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(widget_sources) \
|
|
|
|
$(widget_unix_sources) \
|
|
|
|
$(widget_win32_sources)
|
|
|
|
|
2005-06-22 11:20:32 -07:00
|
|
|
noinst_LTLIBRARIES = libmooterm.la
|
2005-07-22 02:50:25 -07:00
|
|
|
libmooterm_la_SOURCES =
|
|
|
|
BUILT_SOURCES =
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-06-22 15:13:12 -07:00
|
|
|
|
2005-07-22 02:50:25 -07:00
|
|
|
if UNIX_BUILD
|
|
|
|
libmooterm_la_SOURCES += $(widget_sources) $(widget_unix_sources)
|
|
|
|
BUILT_SOURCES += mootermparser-yacc.c mootermparser-yacc.h
|
2005-06-22 15:13:12 -07:00
|
|
|
endif UNIX_BUILD
|
|
|
|
|
|
|
|
|
|
|
|
if MINGW_BUILD
|
2005-07-22 02:50:25 -07:00
|
|
|
libmooterm_la_SOURCES += $(widget_sources) $(widget_win32_sources)
|
|
|
|
BUILT_SOURCES += mootermparser-yacc.c mootermparser-yacc.h
|
|
|
|
endif MINGW_BUILD
|
2005-06-22 15:13:12 -07:00
|
|
|
|
|
|
|
|
2005-07-22 02:50:25 -07:00
|
|
|
##############################################################################
|
|
|
|
# Pygtk stuff
|
|
|
|
#
|
2005-06-22 15:13:12 -07:00
|
|
|
|
2005-07-22 02:50:25 -07:00
|
|
|
EXTRA_DIST += mooterm-mod.c mooterm-pygtk.defs mooterm-pygtk.override
|
|
|
|
|
|
|
|
if USE_PYGTK
|
|
|
|
libmooterm_la_SOURCES += mooterm-mod.c
|
|
|
|
|
|
|
|
nodist_libmooterm_la_SOURCES = mooterm-pygtk.c
|
|
|
|
BUILT_SOURCES += mooterm-pygtk.c
|
|
|
|
CLEANFILES = mooterm-pygtk.c
|
|
|
|
|
|
|
|
mooterm-pygtk.c: $(srcdir)/mooterm-pygtk.defs $(srcdir)/mooterm-pygtk.override
|
|
|
|
pygtk-codegen-2.0 --prefix moo_term \
|
|
|
|
--register $(PYGTK_DEFS_DIR)/gtk-types.defs \
|
|
|
|
--register $(PYGTK_DEFS_DIR)/gdk-types.defs \
|
|
|
|
--register $(srcdir)/../mooui/mooui-pygtk.defs \
|
|
|
|
--override $(srcdir)/mooterm-pygtk.override \
|
|
|
|
$(srcdir)/mooterm-pygtk.defs > mooterm-pygtk.c
|
|
|
|
|
|
|
|
endif USE_PYGTK
|
2005-06-22 15:13:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# CYGWIN
|
|
|
|
#
|
|
|
|
if CYGWIN_BUILD
|
|
|
|
|
|
|
|
noinst_PROGRAMS = termhelper
|
|
|
|
|
|
|
|
termhelper_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
$(CYGWIN_CFLAGS)
|
|
|
|
|
|
|
|
termhelper_SOURCES = $(termhelper_sources)
|
|
|
|
termhelper_LDADD = $(CYGWIN_LDFLAGS) termhelper_res.res
|
|
|
|
|
|
|
|
termhelper_res.res: termhelper_res.rc
|
|
|
|
$(WINDRES) -i termhelper_res.rc --input-format=rc -o termhelper_res.res -O coff
|
|
|
|
|
|
|
|
endif CYGWIN_BUILD
|