-# - un'cpio' this in /usr/src or /usr/local/src or something - doesn't matter.
+# To install:
+#
+# - unpack 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.
-CFLAGS=-g -DEGA
-LFLAGS = # -s
+CFLAGS=-O -DIBM
+LFLAGS = -s
OBJS= MoveR.o MoveL.o DrawP.o AdvanceP.o Rotate.o Colors.o tet.o
INCS= tet.h
+SOURCES = READ.ME Makefile tet.h $(OBJS:.o=.c)
+
tetrix: $(OBJS) $(INCS)
cc $(LFLAGS) $(OBJS) -ldcurses -o tetrix
chmod 755 tetrix
/bin/mv -f tetrix /usr/local/bin
-shar:
- shar README Makefile tet.h $(OBJS:.o=.c)
+tetrix.tar: $(SOURCES)
+ tar -cvf $(SOURCES)
+tetrix.tar.gz: tetrix.tar
+ gzip tetrix.tar
+
+tetrix.shar: $(SOURCES)
+ shar $(SOURCES) >tetrix.shar
clean:
- /bin/rm -rf tetrix core *.o
+ /bin/rm -rf tetrix core *.o tetrix.shar tetrix.tar tetrix.tar.gz
Have fun! Eric S. Raymond
-November 1994: This code has been cleaned up for use with Linux ncurses.
-You don't have to specify -DCOLOR any more. Given the growing ubiquity
-of curses, this game is now semi-obsolescent and I don't expect to have
-to hack it again. Thus the envoi
+November 1994: This code has been cleaned up for use with Linux ncurses. You
+don't have to specify -DCOLOR any more. The -DEGA switch is now -DIBM. Given
+the growing ubiquity of xtetris, this game is now semi-obsolescent and I don't
+expect to have to hack it again. Thus the envoi
Good bye! Eric S. Raymond