geany/src/Makefile.am
Nick Treleaven 37e0d1f3f1 Move GeanyDocument GUI elements and saved_encoding to private
Document struct which inherits from GeanyDocument. This is to hide
implementation fields from the plugin API, so that we can change
them if necessary.
Add DOCUMENT() macro to convert a GeanyDocument* to a Document*.
Also move UNDO_*, FileEncoding to documentprivate.h.
Move undo_action struct to document.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-02 15:31:59 +00:00

116 lines
2.6 KiB
Makefile

## Process this file with automake to produce Makefile.in
# $Id$
EXTRA_DIST = images.c gb.c win32.c win32.h plugindata.h \
documentprivate.h
bin_PROGRAMS = geany
SRCS = \
about.c about.h \
build.c build.h \
callbacks.c callbacks.h \
dialogs.c dialogs.h \
document.c document.h \
editor.c editor.h \
encodings.c encodings.h \
filetypes.c filetypes.h \
geanyobject.c geanyobject.h \
geanywraplabel.c geanywraplabel.h \
highlighting.c highlighting.h \
interface.c interface.h \
keybindings.c keybindings.h \
keyfile.c keyfile.h \
main.c main.h geany.h \
msgwindow.c msgwindow.h \
navqueue.c navqueue.h \
notebook.c notebook.h \
plugins.c plugins.h \
prefix.c prefix.h \
prefs.c prefs.h \
printing.c printing.h \
project.c project.h \
sciwrappers.c sciwrappers.h \
search.c search.h \
socket.c socket.h \
support.c support.h \
symbols.c symbols.h \
templates.c templates.h \
tools.c tools.h \
treeviews.c treeviews.h \
ui_utils.c ui_utils.h \
utils.c utils.h
geany_includedir = $(includedir)/geany/
geany_include_HEADERS = \
dialogs.h \
document.h \
editor.h \
encodings.h \
filetypes.h \
highlighting.h \
keybindings.h \
geany.h \
msgwindow.h \
plugins.h \
plugindata.h \
prefs.h \
project.h \
sciwrappers.h \
search.h \
support.h \
templates.h \
ui_utils.h \
utils.h
INCLUDES = -I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include @GTK_CFLAGS@
# tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
nodist_EXTRA_geany_SOURCES = dummy.cxx
if MINGW
# build Geany for Windows on non-Windows systems (cross-compile)
geany_SOURCES = $(SRCS) win32.c win32.h
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ $(INTLLIBS) \
-lkernel32 -limm32 -lshfolder -lshell32 -lole32 -luuid -lcomdlg32 \
-lcomctl32 -liberty -lwsock32 geany_private.res
AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
-DGEANY_DOCDIR=\"\" \
-DGEANY_LIBDIR=\"\" \
-DGEANY_LOCALEDIR=\"data\" \
-DGEANY_PREFIX=\"\"
geany_LDFLAGS = -mwindows -mms-bitfields
WINDRES = $(host_alias)-windres
geany_private.res:
$(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
clean-local:
rm -f geany_private.res
else
# build Geany for all other platforms
geany_SOURCES = $(SRCS) vte.c vte.h
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ $(INTLLIBS)
AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
-DGEANY_DOCDIR=\""$(docdir)"\" \
-DGEANY_LIBDIR=\""$(libdir)"\" \
-DGEANY_LOCALEDIR=\""$(localedir)"\" \
-DGEANY_PREFIX=\""$(prefix)"\"
clean-local:
endif