diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-19 09:26:56 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-07-19 09:28:50 +0200 |
commit | 4ef7c9edf7e37c41712520a1b4acf3b490094629 (patch) | |
tree | 46ac8ef369f6e4c17b72639b4f68b60343bea3f8 /Makefile | |
parent | 3eea106c3c856b1f75823df4b51e3fb152014086 (diff) | |
download | sdn-4ef7c9edf7e37c41712520a1b4acf3b490094629.tar.gz sdn-4ef7c9edf7e37c41712520a1b4acf3b490094629.tar.xz sdn-4ef7c9edf7e37c41712520a1b4acf3b490094629.zip |
Makefile: make the static build a non-phony target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5,15 +5,15 @@ CPPFLAGS = `sed -ne '/^project (\([^ )]*\) VERSION \([^ )]*\).*/ \ s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt` sdn: sdn.cpp CMakeLists.txt - $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o sdn \ + $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o $@ \ -lacl `pkg-config --libs --cflags ncursesw` -static: sdn.cpp CMakeLists.txt - $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o sdn \ +sdn-static: sdn.cpp CMakeLists.txt + $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o $@ \ -static-libstdc++ \ -Wl,--start-group,-Bstatic \ -lacl `pkg-config --static --libs --cflags ncursesw` \ -Wl,--end-group,-Bdynamic clean: - rm -f sdn + rm -f sdn sdn-static -.PHONY: static clean +.PHONY: clean |