Browse code

Switch Makefile to C++

The main rule is now equivalent to a GNU Make implicit rule which is a
good indication that it follows best practices.

Robert Cranston authored on 27/02/2024 02:27:42
Showing 1 changed files

  • Makefile index 1f95d68..d7d930e 100644
... ...
@@ -28,12 +28,12 @@ LDLIBS_Mac += \
28 28
 	-framework Cocoa \
29 29
 	-framework OpenGL
30 30
 LDLIBS += \
31
-	$(LDLIBS_$(OS)) \
32
-	-lm \
33
-	-lstdc++
31
+	$(LDLIBS_$(OS))
34 32
 
33
+# The below is equivalent to the GNU Make implicit rule for
34
+# tsbk07: $(COMMON)
35 35
 tsbk07: tsbk07.cpp $(COMMON)
36
-	gcc $(CXXFLAGS) -o tsbk07 $(CPPFLAGS) tsbk07.cpp $(COMMON) $(LDLIBS)
36
+	g++ $(CXXFLAGS) $(CPPFLAGS) tsbk07.cpp $(COMMON) $(LDLIBS) -o tsbk07
37 37
 
38 38
 clean:
39 39
 	rm tsbk07