diff options
-rw-r--r-- | ttcp/ChangeLog | 5 | ||||
-rw-r--r-- | ttcp/Makefile | 7 | ||||
-rw-r--r-- | ttcp/rtems_ttcp.c | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/ttcp/ChangeLog b/ttcp/ChangeLog index 9ee3a40..6ee6742 100644 --- a/ttcp/ChangeLog +++ b/ttcp/ChangeLog @@ -1,3 +1,8 @@ +2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com> + + * Makefile: Build native ttcp as side-effect of main build. + * rtems_ttcp.c: Fix warning. + 2007-08-16 Joel Sherrill <joel.sherrill@oarcorp.com> * init.c: Change clock tick to 1 millisecond. diff --git a/ttcp/Makefile b/ttcp/Makefile index a8a063d..f035f7c 100644 --- a/ttcp/Makefile +++ b/ttcp/Makefile @@ -49,14 +49,17 @@ LD_LIBS += # 'make clobber' already includes 'make clean' # -CLEAN_ADDITIONS += +CLEAN_ADDITIONS += ttcp CLOBBER_ADDITIONS += -all: ${ARCH} $(SRCS) $(PGM) +all: ${ARCH} $(SRCS) $(PGM) ttcp ${PGM}: $(OBJS) $(LINK_FILES) $(make-exe) +ttcp: ttcp_orig/ttcp.c + gcc -o $(@) $< + # Install the program(s), appending _g or _p as appropriate. # for include files, just use $(INSTALL) install: all diff --git a/ttcp/rtems_ttcp.c b/ttcp/rtems_ttcp.c index a828c66..a628b1f 100644 --- a/ttcp/rtems_ttcp.c +++ b/ttcp/rtems_ttcp.c @@ -26,6 +26,7 @@ #include <rtems.h> #include <rtems/rtems_bsdnet.h> #include <rtems/error.h> +#include <rtems/cpuuse.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> |