if ! $(top_builddir) { top_builddir = $(TOP) ; } top_srcdir = $(TOP) ; MUDFLAP_FLAGS = -g -DGLIBCXX_FORCE_NEW ; MUDFLAP_LIBS = ; #MUDFLAP_FLAGS = -fmudflapth -include mf-runtime.h #MUDFLAP_LIBS = -lmudflapth MGFLAGS = -fno-strict-aliasing -frounding-math -fsignaling-nans -mfpmath=sse -msse $(MUDFLAP_FLAGS) ; JAMCONFIG ?= $(top_builddir)/Jamconfig ; include $(JAMCONFIG) ; if ! $(JAMCONFIG_READ) { EXIT "Couldn't find config. Please run 'configure' first." ; } if $(USE_STLPORT_DEBUG) { CPPFLAGS += -I/usr/include/stlport ; CPPFLAGS += -D_STLP_DEBUG=1 -D_STLP_DEBUG_UNINITIALIZED=1 ; CPPFLAGS += -D_STLP_SHRED_BYTE=0xA3 ; LIBS += -lstlport_gcc_debug ; } # if using streflop then add some special compiler defines if $(USE_STREFLOP) { CPPFLAGS += $(MGFLAGS) ; COMPILER_CFLAGS += $(MGFLAGS) ; COMPILER_CFLAGS_optimize += $(MGFLAGS) ; COMPILER_CXXFLAGS_optimize += $(MGFLAGS) ; } CPPFLAGS += $(MGFLAGS) ; COMPILER_CFLAGS += -Wall -W -Wno-unused -Wno-sign-compare $(MGFLAGS) ; COMPILER_CFLAGS_optimize += -O3 -DNDEBUG $(MGFLAGS) ; COMPILER_CXXFLAGS_optimize += -O3 -DNDEBUG $(MGFLAGS) ; COMPILER_LIBS_optimize += $(MUDFLAP_LIBS) ; COMPILER_CFLAGS_debug += -DDEBUG -g3 ; COMPILER_CXXFLAGS_debug += -DDEBUG -g3 ; COMPILER_LIBS_debug += -g3 $(MUDFLAP_LIBS) ; COMPILER_CFLAGS_profile += -O3 -fno-inline -pg ; COMPILER_CXXFLAGS_profile += -O3 -fno-inline -g3 -pg ; COMPILER_LIBS_profile += -pg $(MUDFLAP_LIBS) ; LINK = $(CXX) ; # Include build rules include $(TOP)/mk/jam/build.jam ; # Include Dirs IncludeDir $(top_builddir) ; # for config.h