Skip to content
Snippets Groups Projects
GNUmakefile 1.71 KiB
Newer Older
  • Learn to ignore specific revisions
  • Whitney Armstrong's avatar
    Whitney Armstrong committed
    # --------------------------------------------------------------
    # GNUmakefile beta simulation        Whitney Armstrong 12/16/07
    # --------------------------------------------------------------
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
      name := BETA
      G4TARGET := $(name)
      G4EXLIB := true
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    
    .PHONY: all
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    all: lib bin
    
    
    doc: /home/whit/sane08/InSANE/doc/BETAG4_Doxyfile
    	doxygen /home/whit/sane08/InSANE/doc/BETAG4_Doxyfile
    
    
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    include $(G4INSTALL)/config/binmake.gmk
    
    # ROOT
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
      CPPFLAGS += $(shell root-config --cflags )
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
      CPPFLAGS += -g
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    #   LDLIBS += $(shell root-config --glibs) 
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       LDLIBS += -lGeomPainter -lGeom -lTreeViewer -lSpectrum -lSpectrumPainter -lFoam  
    
       LDLIBS +=  $(shell root-config --ldflags)
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       LDLIBS += $(shell root-config --glibs --libs ) 
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       LDLIBS += -lTreePlayer -lGed -lRGL -lEve -lEG
    
       LDLIBS += $(shell mysql_config --libs)
    
       LDLIBS += -L$(QTHOME)/lib -lQtGui -lQtCore -lQtTest -lQtXml
    #   LDLIBS += $(shell lhapdf-config --ldflags)
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    #LHAPDF
      LDLIBS += $(shell lhapdf-config --ldflags ) 
    
      CPPFLAGS += $(shell lhapdf-config --cppflags )
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    # InSANE 
       LDLIBS += -L$(InSANEDIR)/lib
    
    whit's avatar
    whit committed
       LDLIBS += -lInSANE -lsqlite3 
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       CPPFLAGS += -I$(InSANEDIR)/include
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    # ROOT and  GNU Scientific Librarires and 
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       LDLIBS += -lm  $(shell root-config --nonew --glibs)
    
       LDLIBS += $(shell gsl-config  --libs)
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    # VGM
    
    #   CPPFLAGS  += -I$(VGM_INSTALL)/packages/VGM/include
    #   CPPFLAGS  += -I$(VGM_INSTALL)/packages/BaseVGM/include
    #   CPPFLAGS  += -I$(VGM_INSTALL)/packages/Geant4GM/include
    #   CPPFLAGS  += -I$(VGM_INSTALL)/packages/XmlVGM/include
    #   CPPFLAGS  += -I$(VGM_INSTALL)/packages/RootGM/include
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    #   LDLIBS += -L$(VGM_INSTALL)/lib/$(VGM_SYSTEM)
    #   LDLIBS += -lGeant4GM -lRootGM  -lBaseVGM -lClhepVGM -lXmlVGM
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
       CXXFLAGS  += -O2 -Wall -fPIC
       CXXFLAGS  += $(CPPFLAGS)
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed