changeset 1790:2d37dbee0d12

OSS4 -> new buildsys
author Jonathan Schleifer <js@h3c.de>
date Mon, 24 Sep 2007 19:19:41 +0200
parents f9b1498c06f4
children ea7ec02f2ea2
files src/OSS4/Makefile src/OSS4/OSS4.h
diffstat 2 files changed, 14 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/OSS4/Makefile	Mon Sep 24 12:14:25 2007 -0500
+++ b/src/OSS4/Makefile	Mon Sep 24 19:19:41 2007 +0200
@@ -1,17 +1,16 @@
-include ../../mk/rules.mk
-include ../../mk/init.mk
-
-OBJECTIVE_LIBS = libOSS4$(SHARED_SUFFIX)
-
-noinst_HEADERS = OSS4.h soundcard.h
-
-LIBDIR = $(plugindir)/$(OUTPUT_PLUGIN_DIR)
+PLUGIN = OSS4${PLUGIN_SUFFIX}
+SRCS = OSS4.c		\
+       about.c		\
+       configure.c	\
+       audio.c		\
+       init.c		\
+       convert.c
 
-LIBADD = $(OSS_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
-SOURCES = OSS4.c about.c configure.c audio.c init.c convert.c
+plugindir = audacious/${INPUT_PLUGIN_DIR}
 
-OBJECTS = ${SOURCES:.c=.o}
+include ../../buildsys.mk
+include ../../extra.mk
 
-CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) -I/usr/lib/oss/include -I../../intl -I../..
-
-include ../../mk/objective.mk
+CPPFLAGS += ${PLUGIN_CPPFLAGS} -I/usr/lib/oss/include -I../../intl -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS}
+CFLAGS += ${PLUGIN_CFLAGS} -I/usr/lib/oss/include -I../../intl -I../.. ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS}
+LIBS += ${OSS_LIBS} ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS}
--- a/src/OSS4/OSS4.h	Mon Sep 24 12:14:25 2007 -0500
+++ b/src/OSS4/OSS4.h	Mon Sep 24 19:19:41 2007 +0200
@@ -22,9 +22,7 @@
 #ifndef OSS4_H
 #define OSS4_H
 
-#ifdef HAVE_CONFIG_H
-#  include "config.h"
-#endif
+#include "config.h"
 
 #ifdef HAVE_SYS_SOUNDCARD_H
 #include <sys/soundcard.h>