From 3019a9172b36b9e2033d92dccdb8ff8e2282da7c Mon Sep 17 00:00:00 2001 From: Talustus Date: Sat, 6 Apr 2013 11:50:07 +0200 Subject: FB2PNG: Add fb2png source to TWRP * Add Source of fb2png to TWRP tree * Android.mk by PhilZ-cwm6 * Makefile for CrossCompiling via external toolchan by me (Talustus) Change-Id: If9680688df6e4c9c567f74f46dfc303566b868ba --- fb2png/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 fb2png/Makefile (limited to 'fb2png/Makefile') diff --git a/fb2png/Makefile b/fb2png/Makefile new file mode 100644 index 000000000..5ee843c3f --- /dev/null +++ b/fb2png/Makefile @@ -0,0 +1,17 @@ +# NDK +CC := arm-linux-androideabi-gcc +CFLAGS += -g -static -DANDROID +LDFLAGS += -lpng -lz -lm + +ALL: fb2png adb_screenshoot + +fb2png: main.o fb.o img_process.o fb2png.o + $(CC) $(CFLAGS) main.o fb.o img_process.o fb2png.o -o fb2png $(LDFLAGS) + # $(CC) $(CFLAGS) main.o fb.o img_process.o fb2png.o -o fb2png + +adb_screenshoot: adb_screenshoot.o fb.o img_process.o + $(CC) $(CFLAGS) adb_screenshoot.o fb.o img_process.o -o adb_screenshoot $(LDFLAGS) + +clean: + rm -f *.o + rm -f fb2png adb_screenshoot -- cgit v1.2.3