view libpurple/protocols/toc/Makefile.am @ 16765:441945083737

Now that version.h is a generated source file, we need to add -I$(top_builddir)/libpurple to CFLAGS to allow building in a separate directory from the source directory. Fixes part of #566
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 03 May 2007 12:54:47 +0000
parents ce049678a67b
children 2b62300d2c19
line wrap: on
line source

EXTRA_DIST = \
		PROTOCOL \
		Makefile.mingw

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

TOCSOURCES = toc.c

AM_CFLAGS = $(st)

libtoc_la_LDFLAGS = -module -avoid-version

if STATIC_TOC

st = -DPURPLE_STATIC_PRPL
noinst_LIBRARIES = libtoc.a
libtoc_a_SOURCES = $(TOCSOURCES)
libtoc_a_CFLAGS  = $(AM_CFLAGS)

else

st =
pkg_LTLIBRARIES   = libtoc.la
libtoc_la_SOURCES = $(TOCSOURCES)

endif

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