Remove pattern rule
The built-in pattern rule for compiling a C++ source file already considers CXXFLAGS, so this default behaviour is exactly what we want. This Makefile really is now stripped to its bare form.
This commit is contained in:
1 parent
5ae97d19f2
commit
bfa6cc4dc0
1 file changed
-3
@@ -8,9 +8,6 @@ endif
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
%.o: %.cpp
|
|
||||||
c++ $(CXXFLAGS) -c $<
|
|
||||||
|
|
||||||
{PROJECT}: {PROJECT}.o
|
{PROJECT}: {PROJECT}.o
|
||||||
c++ -o {PROJECT} {PROJECT}.o
|
c++ -o {PROJECT} {PROJECT}.o
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user