2016-10-19 20:49:48 +08: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 20:49:49 +08:00
|
|
|
TESTS += sync_fence.o
|
2016-10-19 20:49:50 +08:00
|
|
|
TESTS += sync_merge.o
|
2016-10-19 20:49:51 +08:00
|
|
|
TESTS += sync_wait.o
|
2016-10-19 20:49:52 +08:00
|
|
|
TESTS += sync_stress_parallelism.o
|
2016-10-19 20:49:53 +08:00
|
|
|
TESTS += sync_stress_consumer.o
|
2016-10-19 20:49:54 +08:00
|
|
|
TESTS += sync_stress_merge.o
|
2016-10-19 20:49:48 +08:00
|
|
|
|
|
|
|
sync_test: $(OBJS) $(TESTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) sync_test $(OBJS) $(TESTS)
|