diff options
Diffstat (limited to 'res/Makefile')
-rw-r--r-- | res/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/res/Makefile b/res/Makefile index 178130820..d7f347900 100644 --- a/res/Makefile +++ b/res/Makefile @@ -9,7 +9,7 @@ # the GNU General Public License # -ifneq ($(wildcard ../menuselect.makeopts),) +ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),) include ../menuselect.makeopts include ../menuselect.makedeps endif @@ -17,13 +17,18 @@ endif C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c))) CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc))) -SELECTED_MODS:=$(C_MODS) $(CC_MODS) +LOADABLE_MODS:=$(C_MODS) $(CC_MODS) + +ifneq ($(findstring res,$(MENUSELECT_EMBED)),) + EMBEDDED_MODS:=$(LOADABLE_MODS) + LOADABLE_MODS:= +endif all: _all include $(ASTTOPDIR)/Makefile.moddir_rules -res_snmp.so: snmp/agent.o +$(res_snmp): snmp/agent.o clean:: rm -f snmp/*.o |