diff options
Diffstat (limited to 'Makefile.include')
-rw-r--r-- | Makefile.include | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.include b/Makefile.include index a3abcad8..2316b30c 100644 --- a/Makefile.include +++ b/Makefile.include @@ -40,6 +40,10 @@ define c_compile_test # $1: files to compile, $2: cflags $(call debug_shell, $(CC) -c -Wall -Werror $2 $1 -o /dev/null && echo yes || echo no) endef +define c_link_test # $1: file to compile and link, $2: cflags, $3: ldflags +$(call debug_shell, $(CC) -Wall -Werror $2 $1 $3 -o /dev/null && echo yes || echo no) +endef + define find_dependency $(call debug_shell, $(if $(PKG_CONFIG_LIBDIR),PKG_CONFIG_LIBDIR=$(PKG_CONFIG_LIBDIR),) $(PKG_CONFIG) --exists $1 && echo yes || echo no) endef |