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 | $(SRC_DIR)/N2_RunAsm.s: $(GEN_INSTR.ss.lib.cpu) | |
23 | $(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 s $(SRC_DIR)/N2_Run | |
24 | ||
25 | $(INC_DIR)/N2_RunCpp.h: $(GEN_INSTR.ss.lib.cpu) | |
26 | $(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 h $(INC_DIR)/N2_Run | |
27 | ||
28 | $(SRC_DIR)/N2_RunCpp.cc: $(GEN_INSTR.ss.lib.cpu) | |
29 | $(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 cc $(SRC_DIR)/N2_Run | |
30 | ||
31 | ||
32 | $(SRC_DIR)/N2_RunAsm.s: $(INC_DIR)/SS_Assembly.h | |
33 | ||
34 | $(OBJ_DIR.n2.lib.cpu)/src/N2_Cpu.o: $(INC_DIR)/N2_State.h | |
35 | $(OBJ_DIR.n2.lib.cpu)/src/N2_Tlb.o: $(INC_DIR)/N2_State.h | |
36 | ||
37 | $(INC_DIR)/N2_State.h: $(BIN_DIR.n2.lib.cpu)/N2_State.py | |
38 | PYTHONPATH=$(PYTHONPATH):$(BIN_DIR.ss.lib.cpu) $(PY_BIN) $(BIN_DIR.n2.lib.cpu)/N2_State.py n2 $@ | |
39 | ||
40 | $(INC_DIR)/%: $(SRC_DIR.n2.lib.cpu)/% | |
41 | $(TARGET_MKDIR) | |
42 | $(CP) -f $< $@ | |
43 | ||
44 | $(OBJ_DIR.n2.lib.cpu)/src/N2_Strand.o: $(SRC_DIR.n2.lib.cpu)/N2_Strand.cc $(INC_DIR)/N2_RunCpp.h | |
45 | $(TARGET_MKDIR) | |
46 | $(CC_BIN) $(CC_FLAGS) -c -o $@ $(SRC_DIR.n2.lib.cpu)/N2_Strand.cc | |
47 | ||
48 | CC_FLAGS.n2.lib.cpu.export_ok = | |
49 | CC_FLAGS.n2.lib.cpu. = -DN2_SPU_EXPORT_OK | |
50 | CC_FLAGS.n2.lib.cpu = $(CC_FLAGS.n2.lib.cpu.$(EXPORT_OK)) | |
51 | ||
52 | $(OBJ_DIR.n2.lib.cpu)/src/N2_Core.o:\ | |
53 | $(SRC_DIR.n2.lib.cpu)/N2_Core.cc\ | |
54 | $(INC_DIR)/N2_State.h\ | |
55 | $(INC_DIR)/N2_RasState.h | |
56 | $(TARGET_MKDIR) | |
57 | $(CC_BIN) $(CC_FLAGS) $(CC_FLAGS.n2.lib.cpu) -c -o $@ $(SRC_DIR.n2.lib.cpu)/N2_Core.cc | |
58 |