changeset 2008:b3002edfa3b9

Converted the last plugin to the new build system.
author Eugene Paskevich <eugene@raptor.kiev.ua>
date Wed, 10 Oct 2007 06:01:07 +0300
parents 57ee341c180f
children f5fce8790dbf
files src/shnplug/Makefile
diffstat 1 files changed, 23 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/shnplug/Makefile	Wed Oct 10 05:21:55 2007 +0300
+++ b/src/shnplug/Makefile	Wed Oct 10 06:01:07 2007 +0300
@@ -1,30 +1,29 @@
-include ../../mk/rules.mk
-include ../../mk/init.mk
-
-OBJECTIVE_LIBS = libshnplug$(SHARED_SUFFIX)
-
-LIBDIR = $(plugindir)/$(INPUT_PLUGIN_DIR)
+PLUGIN = libshnplug$(PLUGIN_SUFFIX)
 
-SOURCES = \
-  array.c \
-  convert.c \
-  fixio.c \
-  gtk.c \
-  id3v2.c \
-  misc.c \
-  output.c \
-  seek.c \
-  shn.c \
-  shorten.c \
-  sulawalaw.c \
-  vario.c \
-  wave.c
+SRCS = array.c		\
+       convert.c	\
+       fixio.c		\
+       gtk.c		\
+       id3v2.c		\
+       misc.c		\
+       output.c		\
+       seek.c		\
+       shn.c		\
+       shorten.c	\
+       sulawalaw.c	\
+       vario.c		\
+       wave.c
 
-OBJECTS = ${SOURCES:.c=.o}
+include ../../buildsys.mk
+include ../../extra.mk
 
-CFLAGS   += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) $(SIMD_CFLAGS) -I../../intl -I../.. -Wall
+plugindir := $(plugindir)/$(INPUT_PLUGIN_DIR)
 
+CFLAGS += $(PLUGIN_CFLAGS)
+CPPFLAGS += $(PLUGIN_CPPFLAGS) $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(MOWGLI_CFLAGS) \
+	    $(PANGO_CFLAGS) $(ARCH_DEFINES) $(SIMD_CFLAGS) -I../../intl -I../.. -Wall
 LDFLAGS += $(AUDLDFLAGS)
-LIBADD = -L/opt/local/lib -L$(plugindir) -Wl,-rpath=$(plugindir) -laudid3tag $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
+LIBS += $(GTK_LIBS) $(GLIB_LIBS) $(PANGO_LIBS)
 
-include ../../mk/objective.mk
+# These were the additional link flags in the old Makefile:
+# -L/opt/local/lib -L$(plugindir) -laudid3tag -Wl,-rpath=$(plugindir)