Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a901db

Browse files
committed
Add dependencies to Makefile
1 parent 9e350e0 commit 7a901db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
CPPFLAGS=-O3 -Wall -Wextra -Wno-type-limits
22
OBJECTS=fib.o lookup.o
33
PROGRAM=fib
4+
45
all: $(PROGRAM)
6+
57
$(PROGRAM): $(OBJECTS)
68
$(CXX) $(CPPFLAGS) -o $@ $^
79
clean:
810
rm -f $(OBJECTS) $(PROGRAM)
911

1012
test: $(PROGRAM)
1113
seq 0 10 | ./$(PROGRAM)
14+
15+
fib.cpp: fib.h
16+
17+
lookup.cpp: fib.h

0 commit comments

Comments
 (0)