source: trunk/make/isc-dhcp/isc-dhcp.mk @ 14411

Letzte Änderung dieser Datei seit 14411 war 14411, erstellt von er13 vor 3 Monaten

package Makefiles:

  • use PKG_ADD_EXTRA_FLAGS macro introduced in r14374 as much as possible
Dateigröße: 1.3 KB
Zeile 
1$(call PKG_INIT_BIN, 4.3.3-P1)
2$(PKG)_SOURCE:=dhcp-$($(PKG)_VERSION).tar.gz
3$(PKG)_SOURCE_SHA256:=c11e896dffa1bfbc49462965d3f6dec45534e34068603546d9a236f2aa669921
4$(PKG)_SITE:=http://ftp.isc.org/isc/dhcp/$($(PKG)_VERSION)
5$(PKG)_DIR:=$($(PKG)_SOURCE_DIR)/dhcp-$($(PKG)_VERSION)
6
7$(PKG)_BINARY:=$($(PKG)_DIR)/server/dhcpd
8$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/isc-dhcpd
9
10$(PKG)_DEPENDS_ON += bind
11
12$(PKG)_CONFIGURE_PRE_CMDS += $(AUTORECONF)
13$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_PREVENT_RPATH_HARDCODING,./configure)
14$(PKG)_CONFIGURE_PRE_CMDS += $(call PKG_ADD_EXTRA_FLAGS,(C|LD)FLAGS)
15
16$(PKG)_MAKE_OPTIONS := -C $($(PKG)_DIR)
17# reduce binary size by setting appropriate CFLAGS/LDFLAGS
18$(PKG)_MAKE_OPTIONS += EXTRA_CFLAGS="-ffunction-sections -fdata-sections"
19$(PKG)_MAKE_OPTIONS += EXTRA_LDFLAGS="-Wl,--gc-sections"
20
21$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_random=yes
22$(PKG)_CONFIGURE_OPTIONS += --with-libbind="$(BIND_EXPORT_LIB_DIR)/usr"
23
24$(PKG_SOURCE_DOWNLOAD)
25$(PKG_UNPACKED)
26$(PKG_CONFIGURED_CONFIGURE)
27
28$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
29    $(SUBMAKE) $(ISC_DHCP_MAKE_OPTIONS)
30
31$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
32    $(INSTALL_BINARY_STRIP)
33
34$(pkg):
35
36$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
37
38$(pkg)-clean:
39    -$(SUBMAKE) $(ISC_DHCP_MAKE_OPTIONS) clean
40
41$(pkg)-uninstall:
42    $(RM) $(ISC_DHCP_TARGET_BINARY)
43
44$(PKG_FINISH)
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.