diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-25 16:09:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-25 16:09:21 +0000 |
commit | d6b60f5e63339d7925889209c3309864515c8021 (patch) | |
tree | 0c4d59b8ed296c4747699e08e940cd6131ade439 | |
parent | 2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | network-demos-d6b60f5e63339d7925889209c3309864515c8021.tar.bz2 |
2007-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile: Build native ttcp as side-effect of main build.
* rtems_ttcp.c: Fix warning.
-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> |