From 4ef7c9edf7e37c41712520a1b4acf3b490094629 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 19 Jul 2021 09:26:56 +0200 Subject: Makefile: make the static build a non-phony target --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 57ff1bb..0468a72 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-70-g09d2