diff src/adplug/Makefile @ 1872:50f1c5a40a7d

adplug -> new buildsys. Untested, please test!
author Jonathan Schleifer <js@h3c.de>
date Tue, 25 Sep 2007 18:03:21 +0200
parents f19e6748d8eb
children 52d162b0dbd4
line wrap: on
line diff
--- a/src/adplug/Makefile	Tue Sep 25 16:51:17 2007 +0200
+++ b/src/adplug/Makefile	Tue Sep 25 18:03:21 2007 +0200
@@ -1,22 +1,63 @@
-include ../../mk/rules.mk
-include ../../mk/init.mk
-
-SUBDIRS = core
-OBJECTIVE_LIBS = libadplug$(SHARED_SUFFIX)
-
-LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR)
-
-LIBADD = ./core/libadplugcore.a $(BINIO_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) -lstdc++
+PLUGIN = adplug${PLUGIN_SUFFIX}
+SRCS = adplug-xmms.cc		\
+       core/fmopl.c		\
+       core/debug.c		\
+       core/adlibemu.c		\
+       core/adplug.cxx		\
+       core/emuopl.cxx		\
+       core/diskopl.cxx		\
+       core/fprovide.cxx	\
+       core/player.cxx		\
+       core/database.cxx	\
+       core/hsc.cxx		\
+       core/sng.cxx		\
+       core/imf.cxx		\
+       core/players.cxx		\
+       core/protrack.cxx	\
+       core/a2m.cxx		\
+       core/adtrack.cxx		\
+       core/amd.cxx		\
+       core/bam.cxx		\
+       core/d00.cxx		\
+       core/dfm.cxx		\
+       core/dmo.cxx		\
+       core/hsp.cxx		\
+       core/ksm.cxx		\
+       core/mad.cxx		\
+       core/mid.cxx		\
+       core/mkj.cxx		\
+       core/cff.cxx		\
+       core/dtm.cxx		\
+       core/fmc.cxx		\
+       core/mtk.cxx		\
+       core/rad.cxx		\
+       core/raw.cxx		\
+       core/sa2.cxx		\
+       core/s3m.cxx		\
+       core/xad.cxx		\
+       core/flash.cxx		\
+       core/bmf.cxx		\
+       core/hybrid.cxx		\
+       core/hyp.cxx		\
+       core/psi.cxx		\
+       core/rat.cxx		\
+       core/u6m.cxx		\
+       core/rol.cxx		\
+       core/xsm.cxx		\
+       core/dro.cxx		\
+       core/lds.cxx		\
+       core/temuopl.cxx		\
+       core/msc.cxx		\
+       core/rix.cxx		\
+       core/adl.cxx		\
+       core/jbm.cxx
 
-SOURCES = adplug-xmms.cc
+plugindir = audacious/${INPUT_PLUGIN_DIR}
 
-OBJECTS = ${SOURCES:.cc=.o}
-
-LIBDEP = ./core/libadplugcore.a
+include ../../buildsys.mk
+include ../../extra.mk
 
-CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(BINIO_CFLAGS) \
-	-I../../intl -I../.. -I./core
-CXXFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(BINIO_CFLAGS) \
-	-I../../intl -I../.. -I./core
-
-include ../../mk/objective.mk
+CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${BINIO_CFLAGS} -I../../intl -I../.. -I./core -Dstricmp=strcasecmp
+CFLAGS += ${PLUGIN_CFLAGS}
+CXXFLAGS += ${PLUGIN_CFLAGS}
+LIBS += ${BINIO_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}