summaryrefslogtreecommitdiff
path: root/nuttx/netutils/uiplib/Make.defs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils/uiplib/Make.defs')
-rw-r--r--nuttx/netutils/uiplib/Make.defs17
1 files changed, 12 insertions, 5 deletions
diff --git a/nuttx/netutils/uiplib/Make.defs b/nuttx/netutils/uiplib/Make.defs
index 0feddc03d..1db3208b2 100644
--- a/nuttx/netutils/uiplib/Make.defs
+++ b/nuttx/netutils/uiplib/Make.defs
@@ -1,7 +1,7 @@
############################################################################
# Make.defs
#
-# Copyright (C) 2007, 2010 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2010-2011 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -34,10 +34,17 @@
############################################################################
UIPLIB_ASRCS =
-UIPLIB_CSRCS = uiplib.c uip_setmacaddr.c uip_getmacaddr.c uip_sethostaddr.c \
- uip_gethostaddr.c uip_setdraddr.c uip_setnetmask.c uip_parsehttpurl.c \
- uip_server.c
+UIPLIB_CSRCS = uiplib.c uip_sethostaddr.c uip_gethostaddr.c uip_setdraddr.c \
+ uip_setnetmask.c uip_parsehttpurl.c uip_server.c\
+
+# No MAC address support for SLIP (Ethernet only)
+
+ifneq ($(CONFIG_NET_SLIP),y)
+UIPLIB_CSRCS += uip_setmacaddr.c uip_getmacaddr.c
+endif
+
+# IGMP support
+
ifeq ($(CONFIG_NET_IGMP),y)
UIPLIB_CSRCS += uip_ipmsfilter.c
endif
-