genode/repos/libports/lib/mk/jbig2dec.mk
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

19 lines
576 B
Makefile

JBIG2DEC = jbig2dec-0.11
JBIG2DEC_DIR = $(REP_DIR)/contrib/$(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)