# makefile for text.c CC=gcc CFLAGS=-Wall -g OBJS=text.o page.o line.o prompt.o LIBS=-lncurses text: $(OBJS) $(CC) $(CFLAGS) -o text.exe $(OBJS) $(LIBS) text.o: text.c text.h page.h line.h prompt.h $(CC) $(CFLAGS) -c text.c page.o: page.c page.h line.h $(CC) $(CFLAGS) -c page.c line.o: line.c line.h $(CC) $(CFLAGS) -c line.c prompt.o: prompt.c prompt.h $(CC) $(CFLAGS) -c prompt.c clean: rm -f $(OBJS) text