diff Makefile.in @ 2867:ada74f4d3f39

C++: Implement conditional signal handlers based on overrides. This uses templates in a sort of hacky way to determine if our virtual functions have been overridden. Leaving some debug code in for the moment to make sure it works on all platforms. OS/2 will require using GCC for the C++ bindings, since VisualAge only supports C++99 and Watcom doesn't even support that as far as I know.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 17 Dec 2022 21:39:00 +0000
parents f0a00c7c4ec1
children ac404083dc6b
line wrap: on
line diff
--- a/Makefile.in	Sat Dec 17 11:51:22 2022 +0000
+++ b/Makefile.in	Sat Dec 17 21:39:00 2022 +0000
@@ -6,6 +6,7 @@
 MLFLAGS	=	-L.
 include $(srcdir)/Version
 CCFLAGS = 	@CFLAGS@ $(PLATCCFLAGS) @ARCH@ -D@DW_DEFINE@ -DBUILD_DLL -DDW_RESOURCES -DVER_REV=$(VER_REV)
+CXXFLAGS=	-std=c++11 
 LFLAGS	=	@LIBS@ @ARCH@
 ARFLAGS =	@ARFLAGS@
 INSTALL =	@INSTALL@
@@ -39,7 +40,7 @@
 #	$(CC) -c $(CCFLAGS) $(INCPATH) -o $@ $<
 
 #.cpp.o:
-#	$(CXX) -c $(CCFLAGS) $(INCPATH) -o $@ $<
+#	$(CXX) -c $(CXXFLAGS) $(CCFLAGS) $(INCPATH) -o $@ $<
 
 
 # Link flags shared objects
@@ -199,7 +200,7 @@
 	-$(srcdir)/mac/finishup.sh $(srcdir) dwtest
 
 dwtestoo.o: $(srcdir)/dwtestoo.cpp $(srcdir)/dw.h $(srcdir)/dw.hpp
-	$(CXX) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/dwtestoo.cpp
+	$(CXX) -c $(INCPATH) $(CXXFLAGS) $(CCFLAGS) -o $@ $(srcdir)/dwtestoo.cpp
 
 dwtestoo: dwtestoo.o
 	$(CC) -o dwtestoo dwtestoo.o $(MLFLAGS) -l$(TARGET) $(LFLAGS) -lstdc++