summaryrefslogtreecommitdiffstats
path: root/package/xinetd/xinetd.mk
blob: cb48145cf50781dbe9ccbc7c2a6da96202b6da81 (plain)
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
28
29
30
31
32
33
#############################################################
#
# xinetd
#
#############################################################
XINETD_VERSION       = 2.3.15
XINETD_SOURCE        = xinetd-$(XINETD_VERSION).tar.gz
XINETD_SITE          = http://www.xinetd.org
XINETD_LICENSE       = xinetd license
XINETD_LICENSE_FILES = COPYRIGHT

XINETD_CFLAGS = $(TARGET_CFLAGS)

# Three cases here:
#  1. We have libtirpc, use it by passing special flags
#  2. We have native RPC support, use it, no need to pass special
#     flags (so this case 2 is implicit and not visible below)
#  3. We don't have RPC support, pass -DNO_RPC to disable it
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
XINETD_DEPENDENCIES += libtirpc
XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
XINETD_LIBS += -ltirpc
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
XINETD_CFLAGS += -DNO_RPC
endif

XINETD_CONF_ENV += \
	CFLAGS="$(XINETD_CFLAGS)" \
	LIBS="$(XINETD_LIBS)"

XINETD_MAKE_OPT = AR="$(TARGET_AR)"

$(eval $(autotools-package))