Revert mysql library implementation
[link.git] / Makefile
blob442374c6148d03fa3121ac44dd8828af0e627833
1 rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
3 CPPSourceCode = $(call rwildcard,Source,*.cpp)
4 Objects = $(patsubst Source/%.cpp, Build/%.o, $(CPPSourceCode))
5 Directories = $(wildcard Source/*)
7 Build/%.o: Source/%.cpp
8 @mkdir -p $(@D)
9 @rm -r Build/*
10 @g++ -c $^ -std=c++2a -pthread -o $@
12 Link: $(Objects)
13 @g++ $(Objects) -std=c++2a -lmysqlcppconn -pthread -o Link
15 run:
16 @./Link