Last change
on this file since 575 was
483,
checked in by garnier, 17 years ago
|
r569@mac-90108: laurentgarnier | 2007-06-05 15:53:34 +0200
version contre geant4.8.2.p01
|
File size:
1.7 KB
|
Rev | Line | |
---|
[472] | 1 | # |
---|
[483] | 2 | # ------ GNU/LINUX ------ Intel icc 9.1 |
---|
| 3 | # |
---|
[472] | 4 | ifeq ($(G4SYSTEM),Linux-icc) |
---|
| 5 | CXX := icc |
---|
| 6 | CXXFLAGS := -ansi -mp -no-gcc -w1 |
---|
| 7 | ifdef G4OPTIMISE |
---|
[483] | 8 | CXXFLAGS += -O2 |
---|
| 9 | FCFLAGS := -O2 |
---|
| 10 | CCFLAGS := -O2 |
---|
[472] | 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 |
---|
[483] | 28 | G4RUNPATHOPTION := -Wl,-rpath -Wl, |
---|
[472] | 29 | CC := gcc |
---|
| 30 | FC := g77 |
---|
| 31 | FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore |
---|
| 32 | FCLIBS := -lg2c -lnsl |
---|
[483] | 33 | AR := ar r |
---|
[472] | 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 |
---|
[483] | 55 | LOADLIBS += -lcxa -lunwind |
---|
[472] | 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 | |
---|
| 74 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.