| Rev | Line | |
|---|
| [1350] | 1 | # $Id: GNUmakefile,v 1.7 2007/03/04 14:23:25 grichine 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/Boolean/include \
|
|---|
| 22 | -I$(G4BASE)/geometry/solids/CSG/include \
|
|---|
| 23 | -I$(G4BASE)/geometry/solids/specific/include \
|
|---|
| 24 | -I$(G4BASE)/global/management/include \
|
|---|
| 25 | -I$(G4BASE)/global/HEPNumerics/include \
|
|---|
| 26 | -I$(G4BASE)/global/HEPRandom/include \
|
|---|
| 27 | -I$(G4BASE)/global/HEPGeometry/include \
|
|---|
| 28 | -I$(G4BASE)/graphics_reps/include
|
|---|
| 29 |
|
|---|
| 30 | LDLIBS := -lG4geomBoolean -lG4csg -lG4specsolids -lG4geometrymng \
|
|---|
| 31 | -lG4graphics_reps \
|
|---|
| 32 | -lG4intercoms \
|
|---|
| 33 | -lG4hepnumerics \
|
|---|
| 34 | -lG4globman
|
|---|
| 35 |
|
|---|
| 36 | GLOB_LDLIBS := -lG4geometry \
|
|---|
| 37 | -lG4graphics_reps \
|
|---|
| 38 | -lG4global
|
|---|
| 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
|
|---|
| 51 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.