Makefile revision 12053
12139SN/A# Copyright (c) 2003, 2005 The Regents of The University of Michigan 22139SN/A# All rights reserved. 32139SN/A# 42139SN/A# Redistribution and use in source and binary forms, with or without 52139SN/A# modification, are permitted provided that the following conditions are 62139SN/A# met: redistributions of source code must retain the above copyright 72139SN/A# notice, this list of conditions and the following disclaimer; 82139SN/A# redistributions in binary form must reproduce the above copyright 92139SN/A# notice, this list of conditions and the following disclaimer in the 102139SN/A# documentation and/or other materials provided with the distribution; 112139SN/A# neither the name of the copyright holders nor the names of its 122139SN/A# contributors may be used to endorse or promote products derived from 132139SN/A# this software without specific prior written permission. 142139SN/A# 152139SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172139SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192139SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202139SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212139SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262139SN/A# 272139SN/A# Authors: Nathan Binkert 282665Ssaidi@eecs.umich.edu 292665Ssaidi@eecs.umich.eduCC= gcc 302139SN/ACXX= g++ 314202Sbinkertn@umich.edu 322139SN/AINCLDIRS= -iquote . -I /usr/local/include 334202Sbinkertn@umich.eduCCFLAGS= -g -MMD $(INCLDIRS) 342152SN/A 352152SN/Adefault: m5tap 362139SN/A 372139SN/Am5tap: tap.o 382139SN/A $(CXX) $(LFLAGS) -o $@ $^ -lpcap 392139SN/A 402139SN/Ainstall: m5tap 412152SN/A $(SUDO) install -o root -m 555 m5tap /usr/local/bin 422152SN/A 432139SN/Aclean: 442139SN/A @rm -f m5tap *.o *.d *~ .#* 452139SN/A 464781Snate@binkert.org.PHONY: clean 474781Snate@binkert.org 487799Sgblack@eecs.umich.edu# C++ Compilation 494781Snate@binkert.org%.o: %.cc 504781Snate@binkert.org @echo '$(CXX) $(CCFLAGS) -c $(notdir $<) -o $@' 513170Sstever@eecs.umich.edu @$(CXX) $(CCFLAGS) -c $< -o $@ 525664Sgblack@eecs.umich.edu 538105Sgblack@eecs.umich.edu# C Compilation 546179Sksewell@umich.edu%.o: %.c 554781Snate@binkert.org @echo '$(CC) $(CCFLAGS) -c $(notdir $<) -o $@' 564781Snate@binkert.org @$(CC) $(CCFLAGS) -c $< -o $@ 576329Sgblack@eecs.umich.edu 584781Snate@binkert.org-include *.d 594781Snate@binkert.org