[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1275569072-13046-1-git-send-email-w.sang@pengutronix.de>
Date: Thu, 3 Jun 2010 14:44:32 +0200
From: Wolfram Sang <w.sang@...gutronix.de>
To: linux-kernel@...r.kernel.org
Cc: Remy Bohmer <linux@...mer.net>,
Wolfram Sang <w.sang@...gutronix.de>,
Arjan van de Ven <arjan@...ux.intel.com>
Subject: latencytop: adapt the Makefile for cross-compilation
From: Remy Bohmer <linux@...mer.net>
Signed-off-by: Remy Bohmer <linux@...mer.net>
Signed-off-by: Wolfram Sang <w.sang@...gutronix.de>
Cc: Arjan van de Ven <arjan@...ux.intel.com>
---
We carry this patch in our build-system for embedded devices 'ptxdist'.
I thought it might be worth picking up...
Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: latencytop-0.5/Makefile
===================================================================
--- latencytop-0.5.orig/Makefile
+++ latencytop-0.5/Makefile
@@ -26,14 +26,16 @@ endif
# We write explicity this "implicit rule"
%.o : %.c
- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) $< -o $@
latencytop: $(OBJS) latencytop.h Makefile
- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDF) -o latencytop
+.PHONY: clean
clean:
rm -f *~ latencytop DEADJOE *.o
+.PHONY: install
install: latencytop
mkdir -p $(DESTDIR)/usr/share/latencytop
install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists