92d0d5398e01ff0de54516156a5207e37f14f48f
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / xinetd / xinetd.mk
1 ################################################################################
2 #
3 # xinetd
4 #
5 ################################################################################
6
7 XINETD_VERSION = xinetd-2-3-15
8 XINETD_SITE = $(call github,xinetd-org,xinetd,$(XINETD_VERSION))
9 XINETD_LICENSE = xinetd license
10 XINETD_LICENSE_FILES = COPYRIGHT
11
12 XINETD_CFLAGS = $(TARGET_CFLAGS)
13
14 # Three cases here:
15 #  1. We have libtirpc, use it by passing special flags
16 #  2. We have native RPC support, use it, no need to pass special
17 #     flags (so this case 2 is implicit and not visible below)
18 #  3. We don't have RPC support, pass -DNO_RPC to disable it
19 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
20 XINETD_DEPENDENCIES += libtirpc
21 XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
22 XINETD_LIBS += -ltirpc
23 else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
24 XINETD_CFLAGS += -DNO_RPC
25 endif
26
27 XINETD_CONF_ENV += \
28         CFLAGS="$(XINETD_CFLAGS)" \
29         LIBS="$(XINETD_LIBS)"
30
31 XINETD_MAKE_OPTS = AR="$(TARGET_AR)"
32
33 $(eval $(autotools-package))