mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-25 14:33:29 +08:00
0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
26 lines
604 B
Makefile
26 lines
604 B
Makefile
#############################################################
|
|
#
|
|
# nuttcp
|
|
#
|
|
#############################################################
|
|
|
|
NUTTCP_VERSION = 6.1.2
|
|
NUTTCP_SITE = http://www.lcp.nrl.navy.mil/nuttcp/
|
|
NUTTCP_SOURCE = nuttcp-$(NUTTCP_VERSION).tar.bz2
|
|
|
|
define NUTTCP_BUILD_CMDS
|
|
$(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
|
|
-C $(@D) all
|
|
endef
|
|
|
|
define NUTTCP_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 $(@D)/nuttcp-$(NUTTCP_VERSION) \
|
|
$(TARGET_DIR)/usr/bin/nuttcp
|
|
endef
|
|
|
|
define NUTTCP_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/bin/nuttcp
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|