Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Makefile.rules | |
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 | # "@(#)1.1 06/04/24 Makefile.rules" | |
23 | # | |
24 | ||
25 | ||
26 | # | |
27 | # for Sun Make predefined macros and rules see | |
28 | # /usr/share/lib/make/make.rules | |
29 | # it defines things like COMPILE.cc and LINK.cc | |
30 | ||
31 | ||
32 | # -------- for compiling into an "$(OBJ_DIR)/" subdirectory -------- | |
33 | # | |
34 | $(OBJ_DIR)/%.o: %.cc | |
35 | @ $(TESTDIR) $(OBJ_DIR) | |
36 | @echo | |
37 | @echo compiling $@ | |
38 | @echo | |
39 | $(COMPILE.cc) $< -o $@ | |
40 | @echo | |
41 | ||
42 | $(OBJ_DIR)/%.o: %.c | |
43 | @ $(TESTDIR) $(OBJ_DIR) | |
44 | @echo | |
45 | @echo compiling $@ | |
46 | @echo | |
47 | $(COMPILE.c) $< -o $@ | |
48 | @echo | |
49 | ||
50 | $(OBJ_DIR)/%.o: %.s | |
51 | @ $(TESTDIR) $(OBJ_DIR) | |
52 | @echo | |
53 | @echo assembling $@ | |
54 | @echo | |
55 | $(COMPILE.s) $< -o $@ | |
56 | @echo | |
57 | ||
58 | ||
59 | # -------- for compiling into the current directory -------- | |
60 | # | |
61 | .cc.o: | |
62 | @echo | |
63 | @echo compiling $@ | |
64 | @echo | |
65 | $(COMPILE.cc) $< -o $@ | |
66 | @echo | |
67 | ||
68 | .c.o: | |
69 | @echo | |
70 | @echo compiling $@ | |
71 | @echo | |
72 | $(COMPILE.c) $< -o $@ | |
73 | @echo | |
74 | ||
75 | .s.o: | |
76 | @echo | |
77 | @echo assembling $@ | |
78 | @echo | |
79 | $(COMPILE.s) $< -o $@ | |
80 | @echo | |
81 | ||
82 | ||
83 | # --------------------- import rules ------------------ | |
84 | ||
85 | $(LIB_DIR)/%: | |
86 | $(TARGET_MKDIR) | |
87 | cp -f $< $@ | |
88 | ||
89 | # --------------------- specials ------------------ | |
90 | ||
91 | FRC: | |
92 | ||
93 | .KEEP_STATE: | |
94 | ||
95 | ||
96 | # ------------------------- -=oOo=- ------------------------ |