From cf96cb370b3af5f11d8add5c468ec686457b9762 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 29 Jan 2019 19:23:33 +0000 Subject: Update submodules I promise it works this time --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 14ed0a3..62fd1cc 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ CXX = g++ -CXXFLAGS = -ggdb3 -O0 -Wpedantic -Wall -Werror #-DNOTHREAD +CXXFLAGS = -ggdb3 -O0 -Wpedantic -Wall -Werror OUTPUT_OPTION = -MMD -MP -o $@ LINK.o = $(LINK.cc) -LDFLAGS = -Lsolvitaire -Lthpool -Ldocopt -Ljsmn +LDFLAGS = -Lthpool -Ldocopt -Ljsmn -Lsolvitaire LDLIBS = -lpthread -lsol -lthpool -ldocopt -ljsmn TRGT = centre @@ -11,12 +11,20 @@ SRC = metasol.cpp centre.cpp OBJ = $(SRC:.cpp=.o) DEP = $(SRC:.cpp=.d) -.PHONY: default all run +.PHONY: default all run init-submodules default: all all: $(TRGT) $(TRGT): $(OBJ) +init-submodules: + git submodule init + git submodule update + $(MAKE) -C thpool + $(MAKE) -C jsmn + (cd docopt; cmake .; make docopt_s) + (cd solvitaire; sh build.sh) + run: $(TRGT) ./$< -- cgit v1.2.1