config: warn about missing libprotobuf-c
authorRobert Swiecki <robert@swiecki.net>
Sat, 27 May 2017 00:31:11 +0000 (02:31 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sat, 27 May 2017 00:31:11 +0000 (02:31 +0200)
Makefile

index 71405d46b8e57b7aa54abfd03cf7e106fd826e59..2485209fb16ba30d963c531f377e2e2dd319c62d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,12 +59,19 @@ ifeq ($(PROTOBUF_EXISTS), yes)
 endif
 endif
 
+
 .PHONY: all clear depend indent kafel protobuf-c-text
 
 .c.o: %.c
        $(CC) $(CFLAGS) $< -o $@
 
 all: $(PROTO_DEPS) protobuf-c-text kafel $(BIN)
+ifneq ($(PROTOBUF_EXISTS), yes)
+       $(info *********************************************************)
+       $(info * Code compiled without libprotobuf-c/libprotobuf-c-dev *)
+       $(info *  The --config commandline option will be unavailable  *)
+       $(info *********************************************************)
+endif
 
 $(BIN): $(OBJS) $(LIBS)
        $(CC) -o $(BIN) $(OBJS) $(LIBS) $(LDFLAGS)