Makefile (87a0b2fafc09766d8c55461a18345a1cfb10a7fe) Makefile (5c8166419acf468b5bc3e48f928a040485d3e0c2)
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)))

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

35$(COUNTER_EXAMPLE): prepare FORCE
36 $(Q)$(MAKE) $(build)=counter_example
37$(OUTPUT)counter_example: $(COUNTER_EXAMPLE)
38 $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
39
40clean:
41 rm -f $(ALL_PROGRAMS)
42 rm -rf $(OUTPUT)include/linux/counter.h
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)))

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

35$(COUNTER_EXAMPLE): prepare FORCE
36 $(Q)$(MAKE) $(build)=counter_example
37$(OUTPUT)counter_example: $(COUNTER_EXAMPLE)
38 $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
39
40clean:
41 rm -f $(ALL_PROGRAMS)
42 rm -rf $(OUTPUT)include/linux/counter.h
43 find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
43 find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
44
45install: $(ALL_PROGRAMS)
46 install -d -m 755 $(DESTDIR)$(bindir); \
47 for program in $(ALL_PROGRAMS); do \
48 install $$program $(DESTDIR)$(bindir); \
49 done
50
51FORCE:
52
53.PHONY: all install clean FORCE prepare
44
45install: $(ALL_PROGRAMS)
46 install -d -m 755 $(DESTDIR)$(bindir); \
47 for program in $(ALL_PROGRAMS); do \
48 install $$program $(DESTDIR)$(bindir); \
49 done
50
51FORCE:
52
53.PHONY: all install clean FORCE prepare