summaryrefslogtreecommitdiffstats
path: root/rules/host-system-mpc.make
blob: 1f6337a3d048585de3808a0a9f7d40dfb80282bf (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
# -*-makefile-*-
#
# Copyright (C) 2020 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_SYSTEM_MPC) += host-system-mpc
HOST_SYSTEM_MPC_LICENSE	:= ignore

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

$(STATEDIR)/host-system-mpc.prepare:
	@$(call targetinfo)
	@echo "Checking for mpc ..."
	@echo "#include <mpc.h>" | $(HOSTCC) -x c -c -o /dev/null - 2>/dev/null || \
		ptxd_bailout "mpc development files not found!" \
		"Please install libmpc-dev (debian) or libmpc-devel (fedora)"
	@$(call touch)

# vim: syntax=make