changeset 587:e0889076790e trunk

[svn] Convert adplug over to build objectives...
author nenolod
date Thu, 02 Feb 2006 18:23:59 -0800
parents 4daff04c6389
children 113833e5ab1c
files Plugins/Input/adplug/Makefile.am Plugins/Input/adplug/Makefile.in Plugins/Input/adplug/core/Makefile.am Plugins/Input/adplug/core/Makefile.in
diffstat 4 files changed, 43 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/adplug/Makefile.am	Thu Feb 02 18:16:36 2006 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-if HAVE_ADPLUG
-
-SUBDIRS = core
-lib_LTLIBRARIES = libadplug.la
-
-endif
-
-libdir = $(plugindir)/$(INPUT_PLUGIN_DIR)
-
-libadplug_la_LDFLAGS = -lstdc++ $(BINIO_LIBS) $(PLUGIN_LDFLAGS) ./core/libadplugcore.la
-
-libadplug_la_SOURCES = adplug-xmms.cc
-
-INCLUDES = $(GTK_CFLAGS) $(BINIO_CFLAGS) -I$(top_builddir)/intl -I$(top_srcdir) -I./core
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Input/adplug/Makefile.in	Thu Feb 02 18:23:59 2006 -0800
@@ -0,0 +1,16 @@
+include ../../../rules.mk
+include ../../../objective.mk
+
+SUBDIRS = core
+OBJECTIVE_LIBS = libadplug.so
+
+LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR)
+
+LIBADD = -lstdc++ $(BINIO_LIBS) ./core/libadplugcore.a
+
+SOURCES = adplug-xmms.cc
+
+OBJECTS = ${SOURCES:.c=.o}
+
+CFLAGS += -fPIC -DPIC $(GTK_CFLAGS) $(BINIO_CFLAGS) \
+	-I../../../intl -I../../.. -I./core
--- a/Plugins/Input/adplug/core/Makefile.am	Thu Feb 02 18:16:36 2006 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-noinst_LTLIBRARIES = libadplugcore.la
-
-libadplugcore_la_SOURCES = adplug.cpp emuopl.cpp fmopl.c diskopl.cpp debug.c \
-debug.h fprovide.cpp player.cpp database.cpp hsc.cpp sng.cpp imf.cpp \
-players.cpp protrack.cpp a2m.cpp adtrack.cpp amd.cpp bam.cpp d00.cpp dfm.cpp dmo.cpp \
-hsp.cpp ksm.cpp mad.cpp mid.cpp mkj.cpp cff.cpp dtm.cpp fmc.cpp mtk.cpp rad.cpp raw.cpp \
-sa2.cpp s3m.cpp xad.cpp flash.cpp bmf.cpp hybrid.cpp hyp.cpp psi.cpp rat.cpp u6m.cpp \
-rol.cpp xsm.cpp adlibemu.c dro.cpp lds.cpp mididata.h realopl.cpp analopl.cpp \
-temuopl.cpp msc.cpp rix.cpp
-
-# This is a hack. Throughout AdPlug, stricmp() is used to do caseless string
-# comparations. UNIX libc's don't support stricmp(), but do support the BSD
-# strcasecmp(), so we have to replace every occurance of stricmp() into
-# strcasecmp(). stricmp() seems to be Windows, but maybe also POSIX...
-AM_CPPFLAGS = -Dstricmp=strcasecmp
-
-noinst_HEADERS = adplug.h emuopl.h fmopl.h silentopl.h opl.h diskopl.h \
-a2m.h amd.h bam.h d00.h dfm.h hsc.h hsp.h imf.h ksm.h lds.h mid.h mkj.h mtk.h \
-protrack.h rad.h raw.h sa2.h sng.h u6m.h player.h fmc.h mad.h xad.h bmf.h \
-flash.h hyp.h psi.h rat.h hybrid.h rol.h adtrack.h cff.h dtm.h fprovide.h \
-database.h players.h xsm.h adlibemu.h kemuopl.h dro.h dmo.h s3m.h realopl.h \
-analopl.h temuopl.h msc.h rix.h
-
-INCLUDES = $(BINIO_CFLAGS) -I$(top_builddir)/intl -I$(top_srcdir)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Input/adplug/core/Makefile.in	Thu Feb 02 18:23:59 2006 -0800
@@ -0,0 +1,27 @@
+include ../../../../mk/rules.mk
+include ../../../../mk/objective.mk
+
+OBJECTIVE_LIBS_NOINST = libadplugcore.a
+
+SOURCES = adplug.cpp emuopl.cpp fmopl.c diskopl.cpp debug.c \
+fprovide.cpp player.cpp database.cpp hsc.cpp sng.cpp imf.cpp \
+players.cpp protrack.cpp a2m.cpp adtrack.cpp amd.cpp bam.cpp d00.cpp dfm.cpp dmo.cpp \
+hsp.cpp ksm.cpp mad.cpp mid.cpp mkj.cpp cff.cpp dtm.cpp fmc.cpp mtk.cpp rad.cpp raw.cpp \
+sa2.cpp s3m.cpp xad.cpp flash.cpp bmf.cpp hybrid.cpp hyp.cpp psi.cpp rat.cpp u6m.cpp \
+rol.cpp xsm.cpp adlibemu.c dro.cpp lds.cpp realopl.cpp analopl.cpp \
+temuopl.cpp msc.cpp rix.cpp
+
+# This is a hack. Throughout AdPlug, stricmp() is used to do caseless string
+# comparations. UNIX libc's don't support stricmp(), but do support the BSD
+# strcasecmp(), so we have to replace every occurance of stricmp() into
+# strcasecmp(). stricmp() seems to be Windows, but maybe also POSIX...
+AM_CPPFLAGS = -Dstricmp=strcasecmp
+
+noinst_HEADERS = adplug.h emuopl.h fmopl.h silentopl.h opl.h diskopl.h \
+a2m.h amd.h bam.h d00.h dfm.h hsc.h hsp.h imf.h ksm.h lds.h mid.h mkj.h mtk.h \
+protrack.h rad.h raw.h sa2.h sng.h u6m.h player.h fmc.h mad.h xad.h bmf.h \
+flash.h hyp.h psi.h rat.h hybrid.h rol.h adtrack.h cff.h dtm.h fprovide.h \
+database.h players.h xsm.h adlibemu.h kemuopl.h dro.h dmo.h s3m.h realopl.h \
+analopl.h temuopl.h msc.h rix.h
+
+CFLAGS += -fPIC -DPIC $(BINIO_CFLAGS) -I../../../../intl -I../../../..