Talustus | 3019a91 | 2013-04-06 11:50:07 +0200 | [diff] [blame] | 1 | # NDK |
| 2 | CC := arm-linux-androideabi-gcc |
| 3 | CFLAGS += -g -static -DANDROID |
| 4 | LDFLAGS += -lpng -lz -lm |
| 5 | |
| 6 | ALL: fb2png adb_screenshoot |
| 7 | |
| 8 | fb2png: main.o fb.o img_process.o fb2png.o |
| 9 | $(CC) $(CFLAGS) main.o fb.o img_process.o fb2png.o -o fb2png $(LDFLAGS) |
| 10 | # $(CC) $(CFLAGS) main.o fb.o img_process.o fb2png.o -o fb2png |
| 11 | |
| 12 | adb_screenshoot: adb_screenshoot.o fb.o img_process.o |
| 13 | $(CC) $(CFLAGS) adb_screenshoot.o fb.o img_process.o -o adb_screenshoot $(LDFLAGS) |
| 14 | |
| 15 | clean: |
| 16 | rm -f *.o |
| 17 | rm -f fb2png adb_screenshoot |