TARGETS = basic_host basic_client matching_host matching_client vanish_host vanish_client matching2_host matching2_client gamemode_host gamemode_client lifecycle_host lifecycle_client flow_host flow_client matching3_host matching3_client timing_host timing_client ptpclose_host ptpclose_client matchingjoin_host matchingjoin_client vanishtiming_host vanishtiming_client ptplockstep_host ptplockstep_client gamemodescan_host gamemodescan_client ptpconnect_host ptpconnect_client gamemodetiming_host gamemodetiming_client gamemodesync_host gamemodesync_client matchingorder_host matchingorder_client matchingaccept_host matchingaccept_client ptppoll_host ptppoll_client discover_host discover_client ptpmsg_host ptpmsg_client scaninfo_host scaninfo_client ptpflush_host ptpflush_client ptpsendready_host ptpsendready_client listsizes_host listsizes_client gamemodeinfo_host gamemodeinfo_client ptpsegments_host ptpsegments_client joinrace_host joinrace_client EXTRA_OBJS = ../../net-imports.o COMMON_DIR = ../../../../common include $(COMMON_DIR)/common.mk # Each test is built from X.inc through X_host.c and X_client.c, and they all include these headers. # make doesn't know about any of that by itself. $(addsuffix .o,$(TARGETS)): pair.h pairmatching.h ../adhoc.h $(foreach t,$(sort $(subst _host,,$(subst _client,,$(TARGETS)))),$(eval $(t)_host.o $(t)_client.o: $(t).inc)) timing_host.o timing_client.o ptpflush_host.o ptpflush_client.o ptpsendready_host.o ptpsendready_client.o gamemodeinfo_host.o gamemodeinfo_client.o ptpsegments_host.o ptpsegments_client.o: ../timing.h