source: trunk/geant4/config/sys/Darwin-g++.gmk @ 605

Last change on this file since 605 was 593, checked in by garnier, 17 years ago

r627@mac-90108: laurentgarnier | 2007-11-09 07:57:42 +0100
modif dans les includes directives

File size: 2.8 KB
Line 
1#
2# ------ MacOS-X ------
3#                                 MacOS 10.3 gcc-3.3
4#                                 MacOS 10.4 gcc-4.0
5#
6# Original author: Helmut Burkhardt - CERN
7#       Revisions: Guy Barrand - LAL
8#                  Gabriele Cosmo - CERN
9#
10ifeq ($(G4SYSTEM),Darwin-g++)
11  CXX       := g++
12  CXXFLAGS  := -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
13  CXXFLAGS  += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
14  ifdef G4OPTIMISE
15    CXXFLAGS  += -O2
16    FCFLAGS   := -O2
17    CCFLAGS   := -O2
18  else
19    ifdef G4DEBUG
20      CXXFLAGS  += -g
21      FCFLAGS   := -g
22      CCFLAGS   := -g
23    endif
24  endif
25  ifdef G4PROFILE
26    CXXFLAGS  += -pg
27    FCFLAGS   += -pg
28    CCFLAGS   += -pg
29  endif
30  FC := g77
31  FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
32  LDFLAGS += -bind_at_load
33  FCLIBS := -lg2c -lnsl
34  SHEXT   := dylib
35  ifndef X11FLAGS
36    X11FLAGS  := -I/usr/include/X11/extensions -I/usr/include/X11
37  endif
38  ifndef X11LIBS
39    X11LIBS   := -L/usr/X11R6/lib  -lXmu -lXt -lXext -lX11 -lXi -lSM -lICE
40  endif
41  ifndef XMFLAGS
42    XMFLAGS   := -I/sw/include
43#   XMFLAGS   := -I/usr/X11R6/include          ##### some installations.
44  endif
45  ifndef XMLIBS
46    XMLIBS    := -L/sw/lib -lXm -lXpm
47#   XMLIBS    := -L/usr/X11R6/lib -lXm -lXpm   ##### some installations.
48  endif
49  ifndef QTHOME
50    QTHOME  := /sw
51  endif
52  ifndef QTFLAGS
53    QTFLAGS   := -I$(QTHOME)/include
54    QTFLAGS   += -I$(QTHOME)/lib/QtCore.framework/Versions/Current/Headers
55    QTFLAFS   += -I$(QTHOME)/lib/QtGui.framework/Versions/Current/Headers
56    QTFLAGS   += -I$(QTHOME)/lib/QtOpenGL.framework/Versions/Current/Headers
57    QTFLAGS   += -I$(QTHOME)/lib/QtSql.framework/Versions/Current/Headers
58    QTFLAGS   += -I$(QTHOME)/lib/QtXml.framework/Versions/Current/Headers
59    MOC       := $(QTHOME)/bin/moc
60  endif
61  ifndef QTLIBS
62    QTLIBS    := -F$(QTHOME)/lib -framework QtCore -framework QtGui
63    QTLIBS    += -framework QtOpenGL -framework QtSql -framework QtXml
64  endif
65  ifndef XAWFLAGS
66    XAWFLAGS   := -I/sw/include
67#   XAWFLAGS   := -I/usr/X11R6/include         ##### some installations.
68  endif
69  ifndef XAWLIBS
70    XAWLIBS    := -lXaw
71  endif
72  DLDLIBS   := -ldl
73  ifndef OGLHOME
74    OGLHOME  := /usr/X11R6
75  endif
76  ifndef OGLFLAGS
77    OGLFLAGS  := -I$(OGLHOME)/include
78  endif
79  ifndef OGLLIBS
80    OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
81  endif
82
83  define build-granular-shared-lib
84    @libdir=`(cd $(@D);/bin/pwd)`; \
85     cd $(G4TMPDIR); \
86     g++ -dynamiclib -single_module -undefined dynamic_lookup \
87         -o $$libdir/$(@F) $(INTYLIBS) *.o
88  endef
89  define build-global-shared-lib
90    @libdir=`(cd $(@D);/bin/pwd)`; \
91     cd $(G4TMP)/$(G4SYSTEM); \
92     g++ -dynamiclib -single_module -undefined dynamic_lookup \
93         -o $$libdir/$(@F) $(INTYLIBS) $(foreach dir,$(SUBLIBS),$(dir)/*.o);
94  endef
95
96endif
Note: See TracBrowser for help on using the repository browser.