Blame view

buildroot/buildroot-2016.08.1/package/dhcpdump/dhcpdump.mk 767 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  ################################################################################
  #
  # dhcpdump
  #
  ################################################################################
  
  DHCPDUMP_VERSION = 1.8
  DHCPDUMP_SITE = http://www.mavetju.org/download
  DHCPDUMP_DEPENDENCIES = libpcap
  DHCPDUMP_LICENSE = BSD-2c
  DHCPDUMP_LICENSE_FILES = LICENSE
  
  DHCPDUMP_LIBS = -lpcap
  ifeq ($(BR2_STATIC_LIBS),y)
  DHCPDUMP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`
  endif
  
  define DHCPDUMP_BUILD_CMDS
  	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS) \
  		-D_GNU_SOURCE" LIBS="$(DHCPDUMP_LIBS)"
  endef
  
  define DHCPDUMP_INSTALL_TARGET_CMDS
  	$(INSTALL) -m 0755 -D $(@D)/dhcpdump $(TARGET_DIR)/usr/bin/dhcpdump
  endef
  
  $(eval $(generic-package))