source: trunk/UNIT_TESTER/Makefile

Last change on this file was 18981, checked in by westram, 3 years ago
  • export/use ARB_CORE_LIBS (instead of using ARB_GLIB_LIBS directly).
File size: 4.1 KB
Line 
1# for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt
2.SUFFIXES: .o .cxx .depend .setup
3
4first: $(MAIN)
5
6include Makefile.setup.include
7
8LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT
9LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES)
10
11TESTER_OBJECTS = \
12        UnitTester.o \
13
14ENVIRONMENT_OBJECTS = \
15        TestEnvironment.o \
16
17ALL_OBJECTS = $(TESTER_OBJECTS) $(ENVIRONMENT_OBJECTS)
18
19ARBROOT=..
20
21TEST_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
31test_environment: $(ALL_OBJECTS) $(TEST_ENVIRONMENT_LIBS)
32        $(LINK_EXECUTABLE) test_environment $(ALL_OBJECTS) $(LIBPATH) $(ARBDB_LIB) $(TEST_ENVIRONMENT_LIBS) $(ARB_CORE_LIBS)
33
34.cxx.o:
35        $(A_CXX) $(cflags) $(cxxflags) $(LOCAL_DEFINES) -c $< -DDEADLOCKGUARD=$(DEADLOCKGUARD) $(CXX_INCLUDES) $(POST_COMPILE) $<
36
37clean:
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
45DEPENDS = $(ALL_OBJECTS:.o=.depend)
46depends: $(DEPENDS)
47        @cat $(DEPENDS) | grep -v '^#' >>Makefile
48        @rm $(DEPENDS)
49$(DEPENDS): depend.init
50depend.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
62TestEnvironment.o: ../SOURCE_TOOLS/arb_main.h
63TestEnvironment.o: test_global.h
64TestEnvironment.o: test_unit.h
65TestEnvironment.o: UnitTester.hxx
66TestEnvironment.o: $(ARBHOME)/INCLUDE/ad_prot.h
67TestEnvironment.o: $(ARBHOME)/INCLUDE/aisc_global.h
68TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_assert.h
69TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_core.h
70TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_defs.h
71TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_diff.h
72TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_error.h
73TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_file.h
74TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_mem.h
75TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_msg.h
76TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
77TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_str.h
78TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_string.h
79TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb.h
80TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb_base.h
81TestEnvironment.o: $(ARBHOME)/INCLUDE/arbtools.h
82TestEnvironment.o: $(ARBHOME)/INCLUDE/attributes.h
83TestEnvironment.o: $(ARBHOME)/INCLUDE/bytestring.h
84TestEnvironment.o: $(ARBHOME)/INCLUDE/client.h
85TestEnvironment.o: $(ARBHOME)/INCLUDE/client_types.h
86TestEnvironment.o: $(ARBHOME)/INCLUDE/cxxforward.h
87TestEnvironment.o: $(ARBHOME)/INCLUDE/dupstr.h
88TestEnvironment.o: $(ARBHOME)/INCLUDE/gccver.h
89TestEnvironment.o: $(ARBHOME)/INCLUDE/PT_com.h
90TestEnvironment.o: $(ARBHOME)/INCLUDE/servercntrl.h
91TestEnvironment.o: $(ARBHOME)/INCLUDE/smartptr.h
92
93UnitTester.o: ../SOURCE_TOOLS/arb_main.h
94UnitTester.o: test_global.h
95UnitTester.o: test_unit.h
96UnitTester.o: UnitTester.hxx
97UnitTester.o: $(ARBHOME)/INCLUDE/arb_assert.h
98UnitTester.o: $(ARBHOME)/INCLUDE/arb_backtrace.h
99UnitTester.o: $(ARBHOME)/INCLUDE/arb_core.h
100UnitTester.o: $(ARBHOME)/INCLUDE/arb_mem.h
101UnitTester.o: $(ARBHOME)/INCLUDE/arb_msg.h
102UnitTester.o: $(ARBHOME)/INCLUDE/arb_pathlen.h
103UnitTester.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
104UnitTester.o: $(ARBHOME)/INCLUDE/arb_sleep.h
105UnitTester.o: $(ARBHOME)/INCLUDE/arb_string.h
106UnitTester.o: $(ARBHOME)/INCLUDE/arbtools.h
107UnitTester.o: $(ARBHOME)/INCLUDE/attributes.h
108UnitTester.o: $(ARBHOME)/INCLUDE/cxxforward.h
109UnitTester.o: $(ARBHOME)/INCLUDE/dupstr.h
110UnitTester.o: $(ARBHOME)/INCLUDE/gccver.h
111UnitTester.o: $(ARBHOME)/INCLUDE/mod_rlimit.h
112UnitTester.o: $(ARBHOME)/INCLUDE/SigHandler.h
113UnitTester.o: $(ARBHOME)/INCLUDE/static_assert.h
114UnitTester.o: $(ARBHOME)/INCLUDE/stringize.h
115UnitTester.o: $(ARBHOME)/INCLUDE/SuppressOutput.h
116UnitTester.o: $(ARBHOME)/INCLUDE/ut_valgrinded.h
117UnitTester.o: $(ARBHOME)/INCLUDE/valgrind.h
Note: See TracBrowser for help on using the repository browser.