X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FMakefile;h=1787c7b69bce0192e28fb9ba7a144bf5571c99bd;hp=27933cb55dcc3d317dd4923879531ccd81f8b321;hb=f15cabc15a42fb1b0b57e433dc3a1f300cff2b6c;hpb=c28cce5afcc1e1747f51e5afe15e338dae030376 diff --git a/client/Makefile b/client/Makefile index 27933cb..1787c7b 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,8 +1,86 @@ - +#This is a py2exe Makefile for the Windows port, which is only +#maintained when Travis gets stuck doing MSP430 manufacturing. link: - rm -f /usr/local/bin/goodfet.* + rm -f /usr/local/bin/goodfet.* /usr/local/bin/goodfet rm -rf *~ - ln -s `pwd`/goodfet.* /usr/local/bin/ + mkdir -p /usr/local/bin + ln -s `pwd`/goodfet `pwd`/goodfet.* /usr/local/bin/ install: - #Try 'make link' instead. + echo "Try 'make link' instead." + +py2exepub: +#publish the windows build. + rsync --exclude .svn -ave ssh --progress --chmod=a+rx tmp/goodfet.zip travisutk,goodfet@web.sourceforge.net:htdocs/dist/gfwin.zip +py2exeinstall: py2exe + rm -rf "c:\goodfet\bin" + md "c:\goodfet\bin" + copy tmp\\goodfet\\* c:\\goodfet\\bin\\ + rem Be sure to add C:\goodfet\bin to %Path%. +py2exe: +#Run this from Win32 with Python, py2exe, py-serial, and GNU utils. +#MSP430 Client + sed s/PYTHONCONSOLE/goodfet.msp430/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gf430.exe +#Monitor + sed s/PYTHONCONSOLE/goodfet.monitor/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfmon.exe +#JTAG + sed s/PYTHONCONSOLE/goodfet.jtag/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfjtag.exe + +#BSL + sed s/PYTHONCONSOLE/goodfet.bsl/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfbsl.exe +#AVR + sed s/PYTHONCONSOLE/goodfet.avr/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfavr.exe +#PIC + sed s/PYTHONCONSOLE/goodfet.pic/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfpic.exe +#Chipcon SPI + sed s/PYTHONCONSOLE/goodfet.ccspi/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfccspi.exe +#Chipcon + sed s/PYTHONCONSOLE/goodfet.cc/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfcc.exe +#SPI Flash + sed s/PYTHONCONSOLE/goodfet.spiflash/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfspi.exe +#Nordic RF + sed s/PYTHONCONSOLE/goodfet.nrf/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfnrf.exe +#RF + sed s/PYTHONCONSOLE/goodfet.rf/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfrf.exe +#25C SPI EEPROM + sed s/PYTHONCONSOLE/goodfet.spi25c/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfspi25.exe +#Silicon Labs C2 + sed s/PYTHONCONSOLE/goodfet.slc2/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfslc2.exe + +#Goodfet. This must be last. + sed s/PYTHONCONSOLE/goodfet/ setup.py + python setup.py py2exe +# mv dist/goodfet.exe dist/goodfet.exe +#Now package it all. + rm -rf tmp +#mkdir -p tmp/goodfet + md tmp\goodfet + mv dist/* tmp/goodfet/ + cd tmp && zip -r goodfet.zip goodfet +