Logo  

CS256 - Fundamentals of Structured Programming

Displaying exercises/e9/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 -std=c11
CFLAGS=-ggdb -Wall
LIBS=-lcursesw

all:	c1 c2 c3 c4 f1 f2 f3

util.o:	util.c
	$(CC) $(CFLAGS) -c util.c

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

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

clean:
	rm -f *.o

cleanall:	clean
	rm -f c1 c2 c3 c4 f1 f2 f3