#	I suspect that this is Horribly specific to gnu make, but ...

CFLAGS = -ansi -Wall -O -fomit-frame-pointer -fcombine-regs -fstrength-reduce
LFLAGS = -s -liio

TARGET = dm.tos ps.tos df.ttp mem.tos du.ttp

all : $(TARGET)

$(filter %.ttp, $(TARGET)): %.ttp: %.o
	gcc $< $(LFLAGS) -o $@
	toglclr $@

$(filter %.tos, $(TARGET)): %.tos: %.o
	gcc $< $(LFLAGS) -o $@
	toglclr $@
