1CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra 2CFLAGS += -I../../../../usr/include/ 3LDFLAGS += -pthread 4 5TEST_PROGS = sync_test 6 7all: $(TEST_PROGS) 8 9include ../lib.mk 10 11OBJS = sync_test.o sync.o 12 13TESTS += sync_alloc.o 14TESTS += sync_fence.o 15TESTS += sync_merge.o 16TESTS += sync_wait.o 17TESTS += sync_stress_parallelism.o 18TESTS += sync_stress_consumer.o 19TESTS += sync_stress_merge.o 20 21sync_test: $(OBJS) $(TESTS) 22 23clean: 24 $(RM) sync_test $(OBJS) $(TESTS) 25