fbgrab-proper_makefile.patch 651 B

1234567891011121314151617181920212223
  1. [PATCH] fbgrab: A proper Makefile for cross compiling
  2. Respect to the CC, CFLAGS and LDFLAGS is required for cross compiling in
  3. Buildroot. And there's no need to run the source through splint.
  4. Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
  5. --- fbgrab-1.0.orig/Makefile 2010-12-07 22:57:24.000000000 +0100
  6. +++ fbgrab-1.0/Makefile 2010-12-07 22:58:36.000000000 +0100
  7. @@ -3,9 +3,10 @@
  8. ### modular. So this is a simple gnu Makefile...
  9. ###
  10. -fbgrab: fbgrab.c
  11. - splint +posixlib fbgrab.c
  12. - gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab
  13. +LDFLAGS += -lpng -lz
  14. +
  15. +fbgrab: fbgrab.o
  16. + $(CC) $(LDFLAGS) fbgrab.o -o $@
  17. install:
  18. strip fbgrab