#makefile for fltk program
CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"
PROG=flit
VERSTR=1_2_1_for_TC30

#Standard Version: has right-click menu and multi-image paging. About 17.0K
#Uses these #defines: (none)
all: 
	gcc ${CXXFLAGS} `fltk-config --cxxflags` -c ${PROG}.cpp
	gcc `fltk-config --ldflags` -lfltk_images ${PROG}.o -o ${PROG}
	strip ${PROG}
	sudo cp ${PROG} /usr/local/bin
	sudo cp ${PROG}_help.htm /usr/share/doc/tc/


package:
	./build-tcz.sh

tar:
	tar -cf flit_${VERSTR}.tar flit.tcz flit.tcz.info flit.tcz.list flit.tcz.md5.txt Makefile build-tcz.sh flit.cpp soundcard.h flit_help.htm

clean:
	rm *.o ${PROG}

run:
	cd /home/tc/; flit &
	
