INCLUDE=-I/usr/local/openwin/include LDLIBS=-lolgx -Bstatic -lxview -Bdynamic -lX11 CFLAGS=-O4 ${INCLUDE} -L/usr/local/openwin #CFLAGS=-g ${INCLUDE} -L/import/X11R4/usr/lib PROG=autotetris CFILES=main.c event.c init.c shape.c support.c notify.c colours.c window.c \ score.c draw.c autoplay.c adversary.c OFILES=main.o event.o init.o shape.o support.o notify.o colours.o window.o \ score.o draw.o autoplay.o adversary.o EXTRAFILES = defs.h README TODO makefile COPYRIGHT autotetris.icon autotetris.6 $(PROG): $(OFILES) cc $(CFLAGS) -o $(PROG) $(OFILES) ${LDLIBS} saber: load $(CFLAGS) -o $(PROG) $(CFILES) ${LDLIBS} lint: lint autoplay.c -I${INCLUDE} helloworld: cc $(CFLAGS) -o helloworld helloworld.c $(LIB) pgautotetris: $(OFILES) cc $(CFLAGS) -o $(PROG) $(OFILES) -lsuntool_p -lsunwindow_p -lpixrect_p t: t.o cc $(CFLAGS) -o t t.o $(LIB) $(OFILES): defs.h foo: echo ${LIBPATH} # tetris needs to be setuid so that the high scores file can be updated. # if you don't like setuid programs on your system then just make sure # that the high score file is globally read/writable. install: $(PROG) install -s $(PROG) $(BINDIR) chmod u+s $(BINDIR)/$(PROG) clean: rm -f *.o core shar: makescript -o autotetris.shar ${CFILES} ${EXTRAFILES}