mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
use auto-build for apps, simplify variable setting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# Makefile for dialplan functions
|
||||
#
|
||||
# Copyright (C) 2005 - 2006, Digium
|
||||
# Copyright (C) 2005-2006, Digium, Inc.
|
||||
#
|
||||
# Kevin P. Fleming <kpfleming@digium.com>
|
||||
#
|
||||
@@ -13,15 +13,15 @@
|
||||
|
||||
MODS:=$(patsubst %.c,%.so,$(wildcard func_*.c))
|
||||
|
||||
ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
|
||||
ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
|
||||
MODS:=$(filter-out func_odbc.so,$(MODS))
|
||||
endif
|
||||
|
||||
ifeq (${OSARCH},CYGWIN)
|
||||
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
|
||||
CYGSOLIB=-L.. -L. -lasterisk.dll
|
||||
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
|
||||
CYGSOLIB=-L.. -L. -lasterisk.dll
|
||||
else
|
||||
CFLAGS+=-fPIC
|
||||
CFLAGS+=-fPIC
|
||||
endif
|
||||
|
||||
all: $(MODS)
|
||||
|
Reference in New Issue
Block a user