freebsd-userspace/Makefile: Resolve conflict so ifconfig and netstat are both here

This commit is contained in:
Joel Sherrill
2012-09-07 13:19:21 -05:00
parent ebbe3cc71f
commit e6fe77ef56
4 changed files with 34 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ include $(PROJECT_ROOT)/make/leaf.cfg
CFLAGS += -I include
CFLAGS += -I rtems/include
CFLAGS += -I lib/libc/include
CFLAGS += -I lib/netgraph
CFLAGS += -I sys
CFLAGS += -I local
# XXX hack to find rpc
@@ -78,6 +79,9 @@ C_FILES += lib/libc/resolv/res_send.c
C_FILES += lib/libc/resolv/res_update.c
C_FILES += lib/libc/string/strsep.c
C_FILES += lib/libc/isc/ev_streams.c
C_FILES += lib/libc/isc/ev_timers.c
# RTEMS Specific Files
# C_FILES += rtems/rtems-net-setup.c
C_FILES += rtems/syslog.c
@@ -136,6 +140,29 @@ C_FILES += commands/sbin/ifconfig/ifpfsync.c
# C_FILES += commands/sbin/ifconfig/regdomain.c
# C_FILES += commands/sbin/ifconfig/af_ipx.c
ifeq (1,0)
# netstat command sources
# no need to support AppleTalk yet
# C_FILES += commands/usr.bin/netstat/atalk.c
C_FILES += commands/usr.bin/netstat/bpf.c
C_FILES += commands/usr.bin/netstat/if.c
C_FILES += commands/usr.bin/netstat/inet6.c
C_FILES += commands/usr.bin/netstat/inet.c
C_FILES += commands/usr.bin/netstat/ipsec.c
# no need to support IPX yet
# C_FILES += commands/usr.bin/netstat/ipx.c
C_FILES += commands/usr.bin/netstat/main.c
C_FILES += commands/usr.bin/netstat/mbuf.c
C_FILES += commands/usr.bin/netstat/mroute6.c
C_FILES += commands/usr.bin/netstat/mroute.c
# Disable netgraph support - this is a long thread to pull
# C_FILES += commands/usr.bin/netstat/netgraph.c
C_FILES += commands/usr.bin/netstat/pfkey.c
C_FILES += commands/usr.bin/netstat/route.c
C_FILES += commands/usr.bin/netstat/sctp.c
C_FILES += commands/usr.bin/netstat/unix.c
endif
C_O_FILES = $(C_FILES:%.c=%.o)
C_D_FILES = $(C_FILES:%.c=%.d)

View File

@@ -41,7 +41,11 @@
* or more threads. It is used to avoid calling locking functions
* when they are not required.
*/
#ifdef __rtems__
#define __isthreaded 1
#else
extern int __isthreaded;
#endif
/*
* libc should use libc_dlopen internally, which respects a global

View File

@@ -53,6 +53,8 @@
#define _getprogname getprogname
#define _getsockname getsockname
#define _nsdispatch nsdispatch
#endif /* _NAMESPACE_H_ */