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 /iceprog/Makefile | |
parent | 2d03b61380c3fec5f6d5b744c588eb76957db138 (diff) |
Added config.mk, correct DESTDIR/PREFIX usage
Diffstat (limited to 'iceprog/Makefile')
-rw-r--r-- | iceprog/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
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 |