#ifndef XCOMM #define XCOMM /**/# #endif XCOMM GENERIC X-BASED TERTRIS XCOMM XCOMM Imakefile XCOMM XCOMM ## XCOMM XCOMM Copyright (c) 1993 - 95 David A. Bagley, bagleyd@perry.njit.edu XCOMM XCOMM Taken from GENERIC X-BASED TETRIS XCOMM XCOMM Copyright (c) 1992 - 95 Q. Alex Zhao, azhao@cc.gatech.edu XCOMM XCOMM All Rights Reserved XCOMM XCOMM Permission to use, copy, modify, and distribute this software and XCOMM its documentation for any purpose and without fee is hereby granted, XCOMM provided that the above copyright notice appear in all copies and XCOMM that both that copyright notice and this permission notice appear in XCOMM supporting documentation, and that the name of the author not be XCOMM used in advertising or publicity pertaining to distribution of the XCOMM software without specific, written prior permission. XCOMM XCOMM This program is distributed in the hope that it will be "playable", XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. XCOMM SCOREFILE = ./tertris.scores POLYIAMONDFILE = ./polyiamond.dat XCOMM Set "UP" to: XCOMM -DUP_REFLECT if you want the Up Arrow key for reflection XCOMM -DUP_ROTATE if you want the Up Arrow key for rotation (default) UP = -DUP_ROTATE XCOMM Set "DOWN" to: XCOMM -DDOWN_ROTATE if you want the Down Arrow key for rotation XCOMM -DDOWN_DROP if you want the Down Arrow key for dropping (default) DOWN = -DDOWN_DROP XCOMM Set your C compiler if necessary XCOMM CC = gcc -g -DDEBUG -Wall XCOMM CC = gcc -O XCOMM ############################################################# DEFINES = -I. -DSCOREFILE=\"${SCOREFILE}\"\ -DPOLYIAMONDFILE=\"${POLYIAMONDFILE}\" ${UP} ${DOWN} LOCAL_LIBRARIES = ${XLIB} SRCS = rngs.c tertris.c playing.c utils.c OBJS = rngs.o tertris.o playing.o utils.o PROGRAMS = tertris ComplexProgramTarget(${PROGRAMS}) tertris.o: tertris.c tertris.h playing.o: playing.c tertris.h utils.o: utils.c tertris.h clean.all:: clean ${RM} Makefile ${SCOREFILE}