remove doubled line
[openwrt.git] / obsolete-buildroot / make / ttcp.mk
1 #############################################################
2 #
3 # ttcp
4 #
5 #############################################################
6 #
7 TTCP_SOURCE_URL=http://ftp.sunet.se/ftp/pub/network/monitoring/ttcp
8 TTCP_SOURCE=ttcp.c
9 TTCP_BUILD_DIR=$(BUILD_DIR)/ttcp
10
11 $(DL_DIR)/$(TTCP_SOURCE):
12 $(WGET) -P $(DL_DIR) $(TTCP_SOURCE_URL)/$(TTCP_SOURCE)
13
14 $(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
15 -mkdir $(TTCP_BUILD_DIR)
16 cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR)
17 touch $(TTCP_BUILD_DIR)/.unpacked
18
19 $(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked
20 touch $(TTCP_BUILD_DIR)/.configured
21
22 $(TTCP_BUILD_DIR)/ttcp: $(TTCP_BUILD_DIR)/.configured
23 $(TARGET_CC) -O2 -o $(TTCP_BUILD_DIR)/ttcp $(TTCP_BUILD_DIR)/$(TTCP_SOURCE)
24
25 $(TARGET_DIR)/usr/bin/ttcp: $(TTCP_BUILD_DIR)/ttcp
26 cp -af $(TTCP_BUILD_DIR)/ttcp $(TARGET_DIR)/usr/bin/
27
28 ttcp: $(TARGET_DIR)/usr/bin/ttcp
29
30 ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
31
32 ttcp-clean:
33 rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp
34
35 ttcp-dirclean:
36 rm -rf $(TTCP_BUILD_DIR)
37
This page took 0.041196 seconds and 5 git commands to generate.