aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 8add398..14ed0a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
-LINK.o = $(LINK.cc)
-CXXFLAGS = -ggdb3 -Og -pedantic -Wall -Werror #-DNOTHREAD
-LDFLAGS = -ggdb3 -Og -Lsolvitaire #-DNOTHREAD
-
+CXX = g++
+CXXFLAGS = -ggdb3 -O0 -Wpedantic -Wall -Werror #-DNOTHREAD
OUTPUT_OPTION = -MMD -MP -o $@
-LDLIBS = -lsol -lpthread
+
+LINK.o = $(LINK.cc)
+LDFLAGS = -Lsolvitaire -Lthpool -Ldocopt -Ljsmn
+LDLIBS = -lpthread -lsol -lthpool -ldocopt -ljsmn
TRGT = centre
-SRC = metasol.cpp centre.cpp thpool/thpool.c
-OBJ = metasol.o centre.o thpool/thpool.o
-DEP = metasol.d centre.d thpool/thpool.d
+SRC = metasol.cpp centre.cpp
+OBJ = $(SRC:.cpp=.o)
+DEP = $(SRC:.cpp=.d)
.PHONY: default all run