if GNOMEAPPLET
bin_PROGRAMS = gaim_applet
gaim_applet_SOURCES =	about.c \
			aim.c \
			applet.c \
			away.c \
			browser.c \
			buddy.c \
			buddy_chat.c \
			conversation.c \
			dialogs.c \
			gaimrc.c \
			gtkimhtml.c \
			gtkspell.c \
			gtkticker.c \
			html.c \
			idle.c \
			multi.c \
			oscar.c \
			perl.c \
			plugins.c \
			prefs.c \
			proxy.c \
			prpl.c \
			server.c \
			sound.c \
			ticker.c \
			toc.c \
			util.c
gaim_applet_DEPENDENCIES = ../libfaim/libfaim.a @LIBOBJS@
gaim_applet_LDFLAGS = -export-dynamic
gaim_applet_LDADD = @LDADD@ @LIBOBJS@
else
bin_PROGRAMS = gaim
gaim_SOURCES =	about.c \
		aim.c \
		applet.c \
		away.c \
		browser.c \
		buddy.c \
		buddy_chat.c \
		conversation.c \
		dialogs.c \
		gaimrc.c \
		gtkimhtml.c \
		gtkspell.c \
		gtkticker.c \
		html.c \
		idle.c \
		multi.c \
		oscar.c \
		perl.c \
		plugins.c \
		prefs.c \
		proxy.c \
		prpl.c \
		server.c \
		sound.c \
		ticker.c \
		toc.c \
		util.c
gaim_DEPENDENCIES = ../libfaim/libfaim.a @LIBOBJS@
gaim_LDFLAGS = -export-dynamic
gaim_LDADD = @LDADD@ @LIBOBJS@
endif

# libfaim stuff. should be here instead of configure.in, since plugins/prpls shouldn't
# rely on libfaim (the only file that should depend on it is oscar.c)
CFLAGS += -I$(top_srcdir)/libfaim
LIBS += ../libfaim/libfaim.a

# Perl stuff. plugins shouldn't need this either (right?)
CFLAGS += $(PERL_CFLAGS)
LIBS += $(PERL_LIBS)

# X screensaver extension
LIBS += $(XSS_LIBS)

# any other stuff
CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\" -DLIBDIR=\"$(libdir)/gaim/\" $(DEBUG_CFLAGS)
LIBS += $(DEBUG_LIBS)

EXTRA_DIST =	applet.h \
		convo.h \
		gaim.h \
		getopt.c \
		getopt.h \
		getopt1.c \
		gtkimhtml.h \
		gtkspell.h \
		gtkticker.h \
		multi.h \
		prpl.h \
		proxy.h
