From fa6a6f7a47d8830ca1ce361c992f66fb1bdbe1fd Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Fri, 16 Sep 2016 16:36:35 +0300 Subject: [PATCH] placer/Makefile: make it more readable ... declarative. --- experiments/placer/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/experiments/placer/Makefile b/experiments/placer/Makefile index 681bf6c346f..d39cf009995 100644 --- a/experiments/placer/Makefile +++ b/experiments/placer/Makefile @@ -1,16 +1,13 @@ -CXX = g++ CXXFLAGS = -std=c++11 -g2 -Wall -Werror +CC=$(CXX) #change linker to c++ all: placer run: placer ./placer - clean: - rm -f *.o placer + $(RM) *.o placer -placer: placer.o - $(CXX) $(CXXFLAGS) -o $@ $< +placer:placer.o -placer.o: placer.cc - $(CXX) $(CXXFLAGS) -c $< +.PHONY: all run clean