Ignore:
Timestamp:
Apr 22, 2009, 3:57:29 PM (15 years ago)
Author:
garnier
Message:

amelioration pour Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/sys/Darwin-g++.gmk

    r921 r1017  
    1313  CXX       := g++
    1414  CXXFLAGS  := -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long
     15# CXXFLAGS  += -Wunused-parameter -Winline -Wunreachable-code
    1516  CXXFLAGS  += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe
    1617  ifdef G4OPTIMISE
     
    9091      QTFLAGS   := -I $(QTHOME)/QtCore.framework/Headers
    9192      QTFLAGS   += -I $(QTHOME)/QtGui.framework/Headers
    92       QTFLAGS   += -I $(QTHOME)/QtOpenGL.framework/Headers 
     93      QTFLAGS   += -I $(QTHOME)/QtOpenGL.framework/Headers
    9394    else
    9495      QTFLAGS   := -I $(QTHOME)/include/Qt -I$(QTHOME)/include
     
    9798  ifndef QTLIBPATH
    9899    ifeq ($(QT_VERSION),3)
    99       QTLIBPATH   := $(shell test -d $(QTHOME)/lib/qt3/lib && echo "/lib/qt3/lib" || echo "/lib" )
     100      QTLIBPATH   := $(shell test -d $(QTHOME)/lib/qt3/lib && echo "$(QTHOME)/lib/qt3/lib" || echo "$(QTHOME)/lib" )
    100101    else
    101102      QTLIBPATH  := -F$(QTHOME)
     
    104105  ifndef QTLIBS
    105106    ifeq ($(QT_VERSION),3)
    106       QTLIBS   := -L$(QTHOME)$(QTLIBPATH)
    107       QT3_MT  := $(shell ls  $(QTHOME)$(QTLIBPATH)/libqt-mt.* 2>/dev/null | wc -l )
     107      QTLIBS   := -L$(QTLIBPATH)
     108      QT3_MT  := $(shell ls  $(QTLIBPATH)/libqt-mt.* 2>/dev/null | wc -l )
    108109      ifneq ($(QT3_MT),0)
    109110        QTLIBS  += -lqt-mt
     
    113114      QTLIBS   += -lqui
    114115    else
    115       QTLIBS    := -framework QtCore -framework QtGui
     116      QTLIBS    := $(QTLIBPATH) -framework QtCore -framework QtGui
    116117    endif
    117118  endif
     
    121122        #      GLQTLIBS    := $(QTLIBS)
    122123    else
    123       GLQTLIBS    := -F$(QTHOME) -framework QtCore -framework QtGui
     124      GLQTLIBS    := $(QTLIBPATH) -framework QtCore -framework QtGui
    124125      GLQTLIBS    += -framework QtOpenGL
    125126    endif
     
    128129
    129130  define build-granular-shared-lib
    130     libdir=`(cd $(@D);/bin/pwd)`; \
     131    @libdir=`(cd $(@D);/bin/pwd)`; \
    131132     cd $(G4TMPDIR); \
    132133     $(CXX)  -dynamiclib -single_module  -lgcov -undefined dynamic_lookup \
Note: See TracChangeset for help on using the changeset viewer.