From 682a524a53de2dc4e70c27ddf7f166bf5f36727e Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 24 Mar 2018 17:40:53 +0430 Subject: update --- makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'makefile') 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: -- cgit v1.2.3