From 60dfce998fe6749ab411a51adaa1c445773163ad Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 11 Apr 2006 10:18:07 +0000 Subject: [PATCH] audio plug-ins can now be built from another directory as core/plug-in/. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@18 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/Makefile.audio_module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/plug-in/Makefile.audio_module b/core/plug-in/Makefile.audio_module index 0eac1c41..22632d6c 100644 --- a/core/plug-in/Makefile.audio_module +++ b/core/plug-in/Makefile.audio_module @@ -1,9 +1,11 @@ -include ../../Makefile.defs +COREPATH ?=../.. +include $(COREPATH)/Makefile.defs ldflags = -shared $(module_ldflags) -cflags = -fPIC -I ../../amci -Wall $(module_cflags) +cflags = -I $(COREPATH) -I $(COREPATH)/amci -Wall $(module_cflags) +#-fPIC -audio_mod_dir = ../../lib +audio_mod_dir = $(COREPATH)/lib lib_name = $(plug_in_name).so lib_full_name = $(audio_mod_dir)/$(lib_name) @@ -31,7 +33,7 @@ install: $(lib_name) $(extra_install) $(INSTALL-TOUCH) $(modules-prefix)/$(modules-dir)/$(lib_name) ; \ $(INSTALL-MODULES) $(lib_name) $(modules-prefix)/$(modules-dir) -%.d: %.c Makefile ../Makefile.audio_module +%.d: %.c Makefile $(COREPATH)/plug-in/Makefile.audio_module gcc -MM $< $(cflags) > $@ %.o: %.c %.d