Makefile revision 11964
111730Sar4jc@virginia.edu# Copyright (c) 2016 The University of Virginia 211730Sar4jc@virginia.edu# All rights reserved. 311730Sar4jc@virginia.edu# 411730Sar4jc@virginia.edu# Redistribution and use in source and binary forms, with or without 511730Sar4jc@virginia.edu# modification, are permitted provided that the following conditions are 611730Sar4jc@virginia.edu# met: redistributions of source code must retain the above copyright 711730Sar4jc@virginia.edu# notice, this list of conditions and the following disclaimer; 811730Sar4jc@virginia.edu# redistributions in binary form must reproduce the above copyright 911730Sar4jc@virginia.edu# notice, this list of conditions and the following disclaimer in the 1011730Sar4jc@virginia.edu# documentation and/or other materials provided with the distribution; 1111730Sar4jc@virginia.edu# neither the name of the copyright holders nor the names of its 1211730Sar4jc@virginia.edu# contributors may be used to endorse or promote products derived from 1311730Sar4jc@virginia.edu# this software without specific prior written permission. 1411730Sar4jc@virginia.edu# 1511730Sar4jc@virginia.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1611730Sar4jc@virginia.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1711730Sar4jc@virginia.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1811730Sar4jc@virginia.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1911730Sar4jc@virginia.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2011730Sar4jc@virginia.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2111730Sar4jc@virginia.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2211730Sar4jc@virginia.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2311730Sar4jc@virginia.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2411730Sar4jc@virginia.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2511730Sar4jc@virginia.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2611730Sar4jc@virginia.edu# 2711730Sar4jc@virginia.edu# Authors: Alec Roelke 2811730Sar4jc@virginia.edu 2911964Sar4jc@virginia.eduCXX=riscv64-unknown-linux-gnu-g++ 3011730Sar4jc@virginia.eduCFLAGS=--std=c++11 -O3 -static 3111730Sar4jc@virginia.edu 3211730Sar4jc@virginia.eduTARGETS=rv64i rv64m rv64a rv64f rv64d 3311730Sar4jc@virginia.eduPREFIX=../../bin/riscv/linux 3411730Sar4jc@virginia.eduBIN=insttest 3511730Sar4jc@virginia.edu 3611730Sar4jc@virginia.eduall: $(TARGETS) 3711730Sar4jc@virginia.edu 3811730Sar4jc@virginia.edu$(TARGETS): 3911730Sar4jc@virginia.edu -mkdir -p $(PREFIX)-$@ 4011730Sar4jc@virginia.edu $(CXX) $< $(CFLAGS) -o $(PREFIX)-$@/$(BIN) 4111730Sar4jc@virginia.edu 4211730Sar4jc@virginia.edurv64i: rv64i.cpp 4311730Sar4jc@virginia.edurv64m: rv64m.cpp 4411730Sar4jc@virginia.edurv64a: rv64a.cpp 4511730Sar4jc@virginia.edurv64f: rv64f.cpp 4611730Sar4jc@virginia.edurv64d: rv64d.cpp 4711730Sar4jc@virginia.edu 4811730Sar4jc@virginia.educlean: 4911730Sar4jc@virginia.edu -rm $(PREFIX)-*/$(BIN) 5011730Sar4jc@virginia.edu 5111730Sar4jc@virginia.edu.PHONY: all clean 52