Rev | Line | |
---|
[807] | 1 | # $Id: GNUmakefile,v 1.6 2005/11/24 02:34:48 capra Exp $ |
---|
| 2 | # -------------------------------------------------------------- |
---|
| 3 | # GNUmakefile for examples with internal subpackages |
---|
| 4 | # R. Capra, 09 Sep 2005 |
---|
| 5 | # -------------------------------------------------------------- |
---|
| 6 | |
---|
| 7 | name := Radmon |
---|
| 8 | G4TARGET := $(name) |
---|
| 9 | G4EXLIB := true |
---|
| 10 | SUBDIRS := userActions generalPurpose materials sensitivity detector physics generator |
---|
| 11 | |
---|
| 12 | ifdef G4ANALYSIS_USE |
---|
| 13 | SUBDIRS += analysis |
---|
| 14 | endif |
---|
| 15 | |
---|
| 16 | SUBDIRS += application |
---|
| 17 | |
---|
| 18 | ifndef G4INSTALL |
---|
| 19 | G4INSTALL = ../../.. |
---|
| 20 | endif |
---|
| 21 | |
---|
| 22 | .PHONY: all bin makesub clean cleansub |
---|
| 23 | all: makesub lib bin |
---|
| 24 | |
---|
| 25 | include $(G4INSTALL)/config/binmake.gmk |
---|
| 26 | |
---|
| 27 | ifdef G4ANALYSIS_USE |
---|
| 28 | CPPFLAGS += `aida-config --include` |
---|
| 29 | CPPFLAGS += -DG4ANALYSIS_USE |
---|
| 30 | LDFLAGS += `aida-config --lib` |
---|
| 31 | LOADLIBS += `aida-config --lib` |
---|
| 32 | endif |
---|
| 33 | |
---|
| 34 | CPPFLAGS += -I./detector/include \ |
---|
| 35 | -I./generalPurpose/include \ |
---|
| 36 | -I./application/include |
---|
| 37 | |
---|
| 38 | makesub: |
---|
| 39 | @for dir in $(SUBDIRS); do ( \ |
---|
| 40 | echo Entering $$dir ... ; \ |
---|
| 41 | cd $$dir; \ |
---|
| 42 | $(MAKE) obj );\ |
---|
| 43 | done |
---|
| 44 | |
---|
| 45 | clean:: cleansub |
---|
| 46 | |
---|
| 47 | cleansub: |
---|
| 48 | @for dir in $(SUBDIRS); do ( \ |
---|
| 49 | echo Entering $$dir ...; \ |
---|
| 50 | cd $$dir; \ |
---|
| 51 | $(MAKE) clean );\ |
---|
| 52 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.