1 -include ../../../mconfig
4 parent_test_objects = ../test-bpsys.o ../test-dinit.o
5 parent_objs = control.o dinit-log.o service.o
10 build-tests: prepare-incdir cptests
12 # Create an "includes" directory populated with a combination of real and mock headers:
16 cd includes; ln -f ../../../includes/*.h .
17 cd includes; ln -f ../../test-includes/dinit.h .
18 cd includes; ln -f ../../test-includes/baseproc-sys.h .
20 cptests: cptests.o $(parent_objs)
21 $(CXX) $(SANITIZEOPTS) -o cptests cptests.o $(parent_test_objects) $(parent_objs) $(LDFLAGS)
24 $(CXX) $(CXXOPTS) $(SANITIZEOPTS) -MMD -MP -Iincludes -I../../dasynq -c $< -o $@
26 $(parent_objs): %.o: ../../%.cc
27 $(CXX) $(CXXOPTS) $(SANITIZEOPTS) -MMD -MP -Iincludes -I../../dasynq -c $< -o $@
32 -include $(objects:.o=.d)
33 -include $(parent_objects:.o=.d)