Makefile (1760:48ebe25cedc8) Makefile (12053:014d6270849b)
1# Copyright (c) 2003, 2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 15 unchanged lines hidden (view full) ---

24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Nathan Binkert
28
29CC= gcc
30CXX= g++
31
1# Copyright (c) 2003, 2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 15 unchanged lines hidden (view full) ---

24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Nathan Binkert
28
29CC= gcc
30CXX= g++
31
32CURDIR?= $(shell /bin/pwd)
33SRCDIR?= .
34M5_SRCDIR?= $(SRCDIR)/../..
32INCLDIRS= -iquote . -I /usr/local/include
33CCFLAGS= -g -MMD $(INCLDIRS)
35
34
36vpath % $(M5_SRCDIR)/base
37vpath % $(M5_SRCDIR)/sim
38
39INCLDIRS= -I. -I$(M5_SRCDIR) -I- -I/usr/local/include
40CCFLAGS= -g -O0 -MMD $(INCLDIRS)
41
42default: m5tap
43
35default: m5tap
36
44m5tap: tap.o cprintf.o
45 $(CXX) $(LFLAGS) -o $@ $^ -lpcap -L/usr/local/lib -ldnet
37m5tap: tap.o
38 $(CXX) $(LFLAGS) -o $@ $^ -lpcap
46
47install: m5tap
48 $(SUDO) install -o root -m 555 m5tap /usr/local/bin
49
50clean:
51 @rm -f m5tap *.o *.d *~ .#*
52
53.PHONY: clean

--- 12 unchanged lines hidden ---
39
40install: m5tap
41 $(SUDO) install -o root -m 555 m5tap /usr/local/bin
42
43clean:
44 @rm -f m5tap *.o *.d *~ .#*
45
46.PHONY: clean

--- 12 unchanged lines hidden ---