From da99818b81117ea62fc25fbbdae1b1ae56eab8c5 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 15 Dec 2015 15:01:58 +0100 Subject: Added mxe-based win32 build --- iceprog/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iceprog/Makefile') 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 -- cgit v1.2.3