-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
35 lines (26 loc) · 782 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## NDK ##
#CC := arm-linux-androideabi-gcc
#STRIP := arm-linux-androideabi-strip
#WFLAGS += -Wall -Wextra -Wno-write-strings
#CFLAGS += $(WFLAGS) -O2 -static -DANDROID
#LDFLAGS += -lpng -lz -lm
#
# Path to toolchain
#PATH := /root/Desktop/build_cm10/ndk_toolchain/bin:$(PATH)
## gcc ##
CC := gcc
STRIP := strip
CFLAGS += -g
LDFLAGS += -lpng
OBJECTS += fb2png adb_screenshoot
ALL: $(OBJECTS)
fb2png: main.o fb.o img_process.o fb2png.o
$(CC) $(CFLAGS) main.o fb.o img_process.o fb2png.o -o fb2png $(LDFLAGS)
adb_screenshoot: adb_screenshoot.o fb.o img_process.o
$(CC) $(CFLAGS) adb_screenshoot.o fb.o img_process.o -o adb_screenshoot $(LDFLAGS)
strip:
$(STRIP) --strip-unneeded $(OBJECTS)
$(STRIP) --strip-debug $(OBJECTS)
clean:
rm -f *.o
rm -f fb2png adb_screenshoot