|
CS256 - Fundamentals of Structured Programming
| Displaying exercises/e2/solution/Makefile
# To use this makefile:
# - Type "make" or "make hello" at the command prompt to build your hello
# program.
# - Type "make clean" to delete any .o files left over from building your
# program.
# - Type "make cleanall" to clean both the .o files and your built program.
CC=gcc
CFLAGS=-ggdb -Wall
LIBS=
all: hello math func
hello: hello.o
hello.o: hello.c
math: math.o
math.o: math.c
func: func.o
func.o: func.c
clean:
rm -f *.o
cleanall: clean
rm -f hello math func
|