Geant4 Cross Reference |
1 # 1 # 2 # -------- AIX ---------- !!! not supporte 2 # -------- AIX ---------- !!! not supported !!! 3 # AIX-4.3.2 xlC 3 # AIX-4.3.2 xlC 6.0 4 4 5 ifeq ($(G4SYSTEM),AIX-xlC) 5 ifeq ($(G4SYSTEM),AIX-xlC) 6 CXX := xlC 6 CXX := xlC 7 ifdef G4OPTIMISE 7 ifdef G4OPTIMISE 8 CXXFLAGS := -O3 -qtwolink -+ 8 CXXFLAGS := -O3 -qtwolink -+ 9 else 9 else 10 ifdef G4DEBUG 10 ifdef G4DEBUG 11 CXXFLAGS := -g -qdbxextra -qcheck=all - 11 CXXFLAGS := -g -qdbxextra -qcheck=all -qfullpath -qtwolink -+ 12 FCFLAGS := -g 12 FCFLAGS := -g 13 CCFLAGS := -g 13 CCFLAGS := -g 14 endif 14 endif 15 endif 15 endif 16 FC := xlf 16 FC := xlf 17 FCFLAGS += -qextname 17 FCFLAGS += -qextname 18 FCLIBS := -lxlf90 -lxlf 18 FCLIBS := -lxlf90 -lxlf 19 SHEXT := so 19 SHEXT := so 20 LOADLIBS += -lm -lstdc++ 20 LOADLIBS += -lm -lstdc++ 21 ifndef X11FLAGS 21 ifndef X11FLAGS 22 X11FLAGS := -I/usr/include/X11/extensions 22 X11FLAGS := -I/usr/include/X11/extensions -I/usr/include/X11 23 endif 23 endif 24 ifndef X11LIBS 24 ifndef X11LIBS 25 X11LIBS := -L/usr/lib -lXmu -lX11 -lXext 25 X11LIBS := -L/usr/lib -lXmu -lX11 -lXext 26 endif 26 endif 27 ifndef XMFLAGS 27 ifndef XMFLAGS 28 XMFLAGS := -I/usr/include/Motif1.2 28 XMFLAGS := -I/usr/include/Motif1.2 29 endif 29 endif 30 ifndef XMLIBS 30 ifndef XMLIBS 31 XMLIBS := -L/usr/lib -lXm -lXt -lX11 31 XMLIBS := -L/usr/lib -lXm -lXt -lX11 32 endif 32 endif 33 ifndef XAWFLAGS 33 ifndef XAWFLAGS 34 XAWFLAGS := -I/usr/include/X11 34 XAWFLAGS := -I/usr/include/X11 35 endif 35 endif 36 ifndef XAWLIBS 36 ifndef XAWLIBS 37 XAWLIBS := -L/usr/lib -lXaw -lXmu -lXt - 37 XAWLIBS := -L/usr/lib -lXaw -lXmu -lXt -lX11 -lXext 38 endif 38 endif 39 ifndef OGLFLAGS 39 ifndef OGLFLAGS 40 OGLFLAGS := -I$(OGLHOME)/include 40 OGLFLAGS := -I$(OGLHOME)/include 41 endif 41 endif 42 ifndef OGLLIBS 42 ifndef OGLLIBS 43 OGLLIBS := -L$(OGLHOME)/lib -lGL 43 OGLLIBS := -L$(OGLHOME)/lib -lGL 44 endif 44 endif 45 45 46 define build-granular-shared-lib 46 define build-granular-shared-lib 47 @libdir=`(cd $(@D);/bin/pwd)`; \ 47 @libdir=`(cd $(@D);/bin/pwd)`; \ 48 cd $(G4TMPDIR); \ 48 cd $(G4TMPDIR); \ 49 $(CXX) -G -o $$libdir/$(@F) $(INTYLIBS) *. 49 $(CXX) -G -o $$libdir/$(@F) $(INTYLIBS) *.o 50 endef 50 endef 51 define build-global-shared-lib 51 define build-global-shared-lib 52 @libdir=`(cd $(@D);/bin/pwd)`; \ 52 @libdir=`(cd $(@D);/bin/pwd)`; \ 53 cd $(G4TMP)/$(G4SYSTEM); \ 53 cd $(G4TMP)/$(G4SYSTEM); \ 54 $(CXX) -r -G -o $$libdir/$(@F) $(INTYLIBS 54 $(CXX) -r -G -o $$libdir/$(@F) $(INTYLIBS) \ 55 $(foreach dir, $(SUBLIBS), $(dir)/*.o); 55 $(foreach dir, $(SUBLIBS), $(dir)/*.o); 56 endef 56 endef 57 57 58 endif 58 endif