]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/makefile.gcc
fixed bakefile so that in-tree headers take precedence over system-installed ones
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
index 5089516700867ecf5562eab48185b7aad043fc69..49ece2a09d83ba22eaeac77c2f31f4bdb9abbe79 100644 (file)
@@ -15,7 +15,8 @@ include ../../build/msw/config.gcc
 DBBROWSE_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
        -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
        $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
-       $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS)
+       $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS) $(__EXCEPTIONSFLAG_4) \
+       $(__EXCEPTIONSFLAG_5)
 DBBROWSE_OBJECTS =  \
        $(OBJS)\dbbrowse_dbbrowse.o \
        $(OBJS)\dbbrowse_doc.o \
@@ -103,6 +104,18 @@ endif
 ifeq ($(SHARED),1)
 __DLLFLAG_p_1 = --define WXUSINGDLL
 endif
+ifeq ($(USE_EXCEPTIONS),0)
+__EXCEPTIONSFLAG_4 = -fno-rtti
+endif
+ifeq ($(USE_EXCEPTIONS),1)
+__EXCEPTIONSFLAG_4 = 
+endif
+ifeq ($(USE_EXCEPTIONS),0)
+__EXCEPTIONSFLAG_5 = -fno-exceptions
+endif
+ifeq ($(USE_EXCEPTIONS),1)
+__EXCEPTIONSFLAG_5 = 
+endif
 ifeq ($(USE_GUI),1)
 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
 endif