We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acbc0a commit 918107dCopy full SHA for 918107d
README.md
@@ -71,17 +71,17 @@ We can automate the step to compile and link above using `Makefile`.
71
First we need to create new `Makefile` in the root directory
72
with the following content:
73
74
+ # Add definition to generate math.o object file
75
math.o: src/math.cc src/math.h
76
c++ -c src/math.cc -o math.o
77
78
+ # Add definition to generate cmake-tutorial binary
79
cmake-tutorial: math.o
80
c++ src/main.cc math.o -o cmake-tutorial
81
- build: cmake-tutorial
-
82
Now we can run:
83
84
- make build
+ make cmake-tutorial
85
86
to build `cmake-tutorial` binary. If there are no changes in
87
`src/{main,math}.cc` and `src/math.h`, the subsequent command
0 commit comments