1. Lars Yencken
  2. euler

Commits

Lars Yencken  committed d92e106

Move to an implicit rule for C++ binaries.

  • Participants
  • Parent commits dc722a7
  • Branches master

Comments (0)

Files changed (1)

File cpp/Makefile

View file
  • Ignore whitespace
 
 all: $(ALL)
 
-01-sum-numbers: 01-sum-numbers.cpp
-	$(CXX) -o $@ $<
-
-02-sum-fibonacci: 02-sum-fibonacci.cpp
-	$(CXX) -o $@ $<
-
-03-prime-factors: 03-prime-factors.cpp
-	$(CXX) -o $@ $<
+%: %.cpp
+	$(CXX) -Wall -o $@ $<
 
 clean:
 	rm -f $(ALL)