summaryrefslogtreecommitdiff
path: root/Makefile
blob: d0ea5d591e29dc7dc248a31c7cf1463df7d0bb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Makefile for building AlphaGen
#


# Component settings
COMPONENT := alphagen
COMPONENT_TYPE := binary
COMPONENT_VERSION := 1.0.0

# Setup the tooling
PREFIX ?= /opt/netsurf
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
include $(NSSHARED)/makefiles/Makefile.tools

# Toolchain flags
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
	-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
	-Wmissing-declarations -Wnested-externs -pedantic

# libpng and libz
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
  CFLAGS := $(CFLAGS) -I$(PREFIX)/include
  LDFLAGS := $(LDFLAGS) -lpng -lz
endif

# Grab the core makefile
include $(NSBUILD)/Makefile.top

# Extra installation rules