aboutsummaryrefslogtreecommitdiffstats
path: root/utils/keytable/bpf_protocols/Makefile.am
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2018-10-06 11:31:37 +0200
committerGregor Jasny <gjasny@googlemail.com>2018-10-06 11:33:53 +0200
commitd11cca536b52960ebd7cce9c45dcc1538a6201b3 (patch)
tree27c5ecb60b8c1e3a6b8d9a8262689acc84d4d985 /utils/keytable/bpf_protocols/Makefile.am
parentb5ec216a33438afb6b35189379de24e13113fbb8 (diff)
buildsystem: Add all required files to dist target
Diffstat (limited to 'utils/keytable/bpf_protocols/Makefile.am')
-rw-r--r--utils/keytable/bpf_protocols/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/keytable/bpf_protocols/Makefile.am b/utils/keytable/bpf_protocols/Makefile.am
index 5e4b3d67..8887b897 100644
--- a/utils/keytable/bpf_protocols/Makefile.am
+++ b/utils/keytable/bpf_protocols/Makefile.am
@@ -7,13 +7,16 @@
CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \
| sed -n '/<...> search starts here:/,/End of search list./{ s| \(/.*\)|-idirafter \1|p }')
-%.o: %.c
+%.o: %.c bpf_helpers.h
$(CLANG) $(CLANG_SYS_INCLUDES) -I$(top_srcdir)/include -target bpf -O2 -c $<
PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o
all: $(PROTOCOLS)
+CLEANFILES = $(PROTOCOLS)
+EXTRA_DIST = $(PROTOCOLS:%.o=%.c) bpf_helpers.h
+
# custom target
install-data-local:
$(install_sh) -d "$(DESTDIR)$(keytableuserdir)/protocols"

Privacy Policy