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>
22 lines
527 B
Makefile
22 lines
527 B
Makefile
#############################################################
|
|
#
|
|
# dhcpdump
|
|
#
|
|
#############################################################
|
|
|
|
DHCPDUMP_VERSION = 1.8
|
|
DHCPDUMP_SITE = http://www.mavetju.org/download/
|
|
DHCPDUMP_SOURCE = dhcpdump-$(DHCPDUMP_VERSION).tar.gz
|
|
|
|
DHCPDUMP_DEPENDENCIES = libpcap
|
|
|
|
define DHCPDUMP_BUILD_CMDS
|
|
$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)"
|
|
endef
|
|
|
|
define DHCPDUMP_INSTALL_TARGET_CMDS
|
|
install -m 0755 -D $(@D)/dhcpdump $(TARGET_DIR)/usr/bin/dhcpdump
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|