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

Last change on this file since 1162 was 1045, checked in by garnier, 17 years ago

maj en aussi sur CVS

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 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 -lXi -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 ifndef OGLFLAGS
56 OGLFLAGS := -I$(OGLHOME)/include
57 endif
58 ifndef OGLLIBS
59 OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
60 endif
61 define build-granular-shared-lib
62 @libdir=`(cd $(@D);/bin/pwd)`; \
63 cd $(G4TMPDIR); \
64 $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
65 endef
66 define build-global-shared-lib
67 @libdir=`(cd $(@D);/bin/pwd)`; \
68 cd $(G4TMP)/$(G4SYSTEM); \
69 $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) \
70 $(foreach dir,$(SUBLIBS),$(dir)/*.o);
71 endef
72
73endif
Note: See TracBrowser for help on using the repository browser.