aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-12-27 22:45:07 +0000
committerbloodstalker <thabogre@gmail.com>2017-12-27 22:45:07 +0000
commitc1a18fdf2e0ce8dcdc8c2868ec4ce81b6c1b833e (patch)
tree8175cbc055981a88712db4ece63fc2af46e1ff6b
parentwip (diff)
downloadmemdump-c1a18fdf2e0ce8dcdc8c2868ec4ce81b6c1b833e.tar.gz
memdump-c1a18fdf2e0ce8dcdc8c2868ec4ce81b6c1b833e.zip
wip
Diffstat (limited to '')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index b6f6f40..9d04274 100644
--- a/makefile
+++ b/makefile
@@ -7,9 +7,13 @@ CC_FLAGS+=$(CC_EXTRA)
.DEFAULT:all clean
-.PHONY:all clean $(TARGET) help
+.PHONY:all clean $(TARGET) help dirs
-all:$(TARGET)
+all: dirs $(TARGET)
+
+dirs:
+ if [[ ! -d obj ]]; then mkdir obj;fi
+ if [[ ! -d libs ]]; then mkdir libs;fi
.c.o:
$(CC) $(CC_FLAGS) -c $< -o $@