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