1CFLAGS += -O2 2 3all: 4 $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt 5 $(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt 6 7include ../lib.mk 8 9override define RUN_TESTS 10 @./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]" 11 @./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]" 12endef 13 14TEST_PROGS := mq_open_tests mq_perf_tests 15 16override define EMIT_TESTS 17 echo "./mq_open_tests /test1 || echo \"selftests: mq_open_tests [FAIL]\"" 18 echo "./mq_perf_tests || echo \"selftests: mq_perf_tests [FAIL]\"" 19endef 20 21clean: 22 rm -f mq_open_tests mq_perf_tests 23