Why the f*ck is missing return not an error by default?
[dueringa_WikiWalker.git] / src / Makefile
blob170fe90524eed4609b85f367dd77f22316cbeaf8
1 .PHONY: clean
3 BIN_OUT_NAME=walker
5 SRC=$(wildcard *.cpp)
6 OBJ=$(SRC:%.cpp=%.o)
8 LIBSRC=../lib/jsoncpp/jsoncpp.cpp
9 LIBOBJ=$(LIBSRC:%.cpp=%.o)
11 LIBS+=-lcurl
12 GIT_VERSION:=$(shell git describe --always --dirty --tags)
13 CXXFLAGS+=-MMD -Wall -Wextra -Wshadow -std=c++11 -I../lib/jsoncpp/ -Werror=return-type
15 ifneq ($(GIT_VERSION), )
16 CXXFLAGS+=-D _WW_VERSION=\"$(GIT_VERSION)\"
17 endif
19 $(BIN_OUT_NAME): $(OBJ) $(LIBOBJ)
20 $(CXX) $(CXXFLAGS) -o $(BIN_OUT_NAME) $(LIBS) $(LIBOBJ) $(OBJ)
22 clean:
23 rm -f $(OBJ) *.d
24 rm -f $(BIN_OUT_NAME)
26 distclean: clean
27 rm -f $(LIBOBJ)
29 debug: CXXFLAGS += -g
30 debug: $(BIN_OUT_NAME)
32 optimized: CXXFLAGS += -O3
33 optimized: $(BIN_OUT_NAME)
35 -include $(OBJ:%.o=%.d)