Use urandom for dropbear keying
[gumsense-br.git] / package / ttcp / ttcp.mk
blob5aec5c1f79a7f5cad03445eb27bc8a1a3a5d1691
1 #############################################################
3 # ttcp
5 #############################################################
7 TTCP_SOURCE_URL=http://ftp.sunet.se/pub/network/monitoring/ttcp
8 TTCP_SOURCE=ttcp.c
9 TTCP_BUILD_DIR=$(BUILD_DIR)/ttcp
11 $(DL_DIR)/$(TTCP_SOURCE):
12 $(WGET) -P $(DL_DIR) $(TTCP_SOURCE_URL)/$(TTCP_SOURCE)
14 $(TTCP_BUILD_DIR)/ttcp.c: $(DL_DIR)/$(TTCP_SOURCE)
15 -mkdir -p $(TTCP_BUILD_DIR)
16 cp -Rf $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR)
18 $(TTCP_BUILD_DIR)/ttcp: $(TTCP_BUILD_DIR)/ttcp.c
19 $(TARGET_CC) $(TARGET_CFLAGS) -o $(TTCP_BUILD_DIR)/ttcp $(TTCP_BUILD_DIR)/$(TTCP_SOURCE)
21 $(TARGET_DIR)/usr/bin/ttcp: $(TTCP_BUILD_DIR)/ttcp
22 cp -Rf $(TTCP_BUILD_DIR)/ttcp $(TARGET_DIR)/usr/bin/
23 $(STRIP) $<
25 ttcp: $(TARGET_DIR)/usr/bin/ttcp
27 ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
29 ttcp-clean:
30 rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp
32 ttcp-dirclean:
33 rm -rf $(TTCP_BUILD_DIR)
35 #############################################################
37 # Toplevel Makefile options
39 #############################################################
40 ifeq ($(strip $(BR2_PACKAGE_TTCP)),y)
41 TARGETS+=ttcp
42 endif