Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e8/files/Makefile

# To use this makefile:
# - Type "make" or "make p#" at the command prompt to build your program.
# - Type "make clean" to delete any .o files left over from building your
#   programs.
# - Type "make cleanall" to clean both the .o files and your built program.

CC=gcc
CFLAGS=-ggdb -Wall
LIBS=-lcurses

all:	p1 p2 p3 p4 p5 p6

%:	%.c
	$(CC) $(CFLAGS) -o $@ $< $(LIBS)

clean:
	rm -f *.o

cleanall:	clean
	rm -f p1 p2 p3 p4 p5 p6