]> thyrsus.com Git - tetrix.git/commitdiff
This is ready to ship now.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 29 Nov 1994 04:02:48 +0000 (04:02 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 29 Nov 1994 04:02:48 +0000 (04:02 +0000)
Makefile
README

index f00e3f587a2b53b4cd9ac99c2c6debe55a3cc21a..6fbd9d974e50cb0b544ef42f28d9728d28948eea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
-#  - 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
 
@@ -24,8 +28,13 @@ install: 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
diff --git a/README b/README
index af94967d9a1b23c6c9cf6b083ac92713955ccdd9..0aaef260a262615c2c93dc6d5a9e59c60b34d230 100644 (file)
--- a/README
+++ b/README
@@ -42,10 +42,10 @@ to set the value of INIT_PAUSE.
 
        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