source: trunk/geant4/config/sys/WIN32-g++.gmk @ 474

Last change on this file since 474 was 472, checked in by garnier, 17 years ago

r549@wl-72148: laurentgarnier | 2007-05-15 10:37:42 +0200
import de geant4

File size: 1.8 KB
Line 
1#
2# ------ GNU/WIN32 CYGNUS ------   !!! not supported !!!
3#                             Cygnus CygWin - gcc-3.2 and higher
4#                                     Windows 2000/XP
5#
6# Stefano Agostinelli (agos001@pn.itnet.it) - IST Group, Genova
7#
8ifeq ($(G4SYSTEM),WIN32-g++)
9  CXX       := g++
10  CXXFLAGS  := -W -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
11  CXXFLAGS  += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
12  ifdef G4OPTIMISE
13    CXXFLAGS  += -O
14    FCFLAGS   := -O
15    CCFLAGS   := -O
16  else
17    ifdef G4DEBUG
18      CXXFLAGS  += -g
19      FCFLAGS   := -g
20      CCFLAGS   := -g
21    endif
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    := 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  ifndef OGLFLAGS
53    OGLFLAGS  := -I$(OGLHOME)/include
54  endif
55  ifndef OGLLIBS
56    OGLLIBS   := -L$(OGLHOME)/lib -lGLU -lGL
57  endif
58  define build-granular-shared-lib
59    @libdir=`(cd $(@D);/bin/pwd)`; \
60     cd $(G4TMPDIR); \
61     $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) *.o
62  endef
63  define build-global-shared-lib
64    @libdir=`(cd $(@D);/bin/pwd)`; \
65     cd $(G4TMP)/$(G4SYSTEM); \
66     $(CXX) -Wl,-soname,$(@F) -shared -o $$libdir/$(@F) $(INTYLIBS) \
67                    $(foreach dir,$(SUBLIBS),$(dir)/*.o);
68  endef
69
70endif
71
Note: See TracBrowser for help on using the repository browser.