lkml.org 
[lkml]   [2010]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectlatencytop: adapt the Makefile for cross-compilation
Date
From: Remy Bohmer <linux@bohmer.net>

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Arjan van de Ven <arjan@linux.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

\
 
 \ /
  Last update: 2010-06-03 14:47    [W:0.069 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site