diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-12-31 12:05:04 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-12-31 12:05:04 +0100 |
commit | b9e6d07e9ca9c4c6fb758e6886f43684948d70a7 (patch) | |
tree | f94bb5dcdc431a031ffde34d7307f10e86280547 /icemulti/Makefile | |
parent | 2d03b61380c3fec5f6d5b744c588eb76957db138 (diff) | |
download | icestorm-b9e6d07e9ca9c4c6fb758e6886f43684948d70a7.tar.gz icestorm-b9e6d07e9ca9c4c6fb758e6886f43684948d70a7.tar.bz2 icestorm-b9e6d07e9ca9c4c6fb758e6886f43684948d70a7.zip |
Added config.mk, correct DESTDIR/PREFIX usage
Diffstat (limited to 'icemulti/Makefile')
-rw-r--r-- | icemulti/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/icemulti/Makefile b/icemulti/Makefile index f195e61..387549d 100644 --- a/icemulti/Makefile +++ b/icemulti/Makefile @@ -1,19 +1,17 @@ -# CXX = clang -CXX ?= clang +include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -CC = $(CXX) -DESTDIR = /usr/local all: icemulti icemulti: icemulti.o install: all - cp icemulti $(DESTDIR)/bin/icemulti + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp icemulti $(DESTDIR)$(PREFIX)/bin/icemulti uninstall: - rm -f $(DESTDIR)/bin/icemulti + rm -f $(DESTDIR)$(PREFIX)/bin/icemulti clean: rm -f icemulti |