From b9e6d07e9ca9c4c6fb758e6886f43684948d70a7 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 31 Dec 2015 12:05:04 +0100 Subject: Added config.mk, correct DESTDIR/PREFIX usage --- icetime/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'icetime') diff --git a/icetime/Makefile b/icetime/Makefile index c7f0c14..c98f40b 100644 --- a/icetime/Makefile +++ b/icetime/Makefile @@ -1,18 +1,17 @@ -# CXX = clang +include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include -CC = $(CXX) -DESTDIR = /usr/local all: icetime icetime: icetime.o install: all - cp icetime $(DESTDIR)/bin/icetime + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp icetime $(DESTDIR)$(PREFIX)/bin/icetime uninstall: - rm -f $(DESTDIR)/bin/icetime + rm -f $(DESTDIR)$(PREFIX)/bin/icetime # View timing netlist: -- cgit v1.2.3