Subversion Repositories Kolibri OS

Rev

Rev 4364 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
# Component settings
2
COMPONENT := parserutils
3
COMPONENT_VERSION := 0.1.1
4
# Default to a static library
5
COMPONENT_TYPE ?= lib-static
6
 
7
# Setup the tooling
4821 ashmew2 8
#PREFIX ?= /opt/netsurf
9
PREFIX ?= /usr/
10
 
3584 sourcerer 11
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
12
include $(NSSHARED)/makefiles/Makefile.tools
13
 
14
TESTRUNNER := $(PERL) $(NSTESTTOOLS)/testrunner.pl
15
 
16
# Toolchain flags
17
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
18
	-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
19
	-Wmissing-declarations -Wnested-externs -pedantic
20
# BeOS/Haiku standard library headers create warnings.
21
ifneq ($(TARGET),beos)
22
  WARNFLAGS := $(WARNFLAGS) -Werror
23
endif
24
 
25
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
26
	-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
27
ifneq ($(GCCVER),2)
28
  CFLAGS := $(CFLAGS) -std=c99
29
else
30
  # __inline__ is a GCCism
31
  CFLAGS := $(CFLAGS) -Dinline="__inline__"
32
endif
33
 
34
include $(NSBUILD)/Makefile.top
35
 
36
# Extra installation rules
37
Is := include/parserutils
38
I := /include/parserutils
39
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/errors.h;$(Is)/functypes.h;$(Is)/parserutils.h;$(Is)/types.h
40
 
41
Is := include/parserutils/charset
42
I := /include/parserutils/charset
43
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/codec.h;$(Is)/mibenum.h;$(Is)/utf16.h;$(Is)/utf8.h
44
 
45
Is := include/parserutils/input
46
I := /include/parserutils/input
47
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/inputstream.h
48
 
49
Is := include/parserutils/utils
50
I := /include/parserutils/utils
51
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/buffer.h;$(Is)/stack.h;$(Is)/vector.h
52
 
53
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
54
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)
4821 ashmew2 55
 
56
OUTFILE := $(CURDIR)/finallib.a
57
 
58
include $(MENUETDEV)/makefiles/Makefile_for_lib