1CFLAGS += -O2 2LDLIBS = -lrt -lpthread -lpopt 3TEST_GEN_PROGS := mq_open_tests mq_perf_tests 4 5include ../lib.mk 6 7override define RUN_TESTS 8 $(OUTPUT)/mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]" 9 $(OUTPUT)//mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]" 10endef 11 12override define EMIT_TESTS 13 echo "./mq_open_tests /test1 || echo \"selftests: mq_open_tests [FAIL]\"" 14 echo "./mq_perf_tests || echo \"selftests: mq_perf_tests [FAIL]\"" 15endef 16 17