xref: /linux/tools/testing/selftests/sync/Makefile (revision c52dee5025d904896198b7090cf7df80a4028363)
182208160SEmilio LópezCFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra
282208160SEmilio LópezCFLAGS += -I../../../../usr/include/
382208160SEmilio LópezLDFLAGS += -pthread
482208160SEmilio López
582208160SEmilio LópezTEST_PROGS = sync_test
682208160SEmilio López
782208160SEmilio Lópezall: $(TEST_PROGS)
882208160SEmilio López
982208160SEmilio Lópezinclude ../lib.mk
1082208160SEmilio López
1182208160SEmilio LópezOBJS = sync_test.o sync.o
1282208160SEmilio López
1382208160SEmilio LópezTESTS += sync_alloc.o
146a5b7d2cSEmilio LópezTESTS += sync_fence.o
151c5839c6SEmilio LópezTESTS += sync_merge.o
16fdba7cffSEmilio LópezTESTS += sync_wait.o
1754b519f3SEmilio LópezTESTS += sync_stress_parallelism.o
18*c52dee50SEmilio LópezTESTS += sync_stress_consumer.o
1982208160SEmilio López
2082208160SEmilio Lópezsync_test: $(OBJS) $(TESTS)
2182208160SEmilio López
2282208160SEmilio Lópezclean:
2382208160SEmilio López	$(RM) sync_test $(OBJS) $(TESTS)
24