Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Makefile.inc | |
4 | # Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. | |
6 | # | |
7 | # The above named program is free software; you can redistribute it and/or | |
8 | # modify it under the terms of the GNU General Public | |
9 | # License version 2 as published by the Free Software Foundation. | |
10 | # | |
11 | # The above named program is distributed in the hope that it will be | |
12 | # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public | |
17 | # License along with this work; if not, write to the Free Software | |
18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | # | |
20 | # ========== Copyright Header End ============================================ | |
21 | # | |
22 | # Copyright 2006 Sun Microsystems, Inc. All rights reserved. | |
23 | # Use is subject to license terms. | |
24 | # | |
25 | # ident "@(#)Makefile.inc 1.6 06/10/06 SMI" | |
26 | # | |
27 | # debug tools makefile | |
28 | # | |
29 | ||
30 | ||
31 | DEBUG_VER=.1 | |
32 | ||
33 | COVERAGE_SRC=coverage_dump.c | |
34 | COVERAGE_BIN=coverage_dump | |
35 | COVERAGE_OBJ=coverage_dump.o | |
36 | COVERAGE_PL_BIN=coverage.pl | |
37 | COVERAGE_PL_SRC=$(SRCDIR)/procs/sunsparc/debug/tools/$(COVERAGE_PL_BIN) | |
38 | ||
39 | MADEBINS+=$(COVERAGE_BIN) $(COVERAGE_PL_BIN) | |
40 | ||
41 | # Need the following object files for certain functions to work | |
42 | COVERAGE_DEP=coverage_dump.o sparcv9dis.o fatal.o vfatal.o sparcv9dis_tbl.o | |
43 | ||
44 | ||
45 | DEBUG_INCLUDES=-I$(SRCDIR)/procs/sunsparc/include | |
46 | DEBUG_CFLAGS=$(DEBUG_INCLUDES) $(CFLAGS) -DDEBUG1 | |
47 | ||
48 | LIBS+=\ | |
49 | $(COVERAGE_BIN) $(COVERAGE_PL_BIN) | |
50 | ||
51 | $(COVERAGE_OBJ) : $(COVERAGE_SRC) | |
52 | $(CC) $(DEBUG_CFLAGS) $(CPPFLAGS) -c -o $@ $^ | |
53 | ||
54 | $(COVERAGE_PL_BIN) : FRC | |
55 | @echo "================> Making $(COVERAGE_PL_BIN)" | |
56 | @cp $(COVERAGE_PL_SRC) $(COVERAGE_PL_BIN) | |
57 | @chmod a+wx $(COVERAGE_PL_BIN) | |
58 | ||
59 | $(COVERAGE_BIN) : $(COVERAGE_OBJ) | |
60 | @echo "================> Making $(COVERAGE_BIN)" | |
61 | $(CC) $(DEBUG_CFLAGS) $(CPPFLAGS) -o $(COVERAGE_BIN) $(COVERAGE_DEP) | |
62 |