| 1 | # $Id: GNUmakefile,v 1.3 2005/11/24 17:28:41 japost Exp $
|
|---|
| 2 | # ----------------------------------------------------------------
|
|---|
| 3 | # Makes test program in environment variable G4TARGET.
|
|---|
| 4 | # ----------------------------------------------------------------
|
|---|
| 5 |
|
|---|
| 6 | ifndef G4TARGET
|
|---|
| 7 | G4TARGET := $(TESTTARGET)
|
|---|
| 8 | endif
|
|---|
| 9 |
|
|---|
| 10 | ifndef G4INSTALL
|
|---|
| 11 | G4INSTALL = ../../../..
|
|---|
| 12 | endif
|
|---|
| 13 |
|
|---|
| 14 | G4EXEC_BUILD = true
|
|---|
| 15 |
|
|---|
| 16 | include $(G4INSTALL)/config/architecture.gmk
|
|---|
| 17 |
|
|---|
| 18 | # Override some variables for binmake.gmk.
|
|---|
| 19 | #
|
|---|
| 20 | INCFLAGS := -I$(G4BASE)/geometry/management/include \
|
|---|
| 21 | -I$(G4BASE)/geometry/volumes/include \
|
|---|
| 22 | -I$(G4BASE)/geometry/navigation/include \
|
|---|
| 23 | -I$(G4BASE)/geometry/magneticfield/include \
|
|---|
| 24 | -I$(G4BASE)/geometry/solids/CSG/include \
|
|---|
| 25 | -I$(G4BASE)/materials/include \
|
|---|
| 26 | -I$(G4BASE)/global/management/include \
|
|---|
| 27 | -I$(G4BASE)/global/HEPRandom/include \
|
|---|
| 28 | -I$(G4BASE)/global/HEPGeometry/include \
|
|---|
| 29 | -I$(G4BASE)/graphics_reps/include \
|
|---|
| 30 | -I$(G4BASE)/intercoms/include
|
|---|
| 31 |
|
|---|
| 32 | LDLIBS := -lG4csg -lG4navigation -lG4volumes \
|
|---|
| 33 | -lG4magneticfield -lG4geometrymng \
|
|---|
| 34 | -lG4graphics_reps \
|
|---|
| 35 | -lG4materials \
|
|---|
| 36 | -lG4intercoms -lG4UIbasic -lG4UIcommon \
|
|---|
| 37 | -lG4hepnumerics -lG4globman
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | include $(G4INSTALL)/config/binmake.gmk
|
|---|
| 41 |
|
|---|
| 42 | .PHONY: clean_all
|
|---|
| 43 |
|
|---|
| 44 | clean_all:
|
|---|
| 45 | @for i in *.cc; do \
|
|---|
| 46 | (target=`basename $$i .cc`; \
|
|---|
| 47 | echo "Removing $$target ... "; \
|
|---|
| 48 | $(MAKE) clean G4SKIP_DEPEND=1 G4TARGET=$$target); done
|
|---|
| 49 | @echo "Wiping output file ... "
|
|---|
| 50 | @$(RM) -rf test.out
|
|---|