aboutsummaryrefslogtreecommitdiffstats
path: root/res/Makefile
blob: 22f266abbb00d9fe9da88ca455f5aef238226d01 (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 resource modules
#
# Copyright (C) 1999-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
  include ../menuselect.makedeps
endif

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

ifeq ($(OSARCH),FreeBSD)
  SELECTED_MODS:=$(filter-out $(shell if test ${BSDVERSION} -lt 500000 ; then echo "res_config_odbc"; fi),$(SELECTED_MODS))
endif

all: _all

include $(ASTTOPDIR)/Makefile.moddir_rules

res_snmp.so: res_snmp.o snmp/agent.o

clean::
	rm -f snmp/*.o