3 objects = tests.o test-dinit.o proctests.o test-run-child-proc.o test-bpsys.o
4 parent_objs = service.o proc-service.o dinit-log.o load_service.o baseproc-service.o
10 build-tests: tests proctests
12 # Create an "includes" directory populated with a combination of real and mock headers:
16 cd includes; ln -sf ../../includes/*.h .
17 cd includes; ln -sf ../test-includes/*.h .
19 tests: prepare-incdir $(parent_objs) tests.o test-dinit.o test-bpsys.o test-run-child-proc.o
20 $(CXX) $(SANITIZEOPTS) -o tests $(parent_objs) tests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(EXTRA_LIBS)
22 proctests: prepare-incdir $(parent_objs) proctests.o test-dinit.o test-bpsys.o test-run-child-proc.o
23 $(CXX) $(SANITIZEOPTS) -o proctests $(parent_objs) proctests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(EXTRA_LIBS)
26 $(CXX) $(CXXOPTS) $(SANITIZEOPTS) -MMD -MP -Iincludes -I../dasynq -c $< -o $@
28 $(parent_objs): %.o: ../%.cc
29 $(CXX) $(CXXOPTS) $(SANITIZEOPTS) -MMD -MP -Iincludes -I../dasynq -c $< -o $@
34 -include $(objects:.o=.d)
35 -include $(parent_objs:.o=.d)