2014-09-23 23:00:31 +02:00
|
|
|
linux_CFLAGS=-pipe
|
2019-12-12 22:31:36 +01:00
|
|
|
linux_CXXFLAGS=$(linux_CFLAGS) -std=c++11
|
2014-07-23 07:31:30 +02:00
|
|
|
|
2014-09-23 23:00:31 +02:00
|
|
|
linux_release_CFLAGS=-O2
|
|
|
|
linux_release_CXXFLAGS=$(linux_release_CFLAGS)
|
|
|
|
|
2019-06-17 17:49:41 +02:00
|
|
|
linux_debug_CFLAGS=-Og
|
2014-09-23 23:00:31 +02:00
|
|
|
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
|
|
|
|
|
|
|
|
linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
|
|
|
|
2014-07-23 07:31:30 +02:00
|
|
|
ifeq (86,$(findstring 86,$(build_arch)))
|
2019-06-17 17:49:41 +02:00
|
|
|
i686_linux_CC=cc -m32
|
|
|
|
i686_linux_CXX=c++ -m32
|
2014-07-23 07:31:30 +02:00
|
|
|
i686_linux_AR=ar
|
|
|
|
i686_linux_RANLIB=ranlib
|
|
|
|
i686_linux_NM=nm
|
|
|
|
i686_linux_STRIP=strip
|
|
|
|
|
2019-06-17 17:49:41 +02:00
|
|
|
x86_64_linux_CC=cc -m64
|
|
|
|
x86_64_linux_CXX=c++ -m64
|
2014-07-23 07:31:30 +02:00
|
|
|
x86_64_linux_AR=ar
|
|
|
|
x86_64_linux_RANLIB=ranlib
|
|
|
|
x86_64_linux_NM=nm
|
|
|
|
x86_64_linux_STRIP=strip
|
|
|
|
else
|
2019-06-17 17:49:41 +02:00
|
|
|
i686_linux_CC=cc -m32
|
|
|
|
i686_linux_CXX=c++ -m32
|
|
|
|
x86_64_linux_CC=cc -m64
|
|
|
|
x86_64_linux_CXX=c++ -m64
|
2014-07-23 07:31:30 +02:00
|
|
|
endif
|