CFLAGS = -L../lib -I../h

# can't make termtestc due to segment restrictions
all: termtesth termtestl termtestm termtests termtest3s termtest3r

clean:
	rm -f termtestc termtesth termtestl termtestm termtests termtest3s termtest3r *.o *.err
	rcsclean

termtestc: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -2 -mc $^

termtesth: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -2 -mh $^

termtestl: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -2 -ml $^

termtestm: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -2 -mm $^

termtests: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -2 -ms $^

termtest3s: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -3s $^

termtest3r: termtest.c
	cc -ltermlib -o$@ $(CFLAGS) -3r $^

