| 141 |
Kevin |
1 |
#
|
|
|
2 |
# Treat warnings as errors. This seems to be the only way to
|
|
|
3 |
# convince some students of the importance of ensuring that
|
|
|
4 |
# their code compiles without warnings before starting to debug.
|
|
|
5 |
#
|
|
|
6 |
# Do not change this line. We will not use your copy of the Makefile
|
|
|
7 |
# we will use *this* Makefile to run check.py when grading.
|
|
|
8 |
#
|
|
|
9 |
#CFLAGS=-Wall -O3 -Werror
|
|
|
10 |
CFLAGS=-Wall -O1 -g -Werror
|
|
|
11 |
LDLIBS=-lpthread
|
|
|
12 |
|
|
|
13 |
# Use make's default rules
|
|
|
14 |
all: threadpool_test quicksort
|
|
|
15 |
|
|
|
16 |
threadpool_test: threadpool_test.o threadpool.o list.o
|
|
|
17 |
|
|
|
18 |
quicksort: quicksort.o threadpool.o list.o
|
|
|
19 |
|
|
|
20 |
clean:
|
|
|
21 |
rm -f *.o threadpool_test quicksort
|
|
|
22 |
|