#  - un'cpio' this in /usr/src or /usr/local/src or something - doesn't matter.
#  - do a 'make install' in the tetrix directory
#  - tetrix gets installed in /usr/local/bin
#  - this will create a high score file in /usr/tmp, so doing it again
#    later on will erase high scores for the machine.


OBJS= MoveR.o MoveL.o NewP.o AdvanceP.o Rotate.o tet.o window.o
INCS= tet.h

tetrix: $(OBJS) $(INCS)
	$(CC) -O -s $(OBJS) -o tetrix -ltam -ltermlib

MoveR.o: MoveR.c

window.o: window.c

MoveL.o: MoveL.c

NewP.o: NewP.c

AdvanceP.o: AdvanceP.c

Rotate.o: Rotate.c

tet.o: tet.c

install: tetrix
	chmod 755 tetrix
	/bin/mv -f tetrix /usr/local/bin

clean:
	/bin/rm -rf tetrix core *.o
