view libpurple/protocols/novell/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 315151da0dc6
line wrap: on
line source

EXTRA_DIST = \
		Makefile.mingw

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

NOVELLSOURCES = \
		nmfield.h \
		nmfield.c \
		nmconn.h \
		nmconn.c \
		nmconference.h \
		nmconference.c \
		nmcontact.h \
		nmcontact.c \
		nmevent.h \
		nmevent.c \
		nmmessage.h \
		nmmessage.c \
		nmrequest.h \
		nmrequest.c \
		nmrtf.h \
		nmrtf.c \
		nmuser.h \
		nmuser.c \
		nmuserrecord.h \
		nmuserrecord.c \
		novell.c

AM_CFLAGS = $(st)

libnovell_la_LDFLAGS = -module -avoid-version

if STATIC_NOVELL

st = -DPURPLE_STATIC_PRPL
noinst_LIBRARIES = libnovell.a
pkg_LTLIBRARIES =

libnovell_a_SOURCES = $(NOVELLSOURCES)
libnovell_a_CFLAGS = $(AM_CFLAGS)

else

st =
pkg_LTLIBRARIES = libnovell.la
noinst_LIBRARIES =

libnovell_la_SOURCES = $(NOVELLSOURCES)
libnovell_la_LIBADD  = $(GLIB_LIBS)

endif

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