Ignore:
Timestamp:
Oct 8, 2008, 3:36:01 AM (16 years ago)
Author:
garnier
Message:

GLQT best integration

File:
1 edited

Legend:

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

    r790 r865  
    3131    CCFLAGS   += -pg
    3232  endif
     33  ifdef G4OPTDEBUG
     34    CXXFLAGS  += -O2 -g
     35    FCFLAGS   += -O2 -g
     36    CCFLAGS   += -O2 -g
     37  endif
    3338  ifdef G4LIB_BUILD_SHARED
    3439    CXXFLAGS  += -fPIC
     
    5661  endif
    5762  ifndef QTHOME
    58     QTHOME     := /usr/local/Qt
     63    QTHOME     := /usr
    5964  endif
    6065  ifndef QTFLAGS
    61     QTFLAGS    := -I$(QTHOME)/include/Qt
    62     QTFLAGS    += -I$(QTHOME)/include
     66    QTFLAGS    := -I$(QTHOME)/include/qt4/Qt
     67    QTFLAGS    += -I$(QTHOME)/include/qt4
    6368  endif
    6469  ifndef QTMOC
    6570    QTMOC      := $(QTHOME)/bin/moc
    6671  endif
    67   ifndef QTGLLIBS
    68     QT3LIBS    := -L$(QTHOME)/lib -lqt-mt
    69     QT4LIBS    := -L$(QTHOME)/lib -lQtCore -lQtGui -lQtOpenGL -lQtSql -lQtXml
    70     QTLIBS     := $(shell test -f $(QTHOME)/lib/libQt3Support.so && echo $(QT4LIBS) || echo $(QT3LIBS))
     72
     73  QT_VERSION   := $(shell test -f $(QTHOME)/lib/libQt3Support.so && echo QT4 || echo QT3)
     74
     75  ifndef GLQTLIBS
     76    ifeq ($(QT_VERSION),QT3)
     77      GLQTLIBS    := -L$(QTHOME)/lib -lqt-mt
     78    else
     79      GLQTLIBS    := -L$(QTHOME)/lib/qt4 -lQtCore -lQtGui -lQtOpenGL -lQtSql -lQtXml
     80    endif
    7181  endif
    7282  ifndef QTLIBS
    73     QT3LIBS    := -L$(QTHOME)/lib -lqt-mt
    74     QT4LIBS    := -L$(QTHOME)/lib -lQtCore -lQtGui -lQtSql -lQtXml
    75     QTLIBS     := $(shell test -f $(QTHOME)/lib/libQt3Support.so && echo $(QT4LIBS) || echo $(QT3LIBS))
     83    ifeq ($(QT_VERSION),QT3)
     84      QTLIBS    := -L$(QTHOME)/lib -lqt-mt
     85    else
     86      QTLIBS    := -L$(QTHOME)/lib/qt4 -lQtCore -lQtGui -lQtSql -lQtXml
     87    endif
    7688  endif
    7789  ifndef XAWFLAGS
Note: See TracChangeset for help on using the changeset viewer.