#
# makefile for hex tools
# this doesn't actually work: it gives a wierd gcc error but make -n and running that does work...
#

all: 
	gcc -Wall -O3 -o byte2hex.exe byte2hex.c
	zip byte2hex-src.zip byte2hex.c makefile
	cp byte2hex-src.zip ../../www/tool/byte2hex
	strip -s byte2hex.exe
	cp byte2hex.exe ../../www/tool/byte2hex

hex2byte.exe: hex2byte.c
	gcc -Wall -O3 -o hex2byte.exe hex2byte.c
	zip hex2byte-src.zip hex2byte.c makefile
	cp hex2byte-src.zip ../../www/tool/hex2byte
	strip -s hex2byte.exe
	cp hex2byte.exe ../../www/tool/hex2byte

