aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/Makefile
blob: 381a3d72cd4aea7e08f5161a2421ec8762dfb1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Asterisk -- A telephony toolkit for Linux.
# 
# Makefile for dialplan functions
#
# Copyright (C) 2005-2006, Digium, Inc.
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

ifneq ($(wildcard ../menuselect.makeopts),)
  include ../menuselect.makeopts
endif

SELECTED_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%,$(wildcard func_*.c)))

# TODO This check needs to be handled with autoconf
ifeq ($(OSARCH),SunOS)
  ifeq ($(shell if [ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]; then echo "OK" ; fi),)
    MODS:=$(filter-out func_curl,$(MODS))
  endif
else
  ifeq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
    MODS:=$(filter-out func_curl,$(MODS)) 
  endif
endif

all: _all

include ../Makefile.rules