diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-24 13:10:53 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-24 13:10:53 +0000 |
commit | 682a524a53de2dc4e70c27ddf7f166bf5f36727e (patch) | |
tree | d1314466bec2e5c0d6537509486c6e6369683f43 /makefile | |
parent | added todo (diff) | |
download | memdump-master.tar.gz memdump-master.zip |
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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: |