Initial commit

This commit is contained in:
2017-06-29 02:50:39 +02:00
commit a55fc17f31
5 changed files with 592 additions and 0 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
SHELL = /bin/sh
CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic -static-libstdc++
all: sdn
%: %.cpp CMakeLists.txt
$(CXX) $(CXXFLAGS) $< -o $@ `pkg-config --libs --cflags ncursesw` \
`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