diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
commit | 73f7be82904f487d167493e76b415fbe5b5f8c5a (patch) | |
tree | 8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/ttcp/ttcp.mk | |
parent | 0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff) | |
download | buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz buildroot-novena-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip |
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/ttcp/ttcp.mk')
-rw-r--r-- | package/ttcp/ttcp.mk | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/ttcp/ttcp.mk b/package/ttcp/ttcp.mk new file mode 100644 index 000000000..7ff5f6315 --- /dev/null +++ b/package/ttcp/ttcp.mk @@ -0,0 +1,37 @@ +############################################################# +# +# 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-source: $(DL_DIR)/$(TTCP_SOURCE) + +ttcp-clean: + rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp + +ttcp-dirclean: + rm -rf $(TTCP_BUILD_DIR) + |