Blob Blame History Raw
diff -up xmp-plugin-audacious-8c492d73aceacd2c98d42cd8936ea73d74a8c033/Makefile.r xmp-plugin-audacious-8c492d73aceacd2c98d42cd8936ea73d74a8c033/Makefile
--- xmp-plugin-audacious-8c492d73aceacd2c98d42cd8936ea73d74a8c033/Makefile.r	2013-06-26 23:56:27.000000000 +0200
+++ xmp-plugin-audacious-8c492d73aceacd2c98d42cd8936ea73d74a8c033/Makefile	2013-07-12 01:37:24.366961927 +0200
@@ -1,7 +1,8 @@
 VERSION	= 4.0.0
 
 CC		= gcc
-CFLAGS		= -c -Wall -g -O2 -fPIC -D_REENTRANT \
+OPTFLAGS	= -g -O2
+CFLAGS		= -c -Wall $(OPTFLAGS) -fPIC -D_REENTRANT \
 		  `pkg-config --cflags libxmp audacious glib-2.0`
 LD		= gcc
 LDFLAGS		= 
@@ -16,6 +17,7 @@ DIST		= audacious-plugin-xmp-$(VERSION)
 DFILES		= README INSTALL COPYING CREDITS Changelog configure \
 		  install-sh configure.ac Makefile.in
 DDIRS		=
+OBJS		= audacious3.lo
 
 all: binaries
 
@@ -41,11 +43,11 @@ clean:
 install: install-plugin
 
 install-plugin:
-	$(INSTALL)
+	$(INSTALL) -D xmp-audacious3.so $(DESTDIR)$(PLUGIN_DIR)/xmp-audacious3.so
 
 depend:
 	@echo Building dependencies...
-	@$(CC) $(CFLAGS) -MM $(OBJS:.o=.c) > $@
+	@$(CC) $(CFLAGS) -MM $(OBJS:.lo=.c) > $@
 	    
 dist: dist-prepare dist-subdirs