source: trunk/examples/extended/analysis/A01/GNUmakefile@ 807

Last change on this file since 807 was 807, checked in by garnier, 17 years ago

update

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