diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2011-03-04 11:03:37 +0100 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2011-03-11 02:31:18 -0800 |
commit | 0a782d32cd9b607a3cdd57e93e6779be65f04108 (patch) | |
tree | a8e1d3263f7a14b3446db77385b477908a2172cc | |
parent | 192f7b224271c8e7026f8c91edf7cbe8c949a83f (diff) | |
download | sparse-0a782d32cd9b607a3cdd57e93e6779be65f04108.tar.gz |
Makefile: warn user when libxml and/or libgtk2 are not available
Since sparse's c2xml is not always packaged my modern distributions, it can be
built as a host package in build systems, finding out why c2xml was not
compiled turned out to be easier if a warning was emitted, add two for libxml
and libgtk2 presence/absence.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -45,6 +45,8 @@ ifeq ($(HAVE_LIBXML),yes) PROGRAMS+=c2xml INST_PROGRAMS+=c2xml c2xml_EXTRA_OBJS = `pkg-config --libs libxml-2.0` +else +$(warning Your system does not have libxml, disabling c2xml) endif ifeq ($(HAVE_GTK2),yes) @@ -55,6 +57,8 @@ INST_PROGRAMS += test-inspect test-inspect_EXTRA_DEPS := ast-model.o ast-view.o ast-inspect.o test-inspect.o $(test-inspect_EXTRA_DEPS): CFLAGS += $(GTK2_CFLAGS) test-inspect_EXTRA_OBJS := $(GTK2_LIBS) +else +$(warning Your system does not have libgtk2, disabling test-inspect) endif LIB_H= token.h parse.h lib.h symbol.h scope.h expression.h target.h \ |