blob: 680b2f370c1666593a6449dc44e82965b409984b (
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
35
36
37
38
39
40
41
42
43
|
# Toolchain definitions for building on the destination platform
CC := gcc
AR := ar
LD := gcc
CP := cp
RM := rm
MKDIR := mkdir
MV := mv
ECHO := echo
MAKE := make
PERL := perl
PKGCONFIG := pkg-config
INSTALL := install
SED := sed
LCOV := lcov
GENHTML := genhtml
# Toolchain flags
WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Werror -pedantic
CFLAGS = -std=c99 -D_BSD_SOURCE -I$(TOP)/include/ $(WARNFLAGS)
RELEASECFLAGS = $(CFLAGS) -DNDEBUG -O2
DEBUGCFLAGS = $(CFLAGS) -O0 -g
ARFLAGS := -cru
LDFLAGS = -L$(TOP)/
CPFLAGS :=
RMFLAGS := -f
MKDIRFLAGS := -p
MVFLAGS :=
ECHOFLAGS :=
MAKEFLAGS :=
PKGCONFIGFLAGS :=
EXEEXT :=
# Default installation prefix
PREFIX ?= /usr/local
include build/Makefile.common
|