aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
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: