
all: scin dsc fsc tofrac

install: scin dsc fsc tofrac
	install scin /usr/local/bin
	install dsc /usr/local/bin
	install fsc /usr/local/bin
	install tofrac /usr/local/bin

scin: scin.c
	gcc -lncurses -lreadline scin.c -o scin 

dsc: dsc.c
	gcc -lm dsc.c -o dsc

tofrac: tofrac.c
	gcc -lm tofrac.c -o tofrac

test: dsc fsc tofrac
	ystest

clean:
	rm -f scin dsc fsc read tofrac
	rm -f sample/2m8owa.* sample/build.*
