# ========== Copyright Header Begin ========================================== # # OpenSPARC T2 Processor File: Makefile # 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 ============================================ include n2/lib/cpu/Makefile.defines include n2/lib/csr/Makefile.defines include n2/lib/ras/Makefile.defines include n2/api/sam/Makefile.defines include n2/api/pfe/Makefile.defines include n2/api/pli/Makefile.defines include n2/exe/nas/Makefile.defines include n2/dev/pioasi/Makefile.defines include n2/dev/resetgen/Makefile.defines INC_BUILC.n2.api=\ $(INC_BUILD.n2.api.sam)\ $(INC_BUILD.n2.api.pfe)\ $(INC_BUILD.n2.api.pli) INC_BUILD.n2.dev=\ $(INC_BUILD.n2.dev.resetgen)\ $(INC_BUILD.n2.dev.pioasi) INC_BUILD.n2.lib=\ $(INC_BUILD.n2.lib.cpu)\ $(INC_BUILD.n2.lib.ras)\ $(INC_BUILD.n2.lib.csr) PFE_BUILD.n2.api=\ $(PFE_BUILD.n2.api.sam)\ $(PFE_BUILD.n2.api.pfe) PFE_BUILD.n2.dev=\ $(PFE_BUILD.n2.dev.resetgen)\ $(PFE_BUILD.n2.dev.pioasi) PFE_BUILD.n2.exe=\ $(PFE_BUILD.n2.exe.nas) OBJ_BUILD.n2.api=\ $(OBJ_BUILD.n2.api.sam)\ $(OBJ_BUILD.n2.api.pfe)\ $(OBJ_BUILD.n2.api.pli) OBJ_BUILD.n2.dev=\ $(OBJ_BUILD.n2.dev.resetgen)\ $(OBJ_BUILD.n2.dev.pioasi) OBJ_BUILD.n2.lib=\ $(OBJ_BUILD.n2.lib.cpu)\ $(OBJ_BUILD.n2.lib.ras)\ $(OBJ_BUILD.n2.lib.csr) OBJ_BUILD.n2.exe=\ $(OBJ_BUILD.n2.exe.nas) include n2/lib/cpu/Makefile.rules include n2/lib/csr/Makefile.rules include n2/lib/ras/Makefile.rules include n2/exe/nas/Makefile.rules include n2/dev/pioasi/Makefile.rules include n2/dev/resetgen/Makefile.rules include n2/api/sam/Makefile.rules include n2/api/pfe/Makefile.rules include n2/api/pli/Makefile.rules n2nas:= TARGET=cosim n2nas:= MEMORY=memsync n2nas:\ $(BUILD_DIRS)\ $(SRC_DIR.n2.api.pfe)\ $(SRC_DIR.n2.api.pli)\ $(SRC_DIR.n2.exe.nas)\ $(INC_BUILD.bl.lib)\ $(INC_BUILD.bl.api.pfe)\ $(INC_BUILD.ss.lib)\ $(INC_BUILD.ss.lib.csr)\ $(INC_BUILD.ss.api.sam)\ $(INC_BUILD.ss.api.samfe)\ $(INC_BUILD.ss.api.pfe)\ $(INC_BUILD.ss.api.memsync)\ $(INC_BUILD.ss.api.pli)\ $(INC_BUILD.ss.dev)\ $(INC_BUILD.n2.lib)\ $(INC_BUILD.n2.lib.csr)\ $(INC_BUILD.n2.api.pfe)\ $(INC_BUILD.n2.api.pli)\ $(INC_BUILD.n2.dev)\ .WAIT\ $(GEN_BUILD.ss)\ .WAIT\ $(BIN_DIR)/n2nas n2sam:= TARGET=sam n2sam:= MEMORY=sparse n2sam:\ $(BUILD_DIRS)\ $(SRC_DIR.n2.api.pfe)\ $(INC_BUILD.bl.lib)\ $(INC_BUILD.bl.api.pfe)\ $(INC_BUILD.ss.lib)\ $(INC_BUILD.ss.api.pfe)\ $(INC_BUILD.ss.api.samfe)\ $(INC_BUILD.ss.api.sam)\ $(INC_BUILD.ss.api.memsync)\ $(INC_BUILD.n2.lib)\ $(INC_BUILD.n2.api.pfe)\ $(INC_BUILD.n2.api.sam)\ $(INC_BUILD.n2.dev)\ .WAIT\ $(GEN_BUILD.ss)\ .WAIT\ $(LIB_DIR)/$(LIBPRE)n2$(LIBSAM).so $(LIB_DIR)/$(LIBPRE)n2$(LIBCPU).so:\ $(BUILD_DIRS)\ $(OBJ_BUILD.bl.lib)\ $(OBJ_BUILD.ss.lib)\ $(OBJ_BUILD.n2.lib) $(LD_BIN) $(LD_FLAGS) -o $@\ $(OBJ_BUILD.bl.lib)\ $(OBJ_BUILD.ss.lib)\ $(OBJ_BUILD.n2.lib)