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.14 07/10/12 SMI" | |
26 | # | |
27 | # sparcv9 core files makefile | |
28 | # | |
29 | ||
30 | PROCSRCS=\ | |
31 | sparcv9regs.c \ | |
32 | sparcv9cc.c \ | |
33 | sparcv9decode.c \ | |
34 | sparcv9core.c \ | |
35 | sparcv9instns.c \ | |
36 | hostnative.c \ | |
37 | magictraps.c | |
38 | ||
39 | ifdef INTERNAL_BUILD | |
40 | PROCSRCS+=\ | |
41 | sparcv9dis.c \ | |
42 | sparcv9dis_tbl.c | |
43 | endif | |
44 | ||
45 | ||
46 | PROCOBJS=$(PROCSRCS:%.c=%.o) | |
47 | ||
48 | MADESRCS+=sparcv9regs.c sparcv9regs.h reggen reggen.c \ | |
49 | sparcv9instns.h sparcv9cc.c sparcv9cc.h \ | |
50 | hostnative_asm.h | |
51 | ||
52 | TEST=foo | |
53 | ||
54 | OBJS+=$(PROCOBJS) | |
55 | ||
56 | .INTERMEDIATE: sparcv9regs.c | |
57 | ||
58 | .INTERMEDIATE: sparcv9regs.h | |
59 | ||
60 | sparcv9regs.c sparcv9regs.h : reggen | |
61 | ||
62 | sparcv9regs.c sparcv9regs.h : sparcv9regs.spec | |
63 | ./reggen sparcv9regs "sparcv9" < $< | |
64 | ||
65 | ||
66 | # | |
67 | # Auto generated dependencies | |
68 | # | |
69 | ||
70 | sparcv9cc.c : | |
71 | ./sparcccgen sparcv9cc sparcv9_cc_magic | |
72 | ||
73 | sparcv9core.o sparcv9instns.o : sparcv9regs.h | |
74 | ||
75 | sparcv9instns.o sparcv9decode.o : sparcv9instns.h | |
76 | ||
77 | sparcv9decode.o : hostnative_asm.h | |
78 | ||
79 | sparcv9instns.h : sparcv9instns.c | |
80 | ./implhdr $< decoded_impl_sparcv9_ $@ | |
81 | ||
82 | hostnative_asm.s : hostnative_asm.S | |
83 | ||
84 | hostnative_asm.h : hostnative_asm.S | |
85 | ./hasnative $< $@ |