## Process this file with automake to produce Makefile.in
# $Id: Makefile.am 1552 2007-05-21 15:43:50Z eht16 $


EXTRA_DIST = images.c gb.c win32.c win32.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 \
	encodings.c encodings.h \
	filetypes.c filetypes.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 \
	notebook.c notebook.h \
	prefs.c prefs.h \
	project.c project.h \
	sci_cb.c sci_cb.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


if MINGW
# build Geany for Windows
WINDRES = /usr/local/cross-tools/bin/i386-mingw32msvc-windres

geany_SOURCES = $(SRCS) win32.c win32.h
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lstdc++ @PACKAGE_LIBS@ \
			$(INTLLIBS) -lgdi32 -limm32 -lshell32 -lole32 -luuid -liberty -lcomdlg32 -lcomctl32 \
			geany_private.res
AM_CFLAGS = -Wall -pipe -mms-bitfields
#AM_CFLAGS = -DGEANY_DEBUG -Wall -pipe -mms-bitfields -g -O0
geany_LDFLAGS =	-mwindows

INCLUDES = -I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include -DENABLE_NLS \
           -I/usr/local/cross-tools/include @PACKAGE_CFLAGS@

geany_windres.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
AM_CFLAGS = -Wall -pipe
#AM_CFLAGS = -DGEANY_DEBUG -Wall -pipe -g -O0
geany_SOURCES = $(SRCS) vte.c vte.h
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @PACKAGE_LIBS@ -lstdc++ $(INTLLIBS)

INCLUDES = \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include @PACKAGE_CFLAGS@

clean-local:

endif


syntax highlighted by Code2HTML, v. 0.9.1