# Makefile for Datapath Simulator # Emily Ezust # March 31 1995 CFLAGS = -O CURSESFLAGS = -lcurses -ltermcap FILES = dpcur.c init.c display.c file.c edit.c OBJECTS = dpcur.o init.o display.o file.o edit.o HEADERS = structs.h constants.h dpcur: $(OBJECTS) gcc -o dpcur $(OBJECTS) $(CURSESFLAGS) init.o display.o file.o edit.o: $(HEADERS) .c.o: gcc -c $< clean: -rm -f dpcur.o -rm -f init.o -rm -f display.o -rm -f file.o -rm -f edit.o