Files
geant4/examples/advanced/radiation_monitor/GNUmakefile
T
2016-06-09 14:44:26 +02:00

53 lines
1.1 KiB
Makefile

# $Id: GNUmakefile,v 1.6 2005/11/24 02:34:48 capra Exp $
# --------------------------------------------------------------
# GNUmakefile for examples with internal subpackages
# R. Capra, 09 Sep 2005
# --------------------------------------------------------------
name := Radmon
G4TARGET := $(name)
G4EXLIB := true
SUBDIRS := userActions generalPurpose materials sensitivity detector physics generator
ifdef G4ANALYSIS_USE
SUBDIRS += analysis
endif
SUBDIRS += application
ifndef G4INSTALL
G4INSTALL = ../../..
endif
.PHONY: all bin makesub clean cleansub
all: makesub lib bin
include $(G4INSTALL)/config/binmake.gmk
ifdef G4ANALYSIS_USE
CPPFLAGS += `aida-config --include`
CPPFLAGS += -DG4ANALYSIS_USE
LDFLAGS += `aida-config --lib`
LOADLIBS += `aida-config --lib`
endif
CPPFLAGS += -I./detector/include \
-I./generalPurpose/include \
-I./application/include
makesub:
@for dir in $(SUBDIRS); do ( \
echo Entering $$dir ... ; \
cd $$dir; \
$(MAKE) obj );\
done
clean:: cleansub
cleansub:
@for dir in $(SUBDIRS); do ( \
echo Entering $$dir ...; \
cd $$dir; \
$(MAKE) clean );\
done