|
Last change
on this file since 865 was 472, checked in by garnier, 19 years ago |
r549@wl-72148: laurentgarnier | 2007-05-15 10:37:42 +0200
import de geant4
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | #
|
|---|
| 2 | # ------ GNU/LINUX ------ !!! not supported !!!
|
|---|
| 3 | # Red-Hat 6.1, egcs-1.1.2 (gcc-2.91.66)
|
|---|
| 4 | ifeq ($(G4SYSTEM),Linux-egcs)
|
|---|
| 5 | CXX := g++
|
|---|
| 6 | CXXFLAGS := -pipe
|
|---|
| 7 | ifdef G4OPTIMISE
|
|---|
| 8 | CXXFLAGS += -O
|
|---|
| 9 | FCFLAGS := -O
|
|---|
| 10 | CCFLAGS := -O
|
|---|
| 11 | else
|
|---|
| 12 | ifdef G4DEBUG
|
|---|
| 13 | CXXFLAGS += -g
|
|---|
| 14 | FCFLAGS := -g
|
|---|
| 15 | CCFLAGS := -g
|
|---|
| 16 | endif
|
|---|
| 17 | endif
|
|---|
| 18 | ifdef G4PROFILE
|
|---|
| 19 | CXXFLAGS += -pg
|
|---|
| 20 | FCFLAGS += -pg
|
|---|
| 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
|
|---|
| 29 | FC := g77
|
|---|
| 30 | FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
|
|---|
| 31 | FCLIBS := -lg2c -lnsl
|
|---|
| 32 | ECHO := /bin/echo -e
|
|---|
| 33 | SHEXT := so
|
|---|
| 34 | ifndef X11FLAGS
|
|---|
| 35 | X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11
|
|---|
| 36 | endif
|
|---|
| 37 | ifndef X11LIBS
|
|---|
| 38 | X11LIBS := -L/usr/X11R6/lib -lXmu -lXt -lXext -lX11 -lSM -lICE
|
|---|
| 39 | endif
|
|---|
| 40 | ifndef XMFLAGS
|
|---|
| 41 | XMFLAGS := -I/usr/X11R6/include
|
|---|
| 42 | endif
|
|---|
| 43 | ifndef XMLIBS
|
|---|
| 44 | XMLIBS := -lXm -lXpm
|
|---|
| 45 | endif
|
|---|
| 46 | ifndef XAWFLAGS
|
|---|
| 47 | XAWFLAGS := -I/usr/X11R6/include
|
|---|
| 48 | endif
|
|---|
| 49 | ifndef XAWLIBS
|
|---|
| 50 | XAWLIBS := -lXaw
|
|---|
| 51 | endif
|
|---|
| 52 | DLDLIBS := -ldl
|
|---|
| 53 | ifndef OGLFLAGS
|
|---|
| 54 | OGLFLAGS := -I$(OGLHOME)/include
|
|---|
| 55 | endif
|
|---|
| 56 | ifndef OGLLIBS
|
|---|
| 57 | OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
|
|---|
| 58 | endif
|
|---|
| 59 | define build-granular-shared-lib
|
|---|
| 60 | @libdir=`(cd $(@D);/bin/pwd)`; \
|
|---|
| 61 | cd $(G4TMPDIR); \
|
|---|
| 62 | $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) *.o
|
|---|
| 63 | endef
|
|---|
| 64 | define build-global-shared-lib
|
|---|
| 65 | @libdir=`(cd $(@D);/bin/pwd)`; \
|
|---|
| 66 | cd $(G4TMP)/$(G4SYSTEM); \
|
|---|
| 67 | $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) \
|
|---|
| 68 | $(foreach dir,$(SUBLIBS),$(dir)/*.o);
|
|---|
| 69 | endef
|
|---|
| 70 |
|
|---|
| 71 | endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.