diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-06-11 07:27:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-06-11 07:27:45 +0000 |
commit | 7137dda19e4b440ff0cd41b551c229495cdfad3e (patch) | |
tree | f6d08df576a3dd379fd1836db9c66d1b88d0061a /make | |
parent | 5d5cef059af1b20f8c153718d863dc022bc8fbad (diff) | |
download | buildroot-novena-7137dda19e4b440ff0cd41b551c229495cdfad3e.tar.gz buildroot-novena-7137dda19e4b440ff0cd41b551c229495cdfad3e.zip |
Add in ttcp support
Diffstat (limited to 'make')
-rw-r--r-- | make/ttcp.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/make/ttcp.mk b/make/ttcp.mk new file mode 100644 index 000000000..519f7bc4b --- /dev/null +++ b/make/ttcp.mk @@ -0,0 +1,35 @@ +############################################################# +# +# ttcp +# +############################################################# +# +TTCP_SOURCE_URL=http://ftp.sunet.se/ftp/pub/network/monitoring/ttcp +TTCP_SOURCE=ttcp.c +TTCP_BUILD_DIR=$(BUILD_DIR)/ttcp + +$(DL_DIR)/$(TTCP_SOURCE): + $(WGET) -P $(DL_DIR) $(TTCP_SOURCE_URL)/$(TTCP_SOURCE) + +$(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE) + -mkdir $(TTCP_BUILD_DIR) + cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR) + touch $(TTCP_BUILD_DIR)/.unpacked + +$(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked + touch $(TTCP_BUILD_DIR)/.configured + +$(TTCP_BUILD_DIR)/ttcp: $(TTCP_BUILD_DIR)/.configured + $(TARGET_CC) -O2 -o $(TTCP_BUILD_DIR)/ttcp $(TTCP_BUILD_DIR)/$(TTCP_SOURCE) + +$(TARGET_DIR)/usr/bin/ttcp: $(TTCP_BUILD_DIR)/ttcp + cp -af $(TTCP_BUILD_DIR)/ttcp $(TARGET_DIR)/usr/bin/ + +ttcp: $(TARGET_DIR)/usr/bin/ttcp + +ttcp-clean: + rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp + +ttcp-dirclean: + rm -rf $(TTCP_BUILD_DIR) + |