genode/repos/libports/lib/mk/jbig2dec.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

20 lines
590 B
Makefile

JBIG2DEC_DIR = $(call select_from_ports,jbig2dec)/src/lib/jbig2dec
LIBS += libc libpng zlib
INC_DIR += $(JBIG2DEC_DIR) $(REP_DIR)/include/jbig2dec
# incorporate all '*.c' files except those that are not part of the library
FILTER_OUT = jbig2dec.c snprintf.c
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(JBIG2DEC_DIR)/*.c)))
# definitions normally provided by a config.h file
CC_OPT += -DHAVE_STRING_H -DHAVE_STDINT_H
# disable warning noise for contrib code
CC_WARN = -Wno-deprecated-declarations
SHARED_LIB = yes
vpath %.c $(JBIG2DEC_DIR)
CC_CXX_WARN_STRICT =