-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
36 lines (28 loc) · 1.03 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: GNUmakefile,v 1.2 2003/01/23 15:31:39 maire Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
name := WChSandBox
G4TARGET := $(name)
G4EXLIB := true
ifndef G4INSTALL
#G4INSTALL = ../../..
#G4INSTALL = /home/marc/LinuxSystemFiles/GEANT4/geant4.10.01.p02
G4INSTALL = /home/marc/LinuxSystemFiles/GEANT4/geant4-9.04.p04
endif
#CPPFLAGS += -I$ROOTSYS/include
#ROOTCFLAGS := $(shell root-config --cflags) -DUSE_ROOT -fPIC
#ROOTLIBS := $(shell root-config --libs)
CPPFLAGS += $(shell root-config --cflags) -g -w
#CPPFLAGS:= $(filter-out -Wall,$(CPPFLAGS))
LDFLAGS += $(shell root-config --libs) -g -w
CXXFLAGS = "$CXXFLAGS-std=c++98"
EXTRALIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
.PHONY: all
all: lib bin
include $(G4INSTALL)/config/binmake.gmk
LDFLAGS := $(LDFLAGS) -L$(G4LIB)/$(G4SYSTEM)
visclean:
rm -f g4*.prim g4*.eps g4*.wrl
rm -f .DAWN_*
include GNUmakefile_root