From 779e60e7cadf4cb54efd1135045cbf34396e0896 Mon Sep 17 00:00:00 2001 From: zedarider Date: Sun, 17 Jul 2016 00:50:50 +0100 Subject: fixed .gitignore --- .gitignore | 4 ++-- Makefile | 3 +++ 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 $@ $< -- cgit