1 #############################################################
5 #############################################################
7 TTCP_SOURCE_URL
=http
://ftp.sunet.se
/pub
/network
/monitoring
/ttcp
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
/
25 ttcp
: $(TARGET_DIR
)/usr
/bin
/ttcp
27 ttcp-source
: $(DL_DIR
)/$(TTCP_SOURCE
)
30 rm -f
$(TTCP_BUILD_DIR
)/*.o
$(TTCP_BUILD_DIR
)/ttcp
33 rm -rf
$(TTCP_BUILD_DIR
)
35 #############################################################
37 # Toplevel Makefile options
39 #############################################################
40 ifeq ($(strip $(BR2_PACKAGE_TTCP
)),y
)