Subversion Repositories Kolibri OS

Rev

Rev 4364 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4364 Rev 4821
Line 1... Line 1...
1
# Component settings
1
# This is the makefile in kolibrios/contrib/network/netsurf/libnsgif/
2
COMPONENT := nsgif
-
 
3
COMPONENT_VERSION := 0.0.3
-
 
4
# Default to a static library
2
# Need to add recursive calling to all the subdirectories. For now, use the generated .a file for testing.
5
COMPONENT_TYPE ?= lib-static
-
 
Line 6... Line -...
6
 
-
 
7
# Setup the tooling
3
 
8
PREFIX ?= /opt/netsurf
-
 
9
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
-
 
Line 10... Line -...
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)
4
OUTFILE := $(CURDIR)/libnsgif.a
22
ifneq ($(GCCVER),2)
-
 
23
  CFLAGS := $(CFLAGS) -std=c99
-
 
24
else
-
 
25
  # __inline__ is a GCCism
-
 
Line 26... Line 5...
26
  CFLAGS := $(CFLAGS) -Dinline="__inline__"
5
 
27
endif
-
 
28
 
-
 
29
include $(NSBUILD)/Makefile.top
-
 
30
 
-
 
31
# Extra installation rules
-
 
32
I := /include
-