Directory navigator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 366B

123456789101112
  1. SHELL = /bin/sh
  2. CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic -static-libstdc++
  3. all: sdn
  4. %: %.cpp CMakeLists.txt
  5. $(CXX) $(CXXFLAGS) $< -o $@ `pkg-config --libs --cflags ncursesw` -lacl \
  6. `sed -ne 's/^project (\([^ )]*\).*/-DPROJECT_NAME="\1"/p' \
  7. -e 's/^set (version \([^ )]*\).*/-DPROJECT_VERSION="\1"/p' CMakeLists.txt`
  8. clean:
  9. rm -f sdn
  10. .PHONY: all clean