blob: b6f6f403c906ce100c4bf21ea37872f279b9b70c (
plain) (
blame)
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
|
TARGET=main
CC=clang
CC?=clang
CC_FLAGS=
CC_EXTRA?=
CC_FLAGS+=$(CC_EXTRA)
.DEFAULT:all clean
.PHONY:all clean $(TARGET) help
all:$(TARGET)
.c.o:
$(CC) $(CC_FLAGS) -c $< -o $@
android:
export NDK_PROJECT_PATH=`pwd`
ndk-build
$(TARGET): main.o
$(CC) $^ $(LD_FLAGS) -o $@
clean:
rm -f *.o *~ $(TARGET)
help:
@echo "all is the default target"
@echo "there is delete."
@echo "there is clean."
|