aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2017-01-13 21:47:33 +0000
committerzedarider <ymherklotz@gmail.com>2017-01-13 21:47:33 +0000
commit7a6ae9cafb6a58437bf1c2ba030ef39985ce831b (patch)
tree66431f7fa1168e1a9ee537cfbb208e7488e1a75f /Makefile
parent2019cf6f752470da8be0da82683fe0f9a409039f (diff)
downloadChessAI-7a6ae9cafb6a58437bf1c2ba030ef39985ce831b.tar.gz
ChessAI-7a6ae9cafb6a58437bf1c2ba030ef39985ce831b.zip
adding changed name of makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 0 insertions, 36 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index abbaa71..0000000
--- a/Makefile
+++ /dev/null
@@ -1,36 +0,0 @@
-CC := g++ # this is the main compiler
-# CC := clange --analyze # and comment out the linker last line
-SRCDIR := src
-BUILDDIR := build
-TARGETDIR := bin
-TARGET := main
-
-SRCEXT := cpp
-SOURCES := $(shell find $(SRCDIR) -type f -name "*.$(SRCEXT)")
-OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o))
-CFLAGS := -g -Wall -Wextra -Wpedantic -std=c++14
-LIB :=
-INC := -I include
-
-$(TARGETDIR)/$(TARGET): $(OBJECTS)
- @echo " Linking..."
- @mkdir -p $(TARGETDIR)
- @echo " $(CC) $^ -o $(TARGETDIR)/$(TARGET) $(LIB)"; $(CC) $^ -o $(TARGETDIR)/$(TARGET) $(LIB)
-
-$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT)
- @mkdir -p $(BUILDDIR)
- @echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $<
-
-clean:
- @echo " Cleaning..."
- @echo " $(RM) -r $(BUILDDIR) $(TARGETDIR)/$(TARGET)"; $(RM) -r $(BUILDDIR) $(TARGETDIR)/$(TARGET)
-
-# Tests
-tester:
- @echo " $(CC) $(CFLAGS) test/tester.cpp $(INC) $(LIB) -o bin/tester"; $(CC) $(CFLAGS) test/tester.cpp $(INC) $(LIB) -o bin/tester
-
-# Spikes
-ticket:
- @echo " $(CC) $(CFLAGS) spikes/ticket.cpp $(INC) $(LIB) -o bin/ticket"; $(CC) $(CFLAGS) spikes/ticket.cpp $(INC) $(LIB) -o bin/ticket
-
-.PHONY: clean