CC ?= gcc #INCDIR = -I sndstretch CFLAGS += -Wall $(INCDIR) `xmms-config --cflags` #LDFLAGS = -lgthread -lpthread LDFLAGS = -gthread -pthread `xmms-config --libs` # maybe you will have to change this XMMS_EPLUGIN_DIR = `xmms-config --effect-plugin-dir` XMMS_OPLUGIN_DIR = `xmms-config --output-plugin-dir` all: effect_plugin output_plugin effect_plugin: sndstretch_xmms_eff.lo sndstretch.lo $(CC) -shared sndstretch_xmms_eff.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_eff.so output_plugin: sndstretch_xmms_out.lo sndstretch.lo $(CC) -shared sndstretch_xmms_out.lo sndstretch.lo `${GTK_CONFIG} --libs` ${THREADS} -lc -o sndstretch_xmms_out.so sndstretch_xmms_eff.lo: sndstretch_xmms.h sndstretch_xmms_eff.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm $(CC) $(CFLAGS) -fPIC -c sndstretch_xmms_eff.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_eff.lo sndstretch_xmms_out.lo: sndstretch_xmms.h sndstretch_xmms_out.c sndstretch_xmms.c FB_logo.xpm sndstretch_xmms-logo.xpm $(CC) $(CFLAGS) -fPIC -c sndstretch_xmms_out.c `${GTK_CONFIG} --cflags` -o sndstretch_xmms_out.lo sndstretch.lo: sndstretch.c sndstretch.h $(CC) $(CFLAGS) -fPIC -c sndstretch.c -o sndstretch.lo install: install sndstretch_xmms_out.so $(XMMS_OPLUGIN_DIR) install sndstretch_xmms_eff.so $(XMMS_EPLUGIN_DIR) clean: rm -f *~ ; rm -f *.o ; rm -f *.so *.lo