CC=gcc
CFLAGS=-O
LIBS=-ltermcap -lc

OFILES=		ansi.o basic.o bind.o buffer.o display.o file.o \
		fileio.o hp150.o line.o lock.o main.o random.o region.o \
		search.o spawn.o tcap.o termio.o vt52.o window.o word.o \
		exec.o eval.o isearch.o input.o

emacs:		$(OFILES)
		$(CC) -o emacs $(OFILES) $(LIBS)
