summaryrefslogtreecommitdiffstats
path: root/package/fbgrab/fbgrab-proper_makefile.patch
blob: e907ed7d863e74c3ffe7fe95ea2769dd08358b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[PATCH] fbgrab: A proper Makefile for cross compiling

Respect to the CC, CFLAGS and LDFLAGS is required for cross compiling in
Buildroot. And there's no need to run the source through splint.

Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>

--- fbgrab-1.0.orig/Makefile	2010-12-07 22:57:24.000000000 +0100
+++ fbgrab-1.0/Makefile	2010-12-07 22:58:36.000000000 +0100
@@ -3,9 +3,10 @@
 ### modular. So this is a simple gnu Makefile...
 ###
 
-fbgrab: fbgrab.c
-	splint +posixlib fbgrab.c
-	gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab
+LDFLAGS += -lpng -lz
+
+fbgrab: fbgrab.o
+	$(CC) $(LDFLAGS) fbgrab.o -o $@
 
 install:
 	strip fbgrab