[asterisk-commits] trunk r9551 - /trunk/funcs/Makefile

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 11 09:30:24 MST 2006


Author: kpfleming
Date: Sat Feb 11 10:30:23 2006
New Revision: 9551

URL: http://svn.digium.com/view/asterisk?rev=9551&view=rev
Log:
prepare to use auto-build rules in other Makefiles

Modified:
    trunk/funcs/Makefile

Modified: trunk/funcs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/funcs/Makefile?rev=9551&r1=9550&r2=9551&view=diff
==============================================================================
--- trunk/funcs/Makefile (original)
+++ trunk/funcs/Makefile Sat Feb 11 10:30:23 2006
@@ -11,15 +11,13 @@
 # the GNU General Public License
 #
 
-AVAILABLE_FUNCS=$(patsubst %.c,%.o,$(wildcard func*.c))
+BUILD_MODS:=$(patsubst %.c,%.o,$(wildcard func_*.c))
 
 ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
-  STANDALONE_FUNCS=$(filter-out func_odbc.o,$(AVAILABLE_FUNCS))
-else
-  STANDALONE_FUNCS=$(AVAILABLE_FUNCS)
+  BUILD_MODS:=$(filter-out func_odbc.o,$(BUILD_MODS))
 endif
 
-FUNCS=$(STANDALONE_FUNCS:.o=.so)
+MODS:=$(BUILD_MODS:.o=.so)
 
 ifeq (${OSARCH},CYGWIN)
 CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
@@ -28,7 +26,7 @@
 CFLAGS+=-fPIC
 endif
 
-all: $(FUNCS)
+all: $(MODS)
 
 clean:
 	rm -f *.so *.o .depend
@@ -40,7 +38,7 @@
 	$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc
 
 install: all
-	for x in $(FUNCS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+	for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
 
 uninstall:
 



More information about the asterisk-commits mailing list