From d6b60f5e63339d7925889209c3309864515c8021 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 25 Sep 2007 16:09:21 +0000 Subject: 2007-09-25 Joel Sherrill * Makefile: Build native ttcp as side-effect of main build. * rtems_ttcp.c: Fix warning. --- ttcp/ChangeLog | 5 +++++ ttcp/Makefile | 7 +++++-- 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 + + * Makefile: Build native ttcp as side-effect of main build. + * rtems_ttcp.c: Fix warning. + 2007-08-16 Joel Sherrill * 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 #include #include +#include #include #include #include -- cgit v1.2.3