Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
# Component settings
2
COMPONENT := nsgif
3
COMPONENT_VERSION := 0.0.3
4
# Default to a static library
5
COMPONENT_TYPE ?= lib-static
6
 
7
# Setup the tooling
8
PREFIX ?= /opt/netsurf
9
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
10
include $(NSSHARED)/makefiles/Makefile.tools
11
 
12
# Toolchain flags
13
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
14
	-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
15
	-Wmissing-declarations -Wnested-externs -pedantic
16
# BeOS/Haiku standard library headers create warnings
17
ifneq ($(TARGET),beos)
18
  WARNFLAGS := $(WARNFLAGS) -Werror
19
endif
20
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
21
	-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
22
ifneq ($(GCCVER),2)
23
  CFLAGS := $(CFLAGS) -std=c99
24
else
25
  # __inline__ is a GCCism
26
  CFLAGS := $(CFLAGS) -Dinline="__inline__"
27
endif
28
 
29
include $(NSBUILD)/Makefile.top
30
 
31
# Extra installation rules
32
I := /include
33
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsgif.h
34
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
35
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)