parent
fdb338fe12
commit
e7da32160c
4
Makefile
4
Makefile
|
@ -1,8 +1,8 @@
|
||||||
.POSIX:
|
.POSIX:
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic
|
CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic
|
||||||
CPPFLAGS = `sed -ne 's/^project (\([^ )]*\).*/-DPROJECT_NAME="\1"/p' \
|
CPPFLAGS = `sed -ne '/^project (\([^ )]*\) VERSION \([^ )]*\).*/ \
|
||||||
-e 's/^set (version \([^ )]*\).*/-DPROJECT_VERSION="\1"/p' CMakeLists.txt`
|
s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt`
|
||||||
|
|
||||||
sdn: sdn.cpp CMakeLists.txt
|
sdn: sdn.cpp CMakeLists.txt
|
||||||
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o sdn \
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o sdn \
|
||||||
|
|
Loading…
Reference in New Issue