Skip to content
Snippets Groups Projects
Commit 8f3a5182 authored by nicolas's avatar nicolas
Browse files

* change NPSimulation structure to allow conditional compilation

   + geant4 files are kept in the include and src directories
   + one directory is created for each detector. This directory
     contains the associated headers and sources files
   + a script directory is created with some scripts allowing the
     conditional compilation

 * Add #ifdef statements in DetectorConstruction.cc file
   + this applies to each detector header

 * Move G4MultiFunctionnalDetector.hh header from Sharc.cc to 
   Sharc.hh
parent 534e8787
No related branches found
No related tags found
No related merge requests found
Showing
with 32 additions and 0 deletions
File moved
COPYFILES = CopyIncSrcFiles
DELFILES = DelIncSrcFiles
NPSIM = NPSimulation
all: $(DELFILES) $(COPYFILES) $(NPSIM)
CopyIncSrcFiles:
./scripts/copyfiles.sh
DelIncSrcFiles:
./scripts/deletefiles.sh
NPSimulation:
make -f Makefile.geant4
clean:
./scripts/deletefiles.sh
distclean:
./scripts/deletefiles.sh
@echo " + Deleting bin and tmp directories"
rm -rf bin
rm -rf tmp
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
ROOTCONFIG := root-config ROOTCONFIG := root-config
ARCH := $(shell $(ROOTCONFIG) --arch) ARCH := $(shell $(ROOTCONFIG) --arch)
#COPYFILES = CopyIncSrcFiles
# G4 makefile
name := Simulation name := Simulation
G4TARGET := $(name) G4TARGET := $(name)
G4EXLIB := true G4EXLIB := true
...@@ -30,8 +33,13 @@ endif ...@@ -30,8 +33,13 @@ endif
EXTRALIBS = $(shell root-config --glibs) -lMathMore EXTRALIBS = $(shell root-config --glibs) -lMathMore
EXTRALIBS += `$(NPTOOL)/NPLib/liblist` EXTRALIBS += `$(NPTOOL)/NPLib/liblist`
.PHONY: all .PHONY: all
#all: $(COPYFILES) lib bin
all: lib bin all: lib bin
# copying files associated to selected detectors
#CopyIncSrcFiles:
# ./copyfiles.sh
cleanVRML: cleanVRML:
rm -r *.wrl rm -r *.wrl
......
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment