From db95ccffe96b546ffbb076ec885f01d612660356 Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Thu, 3 Dec 2020 16:45:59 +0000 Subject: [PATCH] util: m5term, fix LDFLAGS, standard make variables Enables build systems to provide necessary flags to build m5term. Useful specially if a different linker is intended to be used. Change-Id: If7f867cc0965d6ad4627b5421e00a99cc3d64989 Signed-off-by: Adrian Herrera Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38256 Reviewed-by: Gabe Black Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Maintainer: Jason Lowe-Power Tested-by: kokoro --- util/term/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/term/Makefile b/util/term/Makefile index 658b96186..4aa1c52ee 100644 --- a/util/term/Makefile +++ b/util/term/Makefile @@ -24,12 +24,12 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -CCFLAGS= -g -O0 +CFLAGS ?= -g -O0 default: m5term m5term: term.c - $(CC) $(LFLAGS) -o $@ $^ + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) install: m5term $(SUDO) install -o root -m 555 m5term /usr/local/bin -- 2.30.2