Skip to content

Commit

Permalink
kernel: samples/bpf Makefile cleanup and improve clean target
Browse files Browse the repository at this point in the history
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
  • Loading branch information
netoptimizer committed Feb 13, 2017
1 parent 889449a commit 99a7f43
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions kernel/samples/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Still depend on a kernel source tree.
#
TARGETS := xdp_ddos01_blacklist
TARGETS += xdp1
#TARGETS += xdp1

# Files under kernel/samples/bpf/ have a name-scheme:
# ---------------------------------------------------
Expand Down Expand Up @@ -71,12 +71,13 @@ all: dependencies $(TARGETS) $(KERN_OBJECTS)

.PHONY: dependencies clean verify_cmds verify_llvm_target_bpf $(CLANG) $(LLC)

test:
@echo TEST-TARGET
@echo kbuilddir=$(KERNEL)
@echo KERN_SOURCES $(KERN_SOURCES)

clean:
@find . -type f \
\( -name '*~' \
-o -name '*.ll' \
-o -name '*.bc' \
-o -name 'core' \) \
-exec rm -vf '{}' \;
rm -f $(OBJECTS)
rm -f $(TARGETS)
rm -f $(KERN_OBJECTS)
Expand Down

0 comments on commit 99a7f43

Please sign in to comment.