EXTRA_DIST = \
		getopt.c \
		getopt.h \
		getopt1.c \
		Makefile.mingw \
		win_gaim.c \
		win32/IdleTracker/Makefile.mingw \
		win32/IdleTracker/idletrack.c \
		win32/IdleTracker/idletrack.h \
		win32/MinimizeToTray.c \
		win32/MinimizeToTray.h \
		win32/gaimrc.rc \
		win32/global.mak \
		win32/libc_interface.c \
		win32/libc_interface.h \
		win32/libc_internal.h \
		win32/resource.h \
		win32/stdafx.h \
		win32/untar.c \
		win32/untar.h \
		win32/wgaimerror.h \
		win32/win32dep.c \
		win32/win32dep.h \
		win32/wspell.c \
		win32/wspell.h \
		win32/mingw_plus/winuser_extra.h \
		win32/nsis/AddToPath.nsi \
		win32/nsis/gaim-header.bmp \
		win32/nsis/gaim-intro.bmp \
		win32/nsis/gtkInstall.ini \
		win32/nsis/translations/dutch.nsh \
		win32/nsis/translations/bulgarian.nsh \
		win32/nsis/translations/english.nsh \
		win32/nsis/translations/french.nsh \
		win32/nsis/translations/german.nsh \
		win32/nsis/translations/hungarian.nsh \
		win32/nsis/translations/italian.nsh \
		win32/nsis/translations/portuguese-br.nsh \
		win32/nsis/translations/serbian-latin.nsh \
		win32/nsis/translations/simp-chinese.nsh \
		win32/nsis/translations/swedish.nsh \
		win32/nsis/translations/trad-chinese.nsh

SUBDIRS = protocols

CORESOURCES = \
	account.c \
	account.h \
	accountopt.c \
	accountopt.h \
	blist.c \
	blist.h \
	connection.c \
	connection.h \
	conversation.c \
	conversation.h \
	core.c \
	core.h \
	debug.c \
	debug.h \
	ft.c \
	ft.h \
	html.c \
	html.h \
	md5.c \
	md5.h \
	multi.h \
	notify.c \
	notify.h \
	plugin.c \
	plugin.h \
	pounce.c \
	pounce.h \
	privacy.c \
	privacy.h \
	proxy.c \
	proxy.h \
	prefs.c \
	prefs.h \
	prpl.c \
	prpl.h \
	request.c \
	request.h \
	server.c \
	server.h \
	signals.c \
	signals.h \
	status.c \
	status.h \
	sound.c \
	sound.h \
	util.c \
	util.h \
	value.c \
	value.h

bin_PROGRAMS = gaim gaim-remote
gaim_SOURCES = \
	$(CORESOURCES) \
	about.c \
	away.c \
	browser.c \
	buddy_chat.c \
	dialogs.c \
	dnd-hints.c \
	dnd-hints.h \
	gaim.h \
	gaim-disclosure.c \
	gaim-disclosure.h \
	gaimrc.c \
	gtkaccount.c \
	gtkaccount.h \
	gtkcellrendererprogress.c \
	gtkcellrendererprogress.h \
	gtkblist.c \
	gtkblist.h \
	gtkconn.c \
	gtkconn.h \
	gtkconv.c \
	gtkconv.h \
	gtkdebug.c \
	gtkdebug.h \
	gtkft.c \
	gtkft.h \
	gtkimhtml.c \
	gtkimhtml.h \
	gtkinternal.h \
	gtknotify.c \
	gtknotify.h \
	gtkplugin.c \
	gtkplugin.h \
	gtkprefs.c \
	gtkprefs.h \
	gtkprivacy.c \
	gtkprivacy.h \
	gtkpounce.c \
	gtkpounce.h \
	gtkrequest.c \
	gtkrequest.h \
	gtksound.c \
	gtksound.h \
	gtkutils.c \
	gtkutils.h \
	idle.c \
	internal.h \
	log.c \
	log.h \
	main.c \
	session.c \
	stock.c \
	stock.h \
	themes.c \
	ui.h

gaim_DEPENDENCIES = @LIBOBJS@ $(STATIC_LINK_LIBS)
gaim_LDFLAGS = -export-dynamic
gaim_LDADD = \
	@LIBOBJS@ \
	$(GTK_LIBS) \
	$(SOUND_LIBS) \
	$(STATIC_LINK_LIBS) \
	$(XSS_LIBS) \
	$(SM_LIBS) \
	$(INTLLIBS) \
	$(GTKSPELL_LIBS)

gaim_remote_SOURCES = \
	gaim-remote.c

gaim_remote_DEPENDENCIES = @LIBOBJS@
gaim_remote_LDADD = \
	@LIBOBJS@ $(GLIB_LIBS) $(INTLLIBS) \
	-L$(top_builddir)/plugins/gaim-remote -lgaim-remote

AM_CPPFLAGS = \
	-DDATADIR=\"$(datadir)\" \
	-DLIBDIR=\"$(libdir)/gaim/\" \
	-DLOCALEDIR=\"$(datadir)/locale\" \
	-I$(top_srcdir)/plugins \
	$(AUDIOFILE_CFLAGS) \
	$(AO_CFLAGS) \
	$(DEBUG_CFLAGS) \
	$(GTK_CFLAGS) \
	$(GTKSPELL_CFLAGS)
