summaryrefslogtreecommitdiff
path: root/Makefile
blob: eb4df92831897e9a51b7d9cf815faa154c5fb797 (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
31
32
33
34
#
# 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 -Wredundant-decls \
	-Wuninitialized -pedantic

# Optimisation flags
CFLAGS += -O2

# 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