Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Makefile | |
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 | ||
23 | include n2/lib/cpu/Makefile.defines | |
24 | include n2/lib/csr/Makefile.defines | |
25 | include n2/lib/ras/Makefile.defines | |
26 | ||
27 | include n2/api/sam/Makefile.defines | |
28 | include n2/api/pfe/Makefile.defines | |
29 | include n2/api/pli/Makefile.defines | |
30 | ||
31 | include n2/exe/nas/Makefile.defines | |
32 | ||
33 | include n2/dev/pioasi/Makefile.defines | |
34 | include n2/dev/resetgen/Makefile.defines | |
35 | ||
36 | ||
37 | INC_BUILC.n2.api=\ | |
38 | $(INC_BUILD.n2.api.sam)\ | |
39 | $(INC_BUILD.n2.api.pfe)\ | |
40 | $(INC_BUILD.n2.api.pli) | |
41 | ||
42 | INC_BUILD.n2.dev=\ | |
43 | $(INC_BUILD.n2.dev.resetgen)\ | |
44 | $(INC_BUILD.n2.dev.pioasi) | |
45 | ||
46 | INC_BUILD.n2.lib=\ | |
47 | $(INC_BUILD.n2.lib.cpu)\ | |
48 | $(INC_BUILD.n2.lib.ras)\ | |
49 | $(INC_BUILD.n2.lib.csr) | |
50 | ||
51 | ||
52 | PFE_BUILD.n2.api=\ | |
53 | $(PFE_BUILD.n2.api.sam)\ | |
54 | $(PFE_BUILD.n2.api.pfe) | |
55 | ||
56 | PFE_BUILD.n2.dev=\ | |
57 | $(PFE_BUILD.n2.dev.resetgen)\ | |
58 | $(PFE_BUILD.n2.dev.pioasi) | |
59 | PFE_BUILD.n2.exe=\ | |
60 | $(PFE_BUILD.n2.exe.nas) | |
61 | ||
62 | ||
63 | OBJ_BUILD.n2.api=\ | |
64 | $(OBJ_BUILD.n2.api.sam)\ | |
65 | $(OBJ_BUILD.n2.api.pfe)\ | |
66 | $(OBJ_BUILD.n2.api.pli) | |
67 | ||
68 | OBJ_BUILD.n2.dev=\ | |
69 | $(OBJ_BUILD.n2.dev.resetgen)\ | |
70 | $(OBJ_BUILD.n2.dev.pioasi) | |
71 | ||
72 | OBJ_BUILD.n2.lib=\ | |
73 | $(OBJ_BUILD.n2.lib.cpu)\ | |
74 | $(OBJ_BUILD.n2.lib.ras)\ | |
75 | $(OBJ_BUILD.n2.lib.csr) | |
76 | ||
77 | OBJ_BUILD.n2.exe=\ | |
78 | $(OBJ_BUILD.n2.exe.nas) | |
79 | ||
80 | ||
81 | include n2/lib/cpu/Makefile.rules | |
82 | include n2/lib/csr/Makefile.rules | |
83 | include n2/lib/ras/Makefile.rules | |
84 | ||
85 | include n2/exe/nas/Makefile.rules | |
86 | ||
87 | include n2/dev/pioasi/Makefile.rules | |
88 | include n2/dev/resetgen/Makefile.rules | |
89 | ||
90 | include n2/api/sam/Makefile.rules | |
91 | include n2/api/pfe/Makefile.rules | |
92 | include n2/api/pli/Makefile.rules | |
93 | ||
94 | ||
95 | n2nas:= TARGET=cosim | |
96 | n2nas:= MEMORY=memsync | |
97 | n2nas:\ | |
98 | $(BUILD_DIRS)\ | |
99 | $(SRC_DIR.n2.api.pfe)\ | |
100 | $(SRC_DIR.n2.api.pli)\ | |
101 | $(SRC_DIR.n2.exe.nas)\ | |
102 | $(INC_BUILD.bl.lib)\ | |
103 | $(INC_BUILD.bl.api.pfe)\ | |
104 | $(INC_BUILD.ss.lib)\ | |
105 | $(INC_BUILD.ss.lib.csr)\ | |
106 | $(INC_BUILD.ss.api.sam)\ | |
107 | $(INC_BUILD.ss.api.samfe)\ | |
108 | $(INC_BUILD.ss.api.pfe)\ | |
109 | $(INC_BUILD.ss.api.memsync)\ | |
110 | $(INC_BUILD.ss.api.pli)\ | |
111 | $(INC_BUILD.ss.dev)\ | |
112 | $(INC_BUILD.n2.lib)\ | |
113 | $(INC_BUILD.n2.lib.csr)\ | |
114 | $(INC_BUILD.n2.api.pfe)\ | |
115 | $(INC_BUILD.n2.api.pli)\ | |
116 | $(INC_BUILD.n2.dev)\ | |
117 | .WAIT\ | |
118 | $(GEN_BUILD.ss)\ | |
119 | .WAIT\ | |
120 | $(BIN_DIR)/n2nas | |
121 | ||
122 | ||
123 | n2sam:= TARGET=sam | |
124 | n2sam:= MEMORY=sparse | |
125 | n2sam:\ | |
126 | $(BUILD_DIRS)\ | |
127 | $(SRC_DIR.n2.api.pfe)\ | |
128 | $(INC_BUILD.bl.lib)\ | |
129 | $(INC_BUILD.bl.api.pfe)\ | |
130 | $(INC_BUILD.ss.lib)\ | |
131 | $(INC_BUILD.ss.api.pfe)\ | |
132 | $(INC_BUILD.ss.api.samfe)\ | |
133 | $(INC_BUILD.ss.api.sam)\ | |
134 | $(INC_BUILD.ss.api.memsync)\ | |
135 | $(INC_BUILD.n2.lib)\ | |
136 | $(INC_BUILD.n2.api.pfe)\ | |
137 | $(INC_BUILD.n2.api.sam)\ | |
138 | $(INC_BUILD.n2.dev)\ | |
139 | .WAIT\ | |
140 | $(GEN_BUILD.ss)\ | |
141 | .WAIT\ | |
142 | $(LIB_DIR)/$(LIBPRE)n2$(LIBSAM).so | |
143 | ||
144 | ||
145 | $(LIB_DIR)/$(LIBPRE)n2$(LIBCPU).so:\ | |
146 | $(BUILD_DIRS)\ | |
147 | $(OBJ_BUILD.bl.lib)\ | |
148 | $(OBJ_BUILD.ss.lib)\ | |
149 | $(OBJ_BUILD.n2.lib) | |
150 | $(LD_BIN) $(LD_FLAGS) -o $@\ | |
151 | $(OBJ_BUILD.bl.lib)\ | |
152 | $(OBJ_BUILD.ss.lib)\ | |
153 | $(OBJ_BUILD.n2.lib) |