source: trunk/source/processes/scoring/test/test1/GNUmakefile @ 1199

Last change on this file since 1199 was 1199, checked in by garnier, 15 years ago

nvx fichiers dans CVS

File size: 1.4 KB
Line 
1# $Id: GNUmakefile,v 1.1 2006/07/14 14:42:37 asaim Exp $
2# --------------------------------------------------------------
3# GNUmakefile for examples module
4# --------------------------------------------------------------
5
6name := ParaTest
7G4TARGET := $(name)
8G4EXLIB := true
9
10ifndef G4INSTALL
11  G4INSTALL = ../../../../..
12endif
13
14.PHONY: all
15all: lib bin
16
17# A01PhysicsList use hadronic-lists, so it needs below include command.
18#include hadlist.gmk
19
20include $(G4INSTALL)/config/binmake.gmk
21
22CXXFLAGS_WITHOUT_O := $(filter-out -O% , $(CXXFLAGS))
23CXXFLAGS_WITHOUT_O := $(filter-out +O% , $(CXXFLAGS_WITHOUT_O))
24
25#
26# A01HadronPhysics fails to compile in optimized mode on Linux, Darwin, using g++
27# so it needs this special rule. Hans-Peter Wellish.
28#
29ifeq ($(G4SYSTEM),Linux-g++)
30   A01HADRON_NO_OPTIMIZE = 1
31endif
32ifeq ($(G4SYSTEM),Linux-g++2)
33   A01HADRON_NO_OPTIMIZE = 1
34endif
35ifeq ($(G4SYSTEM),Linux-g++3)
36   A01HADRON_NO_OPTIMIZE = 1
37endif
38ifeq ($(G4SYSTEM),Darwin-g++)
39   A01HADRON_NO_OPTIMIZE = 1
40endif
41ifeq ($(G4SYSTEM),Darwin-g++2)
42   A01HADRON_NO_OPTIMIZE = 1
43endif
44ifeq ($(G4SYSTEM),Darwin-g++3)
45   A01HADRON_NO_OPTIMIZE = 1
46endif
47
48ifdef A01HADRON_NO_OPTIMIZE
49$(G4TMP)/$(G4SYSTEM)/$(name)/A01HadronPhysics.o: src/A01HadronPhysics.cc
50        @echo "Compiling A01HadronPhysics.cc without optimization..."
51        @$(CXX) $(CXXFLAGS_WITHOUT_O) $(CPPFLAGS) -c $(OUT_OBJ)$@ src/A01HadronPhysics.cc
52endif
53
Note: See TracBrowser for help on using the repository browser.