From 7a6183aa6162419912daa5647d13f030ab0904e2 Mon Sep 17 00:00:00 2001 From: Kevin Brodsky Date: Tue, 18 Sep 2018 15:20:04 +0100 Subject: util: Do not use $(PWD) in Makefiles 644e8cdf5ee7 ("util: Move the m5ops.h file to a shared directory") added include/ to the include path for m5 Makefiles, based on $(PWD): $(PWD)/../../include. Unfortunately, this breaks when using `make -C `, as -C does not move PWD accordingly. The fix is simply to remove $(PWD), as a relative path is just fine here. Change-Id: Ia046c29761363b6670e52c52a604c7e70a6a305a Signed-off-by: Kevin Brodsky Signed-off-by: Ciro Santilli Reviewed-by: Ciro Santilli Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/12844 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- util/m5/Makefile.sparc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/m5/Makefile.sparc') diff --git a/util/m5/Makefile.sparc b/util/m5/Makefile.sparc index e1b17ea2c..87c3d1532 100644 --- a/util/m5/Makefile.sparc +++ b/util/m5/Makefile.sparc @@ -35,7 +35,7 @@ CC=$(CROSS_COMPILE)gcc AS=$(CROSS_COMPILE)as LD=$(CROSS_COMPILE)ld -CFLAGS=-O2 -m64 -I$(PWD)/../../include +CFLAGS=-O2 -m64 -I../../include OBJS=m5.o m5op_sparc.o m5_mmap.o all: m5 -- cgit v1.2.3