source: trunk/config/sys/Linux-icc.gmk @ 1349

Last change on this file since 1349 was 1349, checked in by garnier, 13 years ago

update

File size: 1.7 KB
Line 
1#
2# ------ GNU/LINUX ------         Intel icc 11.0
3#
4ifeq ($(G4SYSTEM),Linux-icc)
5  CXX       := icc
6  CXXFLAGS  := -ansi -fp-model precise -no-gcc -w1
7  ifdef G4OPTIMISE
8    CXXFLAGS  += -O2
9    FCFLAGS   := -O2
10    CCFLAGS   := -O2
11  else
12    ifdef G4DEBUG
13      CXXFLAGS  += -g
14      FCFLAGS   := -g
15      CCFLAGS   := -g
16    endif
17  endif
18  ifdef G4PROFILE
19    CXXFLAGS  += -qp
20    FCFLAGS   += -qp
21    CCFLAGS   += -pg
22  endif
23  ifdef G4LIB_BUILD_SHARED
24    CXXFLAGS  += -fPIC
25    FCFLAGS   += -fPIC
26    CCFLAGS   += -fPIC
27    LDFLAGS   += -i-dynamic
28  endif
29  G4RUNPATHOPTION := -Wl,-rpath -Wl,
30  CC := icc
31  FC := ifort
32  FCFLAGS += -noautomatic -assume nobscc -assume no2underscores
33  FCLIBS := -lg2c -lnsl
34  AR := ar r
35  ECHO    := /bin/echo -e
36  SHEXT   := so
37  ifndef X11FLAGS
38    X11FLAGS  := -I/usr/include/X11/extensions -I/usr/include/X11
39  endif
40  ifndef X11LIBS
41    X11LIBS   := -L/usr/X11R6/lib  -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE
42  endif
43  ifndef XMFLAGS
44    XMFLAGS   := -I/usr/X11R6/include
45  endif
46  ifndef XMLIBS
47    XMLIBS    := -lXm -lXpm
48  endif
49  ifndef XAWFLAGS
50    XAWFLAGS   := -I/usr/X11R6/include
51  endif
52  ifndef XAWLIBS
53    XAWLIBS    := -lXaw
54  endif
55  DLDLIBS   := -ldl
56  ifndef OGLFLAGS
57    OGLFLAGS  := -I$(OGLHOME)/include
58  endif
59  ifndef OGLLIBS
60    OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
61  endif
62  define build-granular-shared-lib
63    @libdir=`(cd $(@D);/bin/pwd)`; \
64     cd $(G4TMPDIR); \
65     $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
66  endef
67  define build-global-shared-lib
68    @libdir=`(cd $(@D);/bin/pwd)`; \
69     cd $(G4TMP)/$(G4SYSTEM); \
70     $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) \
71                    $(foreach dir,$(SUBLIBS),$(dir)/*.o);
72  endef
73
74endif
Note: See TracBrowser for help on using the repository browser.