view libpurple/protocols/irc/Makefile.am @ 24944:b474cd321e88

make this toggleable via env instead of #define
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 11 Jan 2009 22:31:01 +0000
parents 2b62300d2c19
children adf153852bcf
line wrap: on
line source

EXTRA_DIST = \
	Makefile.mingw

pkgdir = $(libdir)/purple-$(PURPLE_MAJOR_VERSION)

IRCSOURCES = \
	cmds.c \
	dcc_send.c \
	irc.c \
	irc.h \
	msgs.c \
	parse.c

AM_CFLAGS = $(st)

libirc_la_LDFLAGS = -module -avoid-version

if STATIC_IRC

st = -DPURPLE_STATIC_PRPL
noinst_LTLIBRARIES = libirc.la
libirc_la_SOURCES  = $(IRCSOURCES)
libirc_la_CFLAGS   = $(AM_CFLAGS)

else

st =
pkg_LTLIBRARIES   = libirc.la
libirc_la_SOURCES = $(IRCSOURCES)
libirc_la_LIBADD  = $(GLIB_LIBS)

endif

AM_CPPFLAGS = \
	-I$(top_srcdir)/libpurple \
	-I$(top_builddir)/libpurple \
	$(GLIB_CFLAGS) \
	$(DEBUG_CFLAGS)