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 15

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 wfjm
# $Id: generic_cpp.mk 434 2011-12-02 19:17:38Z 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
#   -g      request debugging info
18
#
19
ifdef CCCOMMAND
20
CC = $(CCCOMMAND)
21
endif
22
ifndef CCOPTFLAGS
23
CCOPTFLAGS = -O
24
endif
25
#
26
CC         = gcc
27 15 wfjm
CFLAGS     = -Wall -fPIC $(CCOPTFLAGS) $(INCLFLAGS)
28 10 wfjm
#
29
# -- handle C++
30
#
31
#   -O      optimize
32
#   -fPIC   position independent code
33
#   -Wall   all warnings
34
#
35
#   -g      request debugging info
36
#
37
ifdef  CXXCOMMAND
38
CXX = $(CXXCOMMAND)
39
endif
40
#
41
ifndef CXXOPTFLAGS
42
CXXOPTFLAGS = -O2
43
endif
44
#
45 15 wfjm
CXXFLAGS   = -Wall -fPIC -fno-strict-aliasing -std=c++0x $(CXXOPTFLAGS) $(INCLFLAGS)
46 10 wfjm
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
47
#
48
LINK.o     = $(CXX) $(CXXOPTFLAGS) $(LDOPTFLAGS) $(LDFLAGS) $(TARGET_ARCH)
49
LDFLAGS    = -g
50
#
51
# Compile rule
52
#
53
%.o: %.cpp
54
        $(COMPILE.cc) $< $(OUTPUT_OPTION)
55
#

powered by: WebSVN 2.1.0

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