diff src/wma/Makefile @ 1796:ea0dea2cc2a5

There was no real reason for 2 Makefiles.
author Jonathan Schleifer <js@h3c.de>
date Mon, 24 Sep 2007 19:32:10 +0200
parents add71276abfc
children efa9fa7c699b
line wrap: on
line diff
--- a/src/wma/Makefile	Mon Sep 24 19:21:12 2007 +0200
+++ b/src/wma/Makefile	Mon Sep 24 19:32:10 2007 +0200
@@ -1,17 +1,32 @@
-include ../../extra.mk
+PLUGIN = wma$(PLUGIN_SUFFIX)
+SRCS = wma.c			\
+       libffwma/allcodecs.c	\
+       libffwma/allformats.c	\
+       libffwma/asf.c		\
+       libffwma/avio.c		\
+       libffwma/aviobuf.c	\
+       libffwma/common.c	\
+       libffwma/cutils.c	\
+       libffwma/dsputil.c	\
+       libffwma/fft.c		\
+       libffwma/file.c		\
+       libffwma/futils.c	\
+       libffwma/mdct.c		\
+       libffwma/os_support.c	\
+       libffwma/parser.c	\
+       libffwma/simple_idct.c	\
+       libffwma/utils.c		\
+       libffwma/wmadec.c	\
+       libffwma/mem.c		\
+       libffwma/uri.c
 
-PLUGIN = wma$(PLUGIN_SUFFIX)
 plugindir = audacious/$(INPUT_PLUGIN_DIR)
-SUBDIRS = libffwma
 
-LIBDEP = ./libffwma/libffwma.a
-
-SRCS = wma.c
-
+include ../../extra.mk
 include ../../buildsys.mk
 
-LIBS += ./libffwma/libffwma.a $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
+${LIB}: libffwma/${LIB_PREFIX}ffwma${LIB_SUFFIX}
 
-CFLAGS += $(PLUGIN_CFLAGS)
-CPPFLAGS += $(MOWGLI_CFLAGS) $(DBUS_CFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) -I../.. -I./libffwma -std=c99 $(GCC42_CFLAGS)
-
+CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} -I../.. -I./libffwma -std=c99 ${GCC42_CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+CFLAGS += ${PLUGIN_CFLAGS}
+LIBS += ./libffwma/libffwma.a ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}