Makefile (0337966d121ebebf73a1c346123e8112796e684e) 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))

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

16
17MAKEFLAGS += --no-print-directory
18
19LIBFILE = $(OUTPUT)libsubcmd.a
20
21CFLAGS := $(EXTRA_WARNINGS) $(EXTRA_CFLAGS)
22CFLAGS += -ggdb3 -Wall -Wextra -std=gnu99 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC
23
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))

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

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

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

--- 30 unchanged lines hidden ---