# You can define one of TERMIOS, TERMIO, SGTTY, or else none of them.
# You don't have to define X11 if you don't want graphics.
# The compiler options are for gcc, so remove them for other compilers.

CFLAGS = -O3 -Wall -Wmissing-prototypes -DX11 -DTERMIOS

LIBS = -lX11 -lcurses

OBJS =	main.o alloc.o cell.o cmd.o cmdl.o file.o gen.o io.o mark.o \
	object.o path.o scan.o ttydev.o vars.o view.o x11dev.o


life:	$(OBJS)
	cc -o life $(OBJS) $(LIBS)

$(OBJS):	life.h

clean:
	rm -f $(OBJS) life
