Switched to the language standard C++11
This commit is contained in:
parent
635d7c691e
commit
4046f05a0c
|
@ -5,7 +5,7 @@
|
|||
if ! CPPUNIT_TEST
|
||||
|
||||
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror -std=c++11
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
hello \
|
||||
|
|
|
@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
|
|||
CXX = clang++
|
||||
SRCS = $(wildcard *.cpp)
|
||||
OBJS = $(SRCS:%.cpp=%)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
|
||||
MAKEFILE = -f Makefile.clang
|
||||
LDFLAGS = -L../src -lfinal
|
||||
INCLUDES = -I../src/include -I/usr/include/final
|
||||
|
|
|
@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
|
|||
CXX = g++
|
||||
SRCS = $(wildcard *.cpp)
|
||||
OBJS = $(SRCS:%.cpp=%)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
|
||||
MAKEFILE = -f Makefile.gcc
|
||||
LDFLAGS = -L../src -lfinal
|
||||
INCLUDES = -I../src/include -I/usr/include/final
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Makefile.am - The Final Cut library
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
AM_CPPFLAGS = -Iinclude -Wall -Werror -DCOMPILE_FINAL_CUT
|
||||
AM_CPPFLAGS = -Iinclude -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++11
|
||||
|
||||
SUBDIRS = .
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ INCLUDE_HEADERS = \
|
|||
|
||||
# compiler parameter
|
||||
CXX = clang++
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++11
|
||||
MAKEFILE = -f Makefile.clang
|
||||
LDFLAGS = $(TERMCAP) -lgpm
|
||||
INCLUDES = -Iinclude
|
||||
|
|
|
@ -63,7 +63,7 @@ INCLUDE_HEADERS = \
|
|||
|
||||
# compiler parameter
|
||||
CXX = g++
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++11
|
||||
MAKEFILE = -f Makefile.gcc
|
||||
LDFLAGS = $(TERMCAP) -lgpm
|
||||
INCLUDES = -Iinclude
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
|
||||
#if !defined (__cplusplus)
|
||||
#error "You need a C++ compiler like g++ or clang++"
|
||||
#elif __cplusplus > 1 && __cplusplus < 199711L
|
||||
#error "Your C++ compiler does not support the C++98 standard!"
|
||||
#elif __cplusplus > 1 && __cplusplus < 201103
|
||||
#error "Your C++ compiler does not support the C++11 standard!"
|
||||
#endif
|
||||
|
||||
#include <sys/time.h> // need for gettimeofday
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
if CPPUNIT_TEST
|
||||
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal $(CPPUNIT_LIBS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror -std=c++11
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
fobject_test \
|
||||
|
|
|
@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
|
|||
CXX = clang++
|
||||
SRCS = $(wildcard *.cpp)
|
||||
OBJS = $(SRCS:%.cpp=%)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
|
||||
MAKEFILE = -f Makefile.clang
|
||||
LDFLAGS = -L../src -lfinal -lcppunit -ldl
|
||||
INCLUDES = -I. -I../src/include -I/usr/include/final
|
||||
|
|
|
@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
|
|||
CXX = g++
|
||||
SRCS = $(wildcard *.cpp)
|
||||
OBJS = $(SRCS:%.cpp=%)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
|
||||
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
|
||||
MAKEFILE = -f Makefile.gcc
|
||||
LDFLAGS = -L../src -lfinal -lcppunit -ldl
|
||||
INCLUDES = -I. -I../src/include -I/usr/include/final
|
||||
|
|
Loading…
Reference in New Issue