aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-07-20 15:52:52 +0200
committerzedarider <ymherklotz@gmail.com>2016-07-20 15:52:52 +0200
commitb0040d9d0578085576a8793d49a99c228f9d8e07 (patch)
tree120434a561106ec01e2a9e4f18b3e478c7ca1fb1 /Makefile
parent647c9aa28cd751360f14c6925cd160beea7f4b8a (diff)
downloadCardeval-b0040d9d0578085576a8793d49a99c228f9d8e07.tar.gz
Cardeval-b0040d9d0578085576a8793d49a99c228f9d8e07.zip
cardeval class added with tinyxml2 support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ad43cd8..b1386f5 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,20 @@ TARGET := bin/CardEval
SRCEXT := cpp
SOURCES := $(shell find $(SRCDIR) -type f -name "*.$(SRCEXT)")
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o))
-CFLAGS := -g # -Wall
-LIB :=
-INC := -I include
+CFLAGS := -g -std=c++14 # -Wall
+LIBDIR := -L/usr/local/lib64/
+LIB := -ltinyxml2
+INC := -Iinclude/
$(TARGET): $(OBJECTS)
@echo " Linking..."
@mkdir -p $(TARGETDIR)
- @echo " $(CC) $^ -o $(TARGET) $(LIB)"; $(CC) $^ -o $(TARGET) $(LIB)
+ @echo " $(CC) $^ -o $(TARGET) $(LIBDIR) $(LIB)"; $(CC) $^ -o $(TARGET) $(LIBDIR) $(LIB)
$(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT)
@echo " Building..."
@mkdir -p $(BUILDDIR)
- @echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $<
+ @echo " $(CC) $< $(CFLAGS) $(INC) -c -o $@"; $(CC) $< $(CFLAGS) $(INC) -c -o $@
clean:
@echo " Cleaning..."