Debian Codegraph @

packaging/rpm/tests/Makefile

raw
1
2 PROGS?=test test-static testcpp testcpp-static
3
4 all: $(PROGS)
5
6 test: test.c
7 $(CC) -O2 -Werror -Wall $^ -o $@ $$(pkg-config --libs rdkafka)
8
9 test-static: test.c
10 $(CC) -O2 -Werror -Wall $^ -o $@ $$(pkg-config --libs rdkafka-static)
11
12 testcpp: test.cpp
13 $(CXX) -O2 -Werror -Wall $^ -o $@ $$(pkg-config --libs rdkafka++)
14
15 testcpp-static: test.cpp
16 $(CXX) -O2 -Werror -Wall $^ -o $@ $$(pkg-config --libs rdkafka++-static)
17
18 run:
19 @(for p in $(PROGS); do \
20 echo "# Running $$p" ; \
21 ./$$p || (echo $$p failed ; exit 1) ; \
22 done)
23
24 clean:
25 rm -f $(PROGS)