source: trunk/config/sys/Linux-egcs.gmk@ 1254

Last change on this file since 1254 was 1213, checked in by garnier, 16 years ago

Suppression de Xaw. Sauf dans Configure et les fichier G4UIXaw.hh et cc

File size: 1.6 KB
Line 
1#
2# ------ GNU/LINUX ------ !!! not supported !!!
3# Red-Hat 6.1, egcs-1.1.2 (gcc-2.91.66)
4ifeq ($(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 DLDLIBS := -ldl
47 ifndef OGLFLAGS
48 OGLFLAGS := -I$(OGLHOME)/include
49 endif
50 ifndef OGLLIBS
51 OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
52 endif
53 define build-granular-shared-lib
54 @libdir=`(cd $(@D);/bin/pwd)`; \
55 cd $(G4TMPDIR); \
56 $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) *.o
57 endef
58 define build-global-shared-lib
59 @libdir=`(cd $(@D);/bin/pwd)`; \
60 cd $(G4TMP)/$(G4SYSTEM); \
61 $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) \
62 $(foreach dir,$(SUBLIBS),$(dir)/*.o);
63 endef
64
65endif
Note: See TracBrowser for help on using the repository browser.