Makefile (498495dba268b20e8eadd7fe93c140c68b6cc9d2) Makefile (7ed1c1901fe52e6c5828deb155920b44b0adabb1)
1# SPDX-License-Identifier: GPL-2.0
2include ../scripts/Makefile.include
3
4bindir ?= /usr/bin
5
6ifeq ($(srctree),)
7srctree := $(patsubst %/,%,$(dir $(CURDIR)))
8srctree := $(patsubst %/,%,$(dir $(srctree)))
9endif
10
11# Do not use make's built-in rules
12# (this improves performance and avoids hard-to-debug behaviour);
13MAKEFLAGS += -r
14
1# SPDX-License-Identifier: GPL-2.0
2include ../scripts/Makefile.include
3
4bindir ?= /usr/bin
5
6ifeq ($(srctree),)
7srctree := $(patsubst %/,%,$(dir $(CURDIR)))
8srctree := $(patsubst %/,%,$(dir $(srctree)))
9endif
10
11# Do not use make's built-in rules
12# (this improves performance and avoids hard-to-debug behaviour);
13MAKEFLAGS += -r
14
15CC = $(CROSS_COMPILE)gcc
16LD = $(CROSS_COMPILE)ld
17CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
18
19ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon
20ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
21
22all: $(ALL_PROGRAMS)
23
24export srctree OUTPUT CC LD CFLAGS

--- 52 unchanged lines hidden ---
15CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
16
17ALL_TARGETS := lsgpio gpio-hammer gpio-event-mon
18ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
19
20all: $(ALL_PROGRAMS)
21
22export srctree OUTPUT CC LD CFLAGS

--- 52 unchanged lines hidden ---