netutils/codec : separates build source codes in Makefile
This commit is to separate build source codes in Makefile
- base64.c, md5.c and urldecode.c codes are compiled,
when CONFIG_NETUTILS_CODEC is enabled
- separates them accordingly its specific configuration
include $(APPDIR)/Make.defs
ASRCS =
-CSRCS = urldecode.c base64.c md5.c
+CSRCS =
+
+ifeq ($(CONFIG_CODECS_BASE64),y)
+CSRCS += base64.c
+endif
+ifeq ($(CONFIG_CODECS_HASH_MD5),y)
+CSRCS += md5.c
+endif
+ifeq ($(CONFIG_CODECS_URLCODE),y)
+CSRCS += urldecode.c
+endif
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
