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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [make/] [generic_cpp.mk] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 wfjm
# $Id: generic_cpp.mk 576 2014-08-02 12:24:28Z mueller $
2 10 wfjm
#
3
#  Revision History:
4
# Date         Rev Version  Comment
5 15 wfjm
# 2011-11-28   434   1.0.2  use -fno-strict-aliasing to avoid warings from boost bind
6
# 2011-11-21   432   1.0.1  gcc 4.4.5 wants explict -fPIC for .so code
7 10 wfjm
# 2011-01-09   354   1.0    Initial version (from wrepo/make/generic_cxx.mk)
8
#---
9
#
10
# Compile options
11
#
12
# -- handle C
13
#   -O      optimize
14
#   -fPIC   position independent code
15
#   -Wall   all warnings
16
#
17
ifdef CCCOMMAND
18
CC = $(CCCOMMAND)
19
endif
20
ifndef CCOPTFLAGS
21
CCOPTFLAGS = -O
22
endif
23
#
24
CC         = gcc
25 15 wfjm
CFLAGS     = -Wall -fPIC $(CCOPTFLAGS) $(INCLFLAGS)
26 10 wfjm
#
27
# -- handle C++
28
#
29
#   -O      optimize
30
#   -fPIC   position independent code
31
#   -Wall   all warnings
32
#
33
ifdef  CXXCOMMAND
34
CXX = $(CXXCOMMAND)
35
endif
36
#
37
ifndef CXXOPTFLAGS
38
CXXOPTFLAGS = -O2
39
endif
40
#
41 15 wfjm
CXXFLAGS   = -Wall -fPIC -fno-strict-aliasing -std=c++0x $(CXXOPTFLAGS) $(INCLFLAGS)
42 10 wfjm
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
43
#
44
LINK.o     = $(CXX) $(CXXOPTFLAGS) $(LDOPTFLAGS) $(LDFLAGS) $(TARGET_ARCH)
45
LDFLAGS    = -g
46
#
47
# Compile rule
48
#
49
%.o: %.cpp
50
        $(COMPILE.cc) $< $(OUTPUT_OPTION)
51
#

powered by: WebSVN 2.1.0

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