view src/libaudacious/Makefile @ 2391:1ab061263ee8 trunk

[svn] - rework objective make _a lot_
author nenolod
date Tue, 23 Jan 2007 10:22:32 -0800
parents 0358eb5783e6
children 30ab29ed32d8
line wrap: on
line source

include ${top_srcdir}/mk/rules.mk
include ${top_srcdir}/mk/init.mk

PICLDFLAGS = $(LIBLDFLAGS)

OBJECTIVE_LIBS = libaudacious$(SHARED_SUFFIX)
OBJECTIVE_SONAME_SUFFIX = 4

LIBADD = \
	$(GTK_LIBS)      \
	$(GCONF_LIBS)	\
	$(LIBMCS_LIBS)

CFLAGS += $(PICFLAGS) \
	$(GTK_CFLAGS)        \
	$(GCONF_CFLAGS)      \
	$(LIBMCS_CFLAGS)	\
	-D_AUDACIOUS_CORE    \
	-I.. -I${top_srcdir}	      \
	-I../intl

CONF_SRC = configdb_$(CONFIGDB_BACKEND).c

SOURCES = \
	$(CONF_SRC) \
	rcfile.c \
	beepctrl.c \
	util.c \
	formatter.c \
	titlestring.c \
	xconvert.c \
	urldecode.c

OBJECTS = ${SOURCES:.c=.o}

HEADERS = \
	rcfile.h configdb.h \
	beepctrl.h urldecode.h \
	formatter.h titlestring.h xconvert.h

include ${top_srcdir}/mk/objective.mk

install-posthook:
	@mv ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX) ${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX).4.0.0
	@ln -sf libaudacious$(SHARED_SUFFIX).4.0.0 \
		${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX).4
	@ln -sf libaudacious$(SHARED_SUFFIX).4 \
		${DESTDIR}/${LIBDIR}/libaudacious$(SHARED_SUFFIX)