diff options
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 |
