Line | |
---|
1 | ##################################################################
|
---|
2 | #
|
---|
3 | # config.mk
|
---|
4 | #
|
---|
5 | # @file config.mk
|
---|
6 | #
|
---|
7 | ##################################################################
|
---|
8 |
|
---|
9 | # compilers
|
---|
10 |
|
---|
11 | ifeq ($(shell which colorgcc), )
|
---|
12 | CC := gcc
|
---|
13 | CXX := g++
|
---|
14 | else
|
---|
15 | CC := colorgcc
|
---|
16 | CXX := colorgcc
|
---|
17 | endif
|
---|
18 |
|
---|
19 | LINKER := g++
|
---|
20 | F77 := f77
|
---|
21 | AR := ar -rc
|
---|
22 |
|
---|
23 | #
|
---|
24 | # ----->>> settings for compilation
|
---|
25 | #
|
---|
26 | OPTIM := -O5 -std=c++0x -Wall -Winit-self -fPIC -Wpointer-arith -Wcast-align -Woverloaded-virtual
|
---|
27 | # ggc 4.3: removed -Wshadow -fnonnull-objects -Wtraditional -Wnested-externs -Wconversion
|
---|
28 | DEBUG :=
|
---|
29 | ARCHDEF := -D__LINUX__
|
---|
30 | SOFLAG := -shared
|
---|
31 |
|
---|
32 | # For debugging information use '-g'
|
---|
33 | # For producing gmon.out use '-pg' (needs static linking)
|
---|
34 |
|
---|
35 | #MARS_LIB = -Llib $(SUBDIRS:%=-l%) $(MARSLIBS)
|
---|
36 | MARS_LIB := -Llib $(MARSLIBS)
|
---|
37 | INCLUDES = -I. $(SUBDIRS:%=-I%)
|
---|
38 |
|
---|
39 | # uncomment this for quiet compilation
|
---|
40 |
|
---|
41 | .SILENT:
|
---|
Note:
See
TracBrowser
for help on using the repository browser.