view Plugins/Input/sid/Makefile.in @ 663:de036d09f9f7 trunk

[svn] Link against libstdc++ because we're intermixing code.
author nenolod
date Wed, 22 Feb 2006 17:31:03 -0800
parents 86c09efdc4e7
children 2561275dc71b
line wrap: on
line source

include ../../../mk/rules.mk
include ../../../mk/objective.mk

OBJECTIVE_LIBS = libsid.so

###
### Source targets
###
EXTRA_DIST = xmms-sid-logo.xpm

# Generals
CFLAGS   += -fPIC -DPIC -D_REENTRANT $(PLUGIN_CFLAGS) $(SIDPLAY1_INCLUDES) $(SIDPLAY2_INCLUDES) $(BUILDERS_INCLUDES) $(GTK_CFLAGS) -I../../../intl -I../../..
CXXFLAGS = $(CFLAGS)

# Generated libraries

LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR)

LDFLAGS = $(BUILDERS_LDFLAGS)
LIBADD  = $(SIDPLAY1_LDADD) $(SIDPLAY2_LDADD) $(RESID_LDADD) $(HARDSID_LDADD) $(GTK_LIBS) -lstdc++
SOURCES =	\
	xs_init.c	\
	xs_about.c	\
	xs_support.c	\
	xs_config.c	\
	xs_md5.c	\
	xs_length.c	\
	xs_genui.c	\
	xs_glade.c	\
	xs_interface.c	\
	xs_stil.c	\
	xs_title.c	\
	xs_fileinfo.c	\
	xs_filter.c	\
	xs_sidplay1.cc	\
	xs_sidplay2.cc	\
	xmms-sid.c

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

libsid.so: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(LIBADD) -shared $(OBJECTS) -o $@