diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-02-03 16:51:18 +0400 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-02-05 16:53:00 +0400 |
commit | 396a5abb373a2fbbeb3f1e2557dd1b532cd8e228 (patch) | |
tree | f61ff6cee3d435043d62e032bf7bd97b3da5d771 /Makefile.inc | |
parent | 0fa91e9c77ab562a4691a91536decda80f01ad6a (diff) |
reorganize makefile
Reorganize source file folder, clean up Makefiles,
rename odp.a to libodp.a, install to /usr/local by default
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 000000000..2a6629bab --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,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 |