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 3... Line 3...
3
COMPONENT_VERSION := 0.0.1
3
COMPONENT_VERSION := 0.0.1
4
# Default to a static library
4
# Default to a static library
5
COMPONENT_TYPE ?= lib-static
5
COMPONENT_TYPE ?= lib-static
Line 6... Line 6...
6
 
6
 
7
# Setup the tooling
7
# Setup the tooling
-
 
8
#PREFIX ?= /opt/netsurf
8
PREFIX ?= /opt/netsurf
9
PREFIX ?= /usr
9
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
10
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
Line 10... Line 11...
10
include $(NSSHARED)/makefiles/Makefile.tools
11
include $(NSSHARED)/makefiles/Makefile.tools
Line 21... Line 22...
21
endif
22
endif
22
# AmigaOS needs this to avoid warnings
23
# AmigaOS needs this to avoid warnings
23
ifeq ($(TARGET),amiga)
24
ifeq ($(TARGET),amiga)
24
  CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
25
  CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
25
endif
26
endif
-
 
27
 
-
 
28
 
-
 
29
 
26
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
30
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ -I$(CURDIR)/../libwapcaplet/include/ \
27
	-I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)
31
	-I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)
28
# Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway
32
# Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway
29
ifneq ($(GCCVER),2)
33
ifneq ($(GCCVER),2)
30
  CFLAGS := -std=c99 $(CFLAGS)
34
  CFLAGS := -std=c99 $(CFLAGS)
31
endif
35
endif