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