diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-11 03:14:05 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-11 03:14:05 +0000 |
commit | 5f90b9bebddfa06f9d08b63e9c48830071480f38 (patch) | |
tree | 47f92d29e3216d69801be7bdb5d15fef7aab9a4d /funcs/Makefile | |
parent | 7acc893dad48c008eaced05bfbedb0d17735bc47 (diff) |
build function modules independently (no more pbx_functions.so)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9469 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/Makefile')
-rw-r--r-- | funcs/Makefile | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/funcs/Makefile b/funcs/Makefile index c1e8cd4f6..1d231faa2 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -3,7 +3,7 @@ # # Makefile for dialplan functions # -# Copyright (C) 2005, Digium +# Copyright (C) 2005 - 2006, Digium # # Kevin P. Fleming <kpfleming@digium.com> # @@ -11,23 +11,7 @@ # the GNU General Public License # -FUNCS=pbx_functions.so - -BUILTINS=func_md5.o \ - func_math.o \ - func_groupcount.o \ - func_strings.o \ - func_cdr.o \ - func_logic.o \ - func_env.o \ - func_db.o \ - func_timeout.o \ - func_language.o \ - func_moh.o \ - func_base64.o \ - func_sha1.o - -AVAILABLE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c))) +AVAILABLE_FUNCS=$(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)) @@ -35,11 +19,7 @@ else STANDALONE_FUNCS=$(AVAILABLE_FUNCS) endif -FUNCS+=$(STANDALONE_FUNCS:.o=.so) - -FUNC_SOURCES=$(BUILTINS:.o=.c) - -FUNC_STRUCTS=$(shell grep 'struct ast_custom_function' $(FUNC_SOURCES) | awk '{print $$3};' | sort) +FUNCS=$(STANDALONE_FUNCS:.o=.so) ifeq (${OSARCH},CYGWIN) CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols @@ -56,20 +36,6 @@ clean: %.so : %.o $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -#$(BUILTINS) : CFLAGS += -DBUILTIN_FUNC - -pbx_functions.h: $(FUNC_SOURCES) - @echo "/* Automatically generated - do not edit */" > $@ - @for f in $(FUNC_SOURCES); do echo "#include \"$$f\"" >> $@; done - @echo "static struct ast_custom_function *builtins[] = {" >> $@ - @for f in $(FUNC_STRUCTS); do echo "&$$f," >> $@; done - @echo "};" >> $@ - -pbx_functions.o: pbx_functions.h - -pbx_functions.so: pbx_functions.o #$(BUILTINS) - $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} - func_odbc.so: func_odbc.o $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lodbc |