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

Last change on this file since 790 was 761, checked in by garnier, 18 years ago

modif depuis que mon mac a plante : mise a jour des moc en mieux

File size: 1.7 KB
Line 
1#
2# ------ GNU/LINUX ------ Intel icc 10.1
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 endif
28 G4RUNPATHOPTION := -Wl,-rpath -Wl,
29 CC := icc
30 FC := ifort
31 FCFLAGS += -noautomatic -assume nobscc -assume no2underscores
32 FCLIBS := -lg2c -lnsl
33 AR := ar r
34 ECHO := /bin/echo -e
35 SHEXT := so
36 ifndef X11FLAGS
37 X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11
38 endif
39 ifndef X11LIBS
40 X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE
41 endif
42 ifndef XMFLAGS
43 XMFLAGS := -I/usr/X11R6/include
44 endif
45 ifndef XMLIBS
46 XMLIBS := -lXm -lXpm
47 endif
48 ifndef XAWFLAGS
49 XAWFLAGS := -I/usr/X11R6/include
50 endif
51 ifndef XAWLIBS
52 XAWLIBS := -lXaw
53 endif
54 DLDLIBS := -ldl
55 LOADLIBS += -lcxa -lunwind
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.