sdn/Makefile

13 lines
366 B
Makefile
Raw Normal View History

2017-06-29 02:50:39 +02:00
SHELL = /bin/sh
CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic -static-libstdc++
all: sdn
%: %.cpp CMakeLists.txt
2017-07-14 21:49:32 +02:00
$(CXX) $(CXXFLAGS) $< -o $@ `pkg-config --libs --cflags ncursesw` -lacl \
2017-06-29 02:50:39 +02:00
`sed -ne 's/^project (\([^ )]*\).*/-DPROJECT_NAME="\1"/p' \
-e 's/^set (version \([^ )]*\).*/-DPROJECT_VERSION="\1"/p' CMakeLists.txt`
clean:
rm -f sdn
.PHONY: all clean