aboutsummaryrefslogtreecommitdiffstats
path: root/iceprog
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-12-15 15:01:58 +0100
committerClifford Wolf <clifford@clifford.at>2015-12-15 15:01:58 +0100
commitda99818b81117ea62fc25fbbdae1b1ae56eab8c5 (patch)
treef799448398f3431f30678f6d5b165e60709e679c /iceprog
parentf7cb6e8e07c9b314e5052c4b0416db422dbdeb7b (diff)
downloadicestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.tar.gz
icestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.tar.bz2
icestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.zip
Added mxe-based win32 build
Diffstat (limited to 'iceprog')
-rw-r--r--iceprog/Makefile5
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