summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kdbus/Makefile
blob: 8f36cb5667cc7c96dae927c5c7569ad72aa6831f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
CFLAGS += -I../../../../usr/include/
CFLAGS += -I../../../../samples/kdbus/
CFLAGS += -I../../../../include/uapi/
CFLAGS += -std=gnu99
CFLAGS += -DKBUILD_MODNAME=\"kdbus\" -D_GNU_SOURCE
LDLIBS = -pthread -lcap -lm

OBJS= \
	kdbus-enum.o		\
	kdbus-util.o		\
	kdbus-test.o		\
	kdbus-test.o		\
	test-activator.o	\
	test-benchmark.o	\
	test-bus.o		\
	test-chat.o		\
	test-connection.o	\
	test-daemon.o		\
	test-endpoint.o		\
	test-fd.o		\
	test-free.o		\
	test-match.o		\
	test-message.o		\
	test-metadata-ns.o	\
	test-monitor.o		\
	test-names.o		\
	test-policy.o		\
	test-policy-ns.o	\
	test-policy-priv.o	\
	test-sync.o		\
	test-timeout.o

all: kdbus-test

include ../lib.mk

%.o: %.c kdbus-enum.h kdbus-test.h kdbus-util.h
	$(CC) $(CFLAGS) -c $< -o $@

kdbus-test: $(OBJS)
	$(CC) $(CFLAGS) $^ $(LDLIBS) -o $@

TEST_PROGS := kdbus-test

run_tests:
	./kdbus-test --tap

clean:
	rm -f *.o kdbus-test