3 COMPONENT_VERSION := 0.0.1
4 # Default to a static library
5 COMPONENT_TYPE ?= lib-static
8 include build/makefiles/Makefile.tools
11 WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
12 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
13 -Wmissing-declarations -Wnested-externs -Werror -pedantic
15 WARNFLAGS := $(WARNFLAGS) -Wextra
17 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
18 -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
20 CFLAGS := $(CFLAGS) -std=c99
22 # __inline__ is a GCCism
23 CFLAGS := $(CFLAGS) -Dinline="__inline__"
26 include build/makefiles/Makefile.top
28 # Extra installation rules
30 INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/svgtiny.h
31 INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
32 INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)