Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / cpus / vonk / n2 / lib / cpu / Makefile.rules
# ========== Copyright Header Begin ==========================================
#
# OpenSPARC T2 Processor File: Makefile.rules
# Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
#
# The above named program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License version 2 as published by the Free Software Foundation.
#
# The above named program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this work; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ========== Copyright Header End ============================================
$(SRC_DIR)/N2_RunAsm.s: $(GEN_INSTR.ss.lib.cpu)
$(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 s $(SRC_DIR)/N2_Run
$(INC_DIR)/N2_RunCpp.h: $(GEN_INSTR.ss.lib.cpu)
$(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 h $(INC_DIR)/N2_Run
$(SRC_DIR)/N2_RunCpp.cc: $(GEN_INSTR.ss.lib.cpu)
$(PY_BIN) $(BIN_DIR.ss.lib.cpu)/SS_InstrRun.py n2 cc $(SRC_DIR)/N2_Run
$(SRC_DIR)/N2_RunAsm.s: $(INC_DIR)/SS_Assembly.h
$(OBJ_DIR.n2.lib.cpu)/src/N2_Cpu.o: $(INC_DIR)/N2_State.h
$(OBJ_DIR.n2.lib.cpu)/src/N2_Tlb.o: $(INC_DIR)/N2_State.h
$(INC_DIR)/N2_State.h: $(BIN_DIR.n2.lib.cpu)/N2_State.py
PYTHONPATH=$(PYTHONPATH):$(BIN_DIR.ss.lib.cpu) $(PY_BIN) $(BIN_DIR.n2.lib.cpu)/N2_State.py n2 $@
$(INC_DIR)/%: $(SRC_DIR.n2.lib.cpu)/%
$(TARGET_MKDIR)
$(CP) -f $< $@
$(OBJ_DIR.n2.lib.cpu)/src/N2_Strand.o: $(SRC_DIR.n2.lib.cpu)/N2_Strand.cc $(INC_DIR)/N2_RunCpp.h
$(TARGET_MKDIR)
$(CC_BIN) $(CC_FLAGS) -c -o $@ $(SRC_DIR.n2.lib.cpu)/N2_Strand.cc
CC_FLAGS.n2.lib.cpu.export_ok =
CC_FLAGS.n2.lib.cpu. = -DN2_SPU_EXPORT_OK
CC_FLAGS.n2.lib.cpu = $(CC_FLAGS.n2.lib.cpu.$(EXPORT_OK))
$(OBJ_DIR.n2.lib.cpu)/src/N2_Core.o:\
$(SRC_DIR.n2.lib.cpu)/N2_Core.cc\
$(INC_DIR)/N2_State.h\
$(INC_DIR)/N2_RasState.h
$(TARGET_MKDIR)
$(CC_BIN) $(CC_FLAGS) $(CC_FLAGS.n2.lib.cpu) -c -o $@ $(SRC_DIR.n2.lib.cpu)/N2_Core.cc