8 LIBSRC
=..
/lib
/jsoncpp
/jsoncpp.
cpp
9 LIBOBJ
=$(LIBSRC
:%.
cpp=%.o
)
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
)\"
19 $(BIN_OUT_NAME
): $(OBJ
) $(LIBOBJ
)
20 $(CXX
) $(CXXFLAGS
) -o
$(BIN_OUT_NAME
) $(LIBS
) $(LIBOBJ
) $(OBJ
)
29 debug
: CXXFLAGS
+= -g
-DDEBUG
30 debug
: $(BIN_OUT_NAME
)
32 optimized
: CXXFLAGS
+= -O3
33 optimized
: $(BIN_OUT_NAME
)
35 -include $(OBJ
:%.o
=%.d
)