diff options
Diffstat (limited to 'iceprog')
-rw-r--r-- | iceprog/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iceprog/Makefile b/iceprog/Makefile index a32f2b7..578a3e3 100644 --- a/iceprog/Makefile +++ b/iceprog/Makefile @@ -1,12 +1,16 @@ # CC = clang 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 iceprog: iceprog.o +iceprog.exe: iceprog.c + $(MXEGCC) -std=c99 -o iceprog.exe -Os iceprog.c -lftdi -lusb -lm + install: all cp iceprog $(DESTDIR)/bin/iceprog @@ -15,6 +19,7 @@ uninstall: clean: rm -f iceprog + rm -f iceprog.exe rm -f *.o *.d -include *.d |