aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-12-27 19:43:14 +0000
committerbloodstalker <thabogre@gmail.com>2017-12-27 19:43:14 +0000
commitad3d03c116d948b739c48936b3aa112083cfeb01 (patch)
tree51023a369f61248f5222d94b984afb30a077a7a0 /makefile
parentInitial commit (diff)
downloadmemdump-ad3d03c116d948b739c48936b3aa112083cfeb01.tar.gz
memdump-ad3d03c116d948b739c48936b3aa112083cfeb01.zip
wip
Diffstat (limited to 'makefile')
-rw-r--r--makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..b6f6f40
--- /dev/null
+++ b/makefile
@@ -0,0 +1,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."