Home / utk / cs130 / fa17 / lab04 / code_snippets / makefile
Directory Listing
cool.cpp
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC=g++
CFLAGS=--std=c++98

all: cool

cool: obj/cool.o
	$(CC) $(CFLAGS) -o $@ $^

obj/:
	mkdir -p obj

obj/cool.o: cool.cpp obj/
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	rm -rf obj
	rm cool