OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [make/] [generic_cpp.mk] - Diff between revs 10 and 15

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 10 Rev 15
Line 1... Line 1...
# $Id: generic_cpp.mk 355 2011-01-15 09:06:23Z mueller $
# $Id: generic_cpp.mk 434 2011-12-02 19:17:38Z mueller $
#
#
#  Revision History:
#  Revision History:
# Date         Rev Version  Comment
# Date         Rev Version  Comment
 
# 2011-11-28   434   1.0.2  use -fno-strict-aliasing to avoid warings from boost bind
 
# 2011-11-21   432   1.0.1  gcc 4.4.5 wants explict -fPIC for .so code
# 2011-01-09   354   1.0    Initial version (from wrepo/make/generic_cxx.mk)
# 2011-01-09   354   1.0    Initial version (from wrepo/make/generic_cxx.mk)
#---
#---
#
#
# Compile options
# Compile options
#
#
Line 20... Line 22...
ifndef CCOPTFLAGS
ifndef CCOPTFLAGS
CCOPTFLAGS = -O
CCOPTFLAGS = -O
endif
endif
#
#
CC         = gcc
CC         = gcc
CFLAGS     = -Wall $(CCOPTFLAGS) $(INCLFLAGS)
CFLAGS     = -Wall -fPIC $(CCOPTFLAGS) $(INCLFLAGS)
#
#
# -- handle C++
# -- handle C++
#
#
#   -O      optimize
#   -O      optimize
#   -fPIC   position independent code
#   -fPIC   position independent code
Line 38... Line 40...
#
#
ifndef CXXOPTFLAGS
ifndef CXXOPTFLAGS
CXXOPTFLAGS = -O2
CXXOPTFLAGS = -O2
endif
endif
#
#
CXXFLAGS   = -Wall -std=c++0x $(CXXOPTFLAGS) $(INCLFLAGS)
CXXFLAGS   = -Wall -fPIC -fno-strict-aliasing -std=c++0x $(CXXOPTFLAGS) $(INCLFLAGS)
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
#
#
LINK.o     = $(CXX) $(CXXOPTFLAGS) $(LDOPTFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LINK.o     = $(CXX) $(CXXOPTFLAGS) $(LDOPTFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LDFLAGS    = -g
LDFLAGS    = -g
#
#

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.