| Line | |
|---|
| 1 | # $Id: GNUmakefile,v 1.12 2007/05/18 10:24:32 gcosmo 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/solids/CSG/include \
|
|---|
| 22 | -I$(G4BASE)/geometry/solids/specific/include \
|
|---|
| 23 | -I$(G4BASE)/global/management/include \
|
|---|
| 24 | -I$(G4BASE)/global/HEPRandom/include \
|
|---|
| 25 | -I$(G4BASE)/global/HEPNumerics/include \
|
|---|
| 26 | -I$(G4BASE)/global/HEPGeometry/include \
|
|---|
| 27 | -I$(G4BASE)/graphics_reps/include
|
|---|
| 28 |
|
|---|
| 29 | LDLIBS := -lG4csg -lG4specsolids -lG4geometrymng \
|
|---|
| 30 | -lG4graphics_reps \
|
|---|
| 31 | -lG4intercoms \
|
|---|
| 32 | -lG4hepnumerics -lG4globman
|
|---|
| 33 |
|
|---|
| 34 | include $(G4INSTALL)/config/binmake.gmk
|
|---|
| 35 |
|
|---|
| 36 | .PHONY: clean_all
|
|---|
| 37 |
|
|---|
| 38 | clean_all:
|
|---|
| 39 | @for i in *.cc; do \
|
|---|
| 40 | (target=`basename $$i .cc`; \
|
|---|
| 41 | echo "Removing $$target ... "; \
|
|---|
| 42 | $(MAKE) clean G4SKIP_DEPEND=1 G4TARGET=$$target); done
|
|---|
| 43 | @echo "Wiping output file ... "
|
|---|
| 44 | @$(RM) -rf test.out *.dat
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.