41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $Id: GNUmakefile,v 1.1.1.1 2007/12/12 11:24:11 shiroka Exp $
|
|
# --------------------------------------------------------------
|
|
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
|
|
# --------------------------------------------------------------
|
|
|
|
name := sr1
|
|
G4TARGET := $(name)
|
|
G4EXLIB := true
|
|
##LDFLAGS := $(shell root-config --glibs)
|
|
#ROOTLIBS := ${shell root-config --glibs}
|
|
#LDFLAGS := -L./ ${ROOTLIBS}
|
|
|
|
# Root (exlude libNew and libpthread from library list)
|
|
#ROOTINC = -I$(ROOTSYS)/include
|
|
|
|
# Removed -lHtml for compatibility with root 5.18 (TS)
|
|
# Otherwise keep it, but add also -lThread.
|
|
##ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
|
|
##ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml -lThread
|
|
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit
|
|
ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS))
|
|
ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS))
|
|
#
|
|
ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS))
|
|
#ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS))
|
|
ROOTLIBS := $(filter-out -pthread,$(ROOTLIBS))
|
|
|
|
# Extra flags for G4
|
|
#CPPFLAGS += $(ROOTINC)
|
|
#LDLIBS += $(ROOTLIBS)
|
|
EXTRALIBS += $(ROOTLIBS)
|
|
CPPFLAGS += -g
|
|
ifndef G4INSTALL
|
|
G4INSTALL = ../../..
|
|
endif
|
|
|
|
.PHONY: all
|
|
all: lib bin
|
|
|
|
include $(G4INSTALL)/config/binmake.gmk
|