summaryrefslogtreecommitdiffstats
path: root/share/mk/configure/build-depends/cpp.mk
blob: b7208986729789d50f0eb8d171f955a93bbf7028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2022-2024, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception


ifndef MAKEFILE_CONFIGURE_BUILD_DEPENDS_CPP_INCLUDED
MAKEFILE_CONFIGURE_BUILD_DEPENDS_CPP_INCLUDED := 1


include $(MAKEFILEDIR)/configure/build-depends/cc.mk
include $(MAKEFILEDIR)/configure/build-depends/pkgconf.mk
include $(MAKEFILEDIR)/configure/verbose.mk


DEFAULT_CPPFLAGS := $(shell $(PKGCONF_CMD) --cflags $(PKGCONF_LIBS) $(HIDE_ERR))
EXTRA_CPPFLAGS   :=
CPPFLAGS         := $(DEFAULT_CPPFLAGS) $(EXTRA_CPPFLAGS)
CPP              := $(CC) $(CFLAGS) -E


endif  # include guard