aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-03-24 13:10:53 +0000
committerbloodstalker <thabogre@gmail.com>2018-03-24 13:10:53 +0000
commit682a524a53de2dc4e70c27ddf7f166bf5f36727e (patch)
treed1314466bec2e5c0d6537509486c6e6369683f43 /makefile
parentadded todo (diff)
downloadmemdump-682a524a53de2dc4e70c27ddf7f166bf5f36727e.tar.gz
memdump-682a524a53de2dc4e70c27ddf7f166bf5f36727e.zip
Diffstat (limited to '')
-rw-r--r--makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/makefile b/makefile
index 9d04274..814a88c 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-TARGET=main
+TARGET=ramdump
CC=clang
CC?=clang
CC_FLAGS=
@@ -7,13 +7,9 @@ CC_FLAGS+=$(CC_EXTRA)
.DEFAULT:all clean
-.PHONY:all clean $(TARGET) help dirs
+.PHONY:all clean help dirs
-all: dirs $(TARGET)
-
-dirs:
- if [[ ! -d obj ]]; then mkdir obj;fi
- if [[ ! -d libs ]]; then mkdir libs;fi
+all: $(TARGET)
.c.o:
$(CC) $(CC_FLAGS) -c $< -o $@
@@ -22,7 +18,7 @@ android:
export NDK_PROJECT_PATH=`pwd`
ndk-build
-$(TARGET): main.o
+$(TARGET): $(TARGET).o
$(CC) $^ $(LD_FLAGS) -o $@
clean: