Skip to content

Commit f8c51e2

Browse files
committed
tests: drop headers from Makefile dependencies
Clang does not support header files included in the compile command: clang -g -O2 -Werror -Wall -Wextra -Wno-error=unused-parameter -D_GNU_SOURCE -DHAVE_BPF -DHAVE_FS_WATCH_PERM -DHAVE_BPF bpf_test.c bpf_common.c bpf_common.h -lselinux -lbpf -o bpf_test clang: error: cannot specify -o when generating multiple output files Signed-off-by: Christian Göttsche <[email protected]>
1 parent dbcd3f6 commit f8c51e2

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

tests/binder/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ INCLUDEDIR ?= /usr/include
33

44
TARGETS = check_binder client manager service_provider
55
LDLIBS += -lselinux -lrt
6-
DEPS = binder_common.c binder_common.h
6+
DEPS = binder_common.c
77

88
ifeq ($(shell test -e $(INCLUDEDIR)/linux/android/binderfs.h && echo true),true)
99
CFLAGS += -DHAVE_BINDERFS
1010
TARGETS += check_binderfs
1111
endif
1212

1313
ifneq (,$(findstring -DHAVE_BPF,$(CFLAGS)))
14-
DEPS += ../bpf/bpf_common.c ../bpf/bpf_common.h
14+
DEPS += ../bpf/bpf_common.c
1515
LDLIBS += -lbpf
1616
endif
1717

tests/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TARGETS = bpf_test
2-
DEPS = bpf_common.c bpf_common.h
2+
DEPS = bpf_common.c
33
LDLIBS += -lselinux -lbpf
44

55
# export so that BPF_ENABLED entries get built correctly on local build

tests/fdreceive/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
TARGETS = client server
22

33
ifneq (,$(findstring -DHAVE_BPF,$(CFLAGS)))
4-
DEPS = ../bpf/bpf_common.c ../bpf/bpf_common.h
4+
DEPS = ../bpf/bpf_common.c
55
LDLIBS += -lbpf
66
endif
77

tests/keys/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
TARGETS = keyctl keyctl_relabel keyring_service request_keys
22
LDLIBS += -lselinux -lkeyutils
33

4-
$(TARGETS): keys_common.h
5-
64
all: $(TARGETS)
75

86
clean:

tests/tun_tap/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TARGETS = tun_tap tun_relabel
2-
DEPS = tun_common.c tun_common.h
2+
DEPS = tun_common.c
33
LDLIBS += -lselinux
44

55
all: $(TARGETS)

0 commit comments

Comments
 (0)