]> gitweb.michael.orlitzky.com - libsvgtiny.git/blob - Makefile
40dc091437f50b03d15a0d5e95df99f75ce853e0
[libsvgtiny.git] / Makefile
1 # Component settings
2 COMPONENT := svgtiny
3 COMPONENT_VERSION := 0.0.1
4 # Default to a static library
5 COMPONENT_TYPE ?= lib-static
6
7 # Setup the tooling
8 include build/makefiles/Makefile.tools
9
10 # Toolchain flags
11 WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
12 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
13 -Wmissing-declarations -Wnested-externs -Werror -pedantic
14 ifneq ($(GCCVER),2)
15 WARNFLAGS := $(WARNFLAGS) -Wextra
16 endif
17 CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
18 -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
19 ifneq ($(GCCVER),2)
20 CFLAGS := $(CFLAGS) -std=c99
21 else
22 # __inline__ is a GCCism
23 CFLAGS := $(CFLAGS) -Dinline="__inline__"
24 endif
25
26 include build/makefiles/Makefile.top
27
28 # Extra installation rules
29 I := /include
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)