aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-07-17 00:50:50 +0100
committerzedarider <ymherklotz@gmail.com>2016-07-17 00:50:50 +0100
commit779e60e7cadf4cb54efd1135045cbf34396e0896 (patch)
treeac263ad1b40c827e2cd2008c639c55941224ff2f
parent2c033bbf92832cf4c27e914ce06f4bb696f6b365 (diff)
downloadCardeval-779e60e7cadf4cb54efd1135045cbf34396e0896.tar.gz
Cardeval-779e60e7cadf4cb54efd1135045cbf34396e0896.zip
fixed .gitignore
-rw-r--r--.gitignore4
-rw-r--r--Makefile3
2 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index b34fef1..834160d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-./bin
-./build
+./build/
+./bin/
diff --git a/Makefile b/Makefile
index 408960d..ad43cd8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ CC := g++ # this is the main compiler
# CC := clange --analyze # and comment out the linker last line
SRCDIR := src
BUILDDIR := build
+TARGETDIR := bin
TARGET := bin/CardEval
SRCEXT := cpp
@@ -13,9 +14,11 @@ INC := -I include
$(TARGET): $(OBJECTS)
@echo " Linking..."
+ @mkdir -p $(TARGETDIR)
@echo " $(CC) $^ -o $(TARGET) $(LIB)"; $(CC) $^ -o $(TARGET) $(LIB)
$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT)
+ @echo " Building..."
@mkdir -p $(BUILDDIR)
@echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $<