Add MISSING_DECLS switch

This commit is contained in:
twinaphex 2015-09-06 14:45:24 +02:00
parent 853b43691e
commit 6d6508b974

View File

@ -1,4 +1,5 @@
HAVE_FILE_LOGGER=1
MISSING_DECLS=0
include config.mk
@ -29,6 +30,10 @@ endif
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
ifeq ($(MISSING_DECLS), 1)
DEFINES += -Werror=missing-declarations
endif
ifeq ($(HAVE_DYLIB), 1)
LIBS += $(DYLIB_LIB)
endif