mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
more Makefile cleanup and consistency stuff
don't reuse LIBS variable from top-level Makefile (oops) build Asterisk binary after subdirs (preparing for embedded modules) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
10
res/Makefile
10
res/Makefile
@@ -14,18 +14,16 @@ ifneq ($(wildcard ../menuselect.makeopts),)
|
||||
include ../menuselect.makedeps
|
||||
endif
|
||||
|
||||
SELECTED_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
|
||||
C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
|
||||
CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc)))
|
||||
|
||||
ifeq ($(OSARCH),FreeBSD)
|
||||
SELECTED_MODS:=$(filter-out $(shell if test ${BSDVERSION} -lt 500000 ; then echo "res_config_odbc"; fi),$(SELECTED_MODS))
|
||||
endif
|
||||
SELECTED_MODS:=$(C_MODS) $(CC_MODS)
|
||||
|
||||
all: _all
|
||||
|
||||
include $(ASTTOPDIR)/Makefile.moddir_rules
|
||||
|
||||
res_snmp.so: res_snmp.o snmp/agent.o
|
||||
res_snmp.so: snmp/agent.o
|
||||
|
||||
clean::
|
||||
rm -f snmp/*.o
|
||||
|
||||
|
Reference in New Issue
Block a user