Move away from using the statusChange function on snoops. Clean up snooping code...
[gem5.git] / src / unittest / Makefile
1 # Copyright (c) 2006 The Regents of The University of Michigan
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met: redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer;
8 # redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution;
11 # neither the name of the copyright holders nor the names of its
12 # contributors may be used to endorse or promote products derived from
13 # this software without specific prior written permission.
14 #
15 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #
27 # Authors: Nathan Binkert
28 # Steve Reinhardt
29
30 CC?= gcc
31 CXX?= g++
32 PYTHON?=/usr/bin/env python
33
34 CURDIR?= $(shell /bin/pwd)
35 SRCDIR?= $(CURDIR)/..
36
37 CCFLAGS= -g -O0 -MMD -I. -I$(SRCDIR) -I- -DTRACING_ON=0
38 MYSQL= -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
39
40 VPATH=$(SRCDIR):$(CURDIR)
41
42 default:
43 @echo "You must specify a target"
44
45 base/traceflags.cc base/traceflags.hh: $(SRCDIR)/base/traceflags.py
46 mkdir -p base; \
47 cd base; \
48 $(PYTHON) $<
49
50 bitvectest: test/bitvectest.cc
51 $(CXX) $(CCFLAGS) -o $@ $^
52
53 circletest: test/circletest.cc base/circlebuf.cc
54 $(CXX) $(CCFLAGS) -o $@ $^
55
56 cprintftest: test/cprintftest.cc base/cprintf.cc
57 $(CXX) $(CCFLAGS) -o $@ $^
58
59 initest: test/initest.cc base/str.cc base/inifile.cc base/cprintf.cc
60 $(CXX) $(CCFLAGS) -o $@ $^
61
62 lrutest: test/lru_test.cc
63 $(CXX) $(CCFLAGS) -o $@ $^
64
65 nmtest: test/nmtest.cc base/output.cc base/hostinfo.cc base/cprintf.cc base/misc.cc base/loader/object_file.cc base/loader/symtab.cc base/misc.cc base/str.cc base/loader/aout_object.cc base/loader/ecoff_object.cc base/loader/elf_object.cc
66 $(CXX) $(CCFLAGS) -I/n/ziff/z/binkertn/build/work/ALPHA_FS -lelf -o $@ $^
67
68 offtest: test/offtest.cc
69 $(CXX) $(CCFLAGS) -o $@ $^
70
71 rangetest: test/rangetest.cc base/range.cc base/str.cc
72 $(CXX) $(CCFLAGS) -o $@ $^
73
74 STATTEST+= base/cprintf.cc base/hostinfo.cc base/misc.cc base/mysql.cc
75 STATTEST+= base/python.cc base/str.cc base/time.cc
76 STATTEST+= base/statistics.cc base/stats/mysql.cc base/stats/python.cc
77 STATTEST+= base/stats/statdb.cc base/stats/text.cc base/stats/visit.cc
78 STATTEST+= test/stattest.cc
79 stattest: $(STATTEST)
80 $(CXX) $(CCFLAGS) $(MYSQL) -o $@ $^
81
82 strnumtest: test/strnumtest.cc base/str.cc
83 $(CXX) $(CCFLAGS) -o $@ $^
84
85 symtest: test/symtest.cc base/misc.cc base/symtab.cc base/str.cc
86 $(CXX) $(CCFLAGS) -o $@ $^
87
88 tokentest: test/tokentest.cc base/str.cc
89 $(CXX) $(CCFLAGS) -o $@ $^
90
91 TRACE+=test/tracetest.cc base/trace.cc base/trace_flags.cc base/cprintf.cc
92 TRACE+=base/str.cc base/misc.cc
93 tracetest: $(TRACE)
94 $(CXX) $(CCFLAGS) -o $@ $^
95
96 clean:
97 @rm -rf *test *~ .#* *.core core base
98 .PHONY: clean