Makefile 453 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
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
14
TESTS += sync_fence.o
15
TESTS += sync_merge.o
16
TESTS += sync_wait.o
17
TESTS += sync_stress_parallelism.o
18
TESTS += sync_stress_consumer.o
19
TESTS += sync_stress_merge.o
20 21 22 23 24

sync_test: $(OBJS) $(TESTS)

clean:
	$(RM) sync_test $(OBJS) $(TESTS)