Makefile (12024aacb0170779cd0b976b06d2e9b1767cf142) Makefile (3866058ef15b6ae6f4ff48e088428b46bcc43fa1)
1include ../../scripts/Makefile.include
2include ../../scripts/utilities.mak # QUIET_CLEAN
3
4ifeq ($(srctree),)
5srctree := $(patsubst %/,%,$(dir $(CURDIR)))
6srctree := $(patsubst %/,%,$(dir $(srctree)))
7srctree := $(patsubst %/,%,$(dir $(srctree)))
8#$(info Determined 'srctree' to be $(srctree))

--- 5 unchanged lines hidden (view full) ---

14
15MAKEFLAGS += --no-print-directory
16
17LIBFILE = $(OUTPUT)libapi.a
18
19CFLAGS := $(EXTRA_WARNINGS) $(EXTRA_CFLAGS)
20CFLAGS += -ggdb3 -Wall -Wextra -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC
21
1include ../../scripts/Makefile.include
2include ../../scripts/utilities.mak # QUIET_CLEAN
3
4ifeq ($(srctree),)
5srctree := $(patsubst %/,%,$(dir $(CURDIR)))
6srctree := $(patsubst %/,%,$(dir $(srctree)))
7srctree := $(patsubst %/,%,$(dir $(srctree)))
8#$(info Determined 'srctree' to be $(srctree))

--- 5 unchanged lines hidden (view full) ---

14
15MAKEFLAGS += --no-print-directory
16
17LIBFILE = $(OUTPUT)libapi.a
18
19CFLAGS := $(EXTRA_WARNINGS) $(EXTRA_CFLAGS)
20CFLAGS += -ggdb3 -Wall -Wextra -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC
21
22ifeq ($(CC), clang)
22ifeq ($(CC_NO_CLANG), 0)
23 CFLAGS += -O3
24else
25 CFLAGS += -O6
26endif
27
28# Treat warnings as errors unless directed not to
29ifneq ($(WERROR),0)
30 CFLAGS += -Werror

--- 30 unchanged lines hidden ---
23 CFLAGS += -O3
24else
25 CFLAGS += -O6
26endif
27
28# Treat warnings as errors unless directed not to
29ifneq ($(WERROR),0)
30 CFLAGS += -Werror

--- 30 unchanged lines hidden ---