2016-10-19 19:49:48 +07:00
|
|
|
CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
LDFLAGS += -pthread
|
|
|
|
|
|
|
|
TEST_PROGS = sync_test
|
|
|
|
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
|
|
|
|
include ../lib.mk
|
|
|
|
|
|
|
|
OBJS = sync_test.o sync.o
|
|
|
|
|
|
|
|
TESTS += sync_alloc.o
|
2016-10-19 19:49:49 +07:00
|
|
|
TESTS += sync_fence.o
|
2016-10-19 19:49:50 +07:00
|
|
|
TESTS += sync_merge.o
|
2016-10-19 19:49:51 +07:00
|
|
|
TESTS += sync_wait.o
|
2016-10-19 19:49:52 +07:00
|
|
|
TESTS += sync_stress_parallelism.o
|
2016-10-19 19:49:53 +07:00
|
|
|
TESTS += sync_stress_consumer.o
|
2016-10-19 19:49:54 +07:00
|
|
|
TESTS += sync_stress_merge.o
|
2016-10-19 19:49:48 +07:00
|
|
|
|
|
|
|
sync_test: $(OBJS) $(TESTS)
|
|
|
|
|
2017-04-22 05:25:25 +07:00
|
|
|
EXTRA_CLEAN := sync_test $(OBJS) $(TESTS)
|