view src/libeggsmclient/Makefile @ 4844:aed7b7a97932

Functions were declared that are only used in specific situations. Move a code block up a bit and #ifdef appropriately.
author Tony Vroon <chainsaw@gentoo.org>
date Mon, 13 Apr 2009 00:19:52 +0100
parents 7bf7f83a217e
children
line wrap: on
line source

ifdef PLATFORM_WIN32
platform_sources = eggsmclient-win32.c
platform_defines =
platform_libs =
else
platform_sources = eggsmclient-xsmp.c \
                   eggdesktopfile.c
platform_defines = -DEGG_SM_CLIENT_BACKEND_XSMP ${SM_CFLAGS}
platform_libs = ${SM_LIBS}
endif

STATIC_LIB_NOINST = libeggsmclient.a

SRCS = eggsmclient.c         \
       ${platform_sources}

include ../../buildsys.mk
include ../../extra.mk

#includesubdir = audacious

CFLAGS += ${INCLUDES} ${GLIB_CFLAGS} ${GTK_CFLAGS} -I../.. -I. ${platform_defines}
LIBS += ${GLIB_LIBS} ${GTK_LIBS} ${platform_libs}
CPPFLAGS += ${CFLAGS}