diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-12-22 03:49:41 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-12-22 03:49:41 +0000 |
commit | 2f66f7cfe9170ec64c0ce4f4a1b0c02d75621682 (patch) | |
tree | 5a2740b164d02c91761b852a2204a3c435adc0d9 /funcs/Makefile | |
parent | 1d498c35cd5b1161008291466bdc483c2a7c25ed (diff) |
don't try to build func_odbc when ODBC headers/libraries are not present
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/Makefile')
-rw-r--r-- | funcs/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/funcs/Makefile b/funcs/Makefile index cb948a3bd..aa11c2059 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -25,7 +25,13 @@ BUILTINS=func_md5.o \ func_language.o \ func_moh.o -STANDALONE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c))) +AVAILABLE_FUNCS=$(filter-out $(BUILTINS),$(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) +endif FUNCS+=$(STANDALONE_FUNCS:.o=.so) |