CC = cc
CFLAGS =

all:	test1 test2 tvga.o

test1:	test1.o tvga.o
	$(CC) test1.o tvga.o -o $@

test1.o: tvga.h

test2:	test2.o tvga.o
	$(CC) test2.o tvga.o -o $@

test2.o: tvga.h

tvga.o: tvga.h

clean:
	rm -f *.o libtvga.a test1 test2

# Gotta be root for this one!
install:
	ar rcs libtvga.a tvga.o
	mv -f libtvga.a /usr/local/lib
	cp -f tvga.h /usr/include
