aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
blob: 2a6629bab5ff50b421092f1a765c977cf03c1f8f (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
# Copyright (c) 2013, Linaro Limited
# All rights reserved.
#
# SPDX-License-Identifier:	BSD-3-Clause

PLATFORM ?= linux-generic
CFLAGS  += -DODP_DEBUG=1
CFLAGS  += -O3

OBJ_DIR  = ./obj
ODP_LIB  = $(ODP_ROOT)/platform/$(PLATFORM)
LIB      = -L$(ODP_LIB)/lib -lodp

CFLAGS += -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wmissing-declarations -Wold-style-definition -Wpointer-arith
CFLAGS += -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral
CFLAGS += -Wformat-security -Wundef -Wwrite-strings
CFLAGS += -I$(ODP_ROOT)/include

CC       ?= @gcc
LD       ?= gcc
AR       ?= ar

CFLAGS  += -pthread
LDFLAGS += -pthread