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 --- iceprog/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iceprog/Makefile') diff --git a/iceprog/Makefile b/iceprog/Makefile index 578a3e3..4ffb9a5 100644 --- a/iceprog/Makefile +++ b/iceprog/Makefile @@ -1,8 +1,7 @@ -# CC = clang +include ../config.mk LDLIBS = -L/usr/local/lib -lftdi -lm CFLAGS = -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include MXEGCC = /usr/local/src/mxe/usr/bin/i686-pc-mingw32-gcc -DESTDIR = /usr/local all: iceprog @@ -12,10 +11,11 @@ iceprog.exe: iceprog.c $(MXEGCC) -std=c99 -o iceprog.exe -Os iceprog.c -lftdi -lusb -lm install: all - cp iceprog $(DESTDIR)/bin/iceprog + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp iceprog $(DESTDIR)$(PREFIX)/bin/iceprog uninstall: - rm -f $(DESTDIR)/bin/iceprog + rm -f $(DESTDIR)$(PREFIX)/bin/iceprog clean: rm -f iceprog -- cgit v1.2.3