1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | .SUFFIXES: .o .cxx .depend .setup |
---|
3 | |
---|
4 | first: $(MAIN) |
---|
5 | |
---|
6 | include Makefile.setup.include |
---|
7 | |
---|
8 | LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT |
---|
9 | LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES) |
---|
10 | |
---|
11 | TESTER_OBJECTS = \ |
---|
12 | UnitTester.o \ |
---|
13 | |
---|
14 | ENVIRONMENT_OBJECTS = \ |
---|
15 | TestEnvironment.o \ |
---|
16 | |
---|
17 | ALL_OBJECTS = $(TESTER_OBJECTS) $(ENVIRONMENT_OBJECTS) |
---|
18 | |
---|
19 | ARBROOT=.. |
---|
20 | |
---|
21 | TEST_ENVIRONMENT_LIBS = \ |
---|
22 | $(ARBROOT)/SERVERCNTRL/SERVERCNTRL.a \ |
---|
23 | $(ARBROOT)/PROBE_COM/client.a \ |
---|
24 | |
---|
25 | |
---|
26 | $(MAIN): $(TESTER_OBJECTS) test_environment |
---|
27 | $(LINK_STATIC_LIB) $(MAIN) $(TESTER_OBJECTS) |
---|
28 | |
---|
29 | $(ALL_OBJECTS): Makefile.setup.local Makefile |
---|
30 | |
---|
31 | test_environment: $(ALL_OBJECTS) $(TEST_ENVIRONMENT_LIBS) |
---|
32 | $(LINK_EXECUTABLE) test_environment $(ALL_OBJECTS) $(LIBPATH) $(ARBDB_LIB) $(TEST_ENVIRONMENT_LIBS) $(ARB_GLIB_LIBS) |
---|
33 | |
---|
34 | .cxx.o: |
---|
35 | $(A_CXX) $(cflags) $(cxxflags) $(LOCAL_DEFINES) -c $< -DDEADLOCKGUARD=$(DEADLOCKGUARD) $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
36 | |
---|
37 | clean: |
---|
38 | rm -f $(ALL_OBJECTS) *.a test_environment skipslow.stamp |
---|
39 | rm -rf logs tests tests.slow |
---|
40 | $(MAKE) -f Makefile.test \ |
---|
41 | "UNITDIR=$(ARBHOME)/EGAL" \ |
---|
42 | clean |
---|
43 | |
---|
44 | |
---|
45 | DEPENDS = $(ALL_OBJECTS:.o=.depend) |
---|
46 | depends: $(DEPENDS) |
---|
47 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
48 | @rm $(DEPENDS) |
---|
49 | $(DEPENDS): depend.init |
---|
50 | depend.init: |
---|
51 | $(MAKEDEPEND) $(LOCAL_MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
52 | .c.depend: |
---|
53 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
54 | .cxx.depend: |
---|
55 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
56 | |
---|
57 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|
58 | |
---|
59 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
60 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
61 | |
---|
62 | TestEnvironment.o: ../SOURCE_TOOLS/arb_main.h |
---|
63 | TestEnvironment.o: test_global.h |
---|
64 | TestEnvironment.o: test_unit.h |
---|
65 | TestEnvironment.o: UnitTester.hxx |
---|
66 | TestEnvironment.o: $(ARBHOME)/INCLUDE/ad_prot.h |
---|
67 | TestEnvironment.o: $(ARBHOME)/INCLUDE/aisc_global.h |
---|
68 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
69 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
70 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_defs.h |
---|
71 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_diff.h |
---|
72 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_error.h |
---|
73 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_file.h |
---|
74 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
75 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
76 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
77 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_str.h |
---|
78 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
79 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb.h |
---|
80 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb_base.h |
---|
81 | TestEnvironment.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
82 | TestEnvironment.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
83 | TestEnvironment.o: $(ARBHOME)/INCLUDE/bytestring.h |
---|
84 | TestEnvironment.o: $(ARBHOME)/INCLUDE/client.h |
---|
85 | TestEnvironment.o: $(ARBHOME)/INCLUDE/client_types.h |
---|
86 | TestEnvironment.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
87 | TestEnvironment.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
88 | TestEnvironment.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
89 | TestEnvironment.o: $(ARBHOME)/INCLUDE/PT_com.h |
---|
90 | TestEnvironment.o: $(ARBHOME)/INCLUDE/servercntrl.h |
---|
91 | TestEnvironment.o: $(ARBHOME)/INCLUDE/smartptr.h |
---|
92 | |
---|
93 | UnitTester.o: ../SOURCE_TOOLS/arb_main.h |
---|
94 | UnitTester.o: test_global.h |
---|
95 | UnitTester.o: test_unit.h |
---|
96 | UnitTester.o: UnitTester.hxx |
---|
97 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
98 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_backtrace.h |
---|
99 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_core.h |
---|
100 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_mem.h |
---|
101 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_msg.h |
---|
102 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_pathlen.h |
---|
103 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
104 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_sleep.h |
---|
105 | UnitTester.o: $(ARBHOME)/INCLUDE/arb_string.h |
---|
106 | UnitTester.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
107 | UnitTester.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
108 | UnitTester.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
109 | UnitTester.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
110 | UnitTester.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
111 | UnitTester.o: $(ARBHOME)/INCLUDE/mod_rlimit.h |
---|
112 | UnitTester.o: $(ARBHOME)/INCLUDE/SigHandler.h |
---|
113 | UnitTester.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
114 | UnitTester.o: $(ARBHOME)/INCLUDE/SuppressOutput.h |
---|
115 | UnitTester.o: $(ARBHOME)/INCLUDE/ut_valgrinded.h |
---|
116 | UnitTester.o: $(ARBHOME)/INCLUDE/valgrind.h |
---|