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

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

make 3.80 added because 3.81 is bad

File size: 2.2 KB
Line 
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
21#OSC:begin
22# OpenScientist compilation and link flags :
23# Disconnect the usage of other GUIs :
24G4UI_USE_TERMINAL :=
25G4UI_USE_XM :=
26G4UI_USE_XAW :=
27G4UI_USE_QT :=
28G4UI_USE_WIN32 :=
29G4UI_USE_TCSH :=
30G4UI_USE_GAG :=
31G4UI_USE_OSC :=
32# Disconnect the usage of vis drivers that may interfer :
33G4VIS_USE_OPENGLX :=
34G4VIS_USE_OPENGLXM :=
35G4VIS_USE_OPENGLWIN32 :=
36G4VIS_USE_OIX :=
37G4VIS_USE_OIWIN32 :=
38G4VIS_USE_OPACS :=
39CPPFLAGS += `osc-config --g4lab_incs`
40INTYLIBS += $(shell osc-config --g4lab_libs)
41INTYLIBS += `osc-config --iv_libs`
42
43# Enable OpenScientist AIDA implementation :
44G4ANALYSIS_USE := 1
45G4ANALYSIS_AIDA_CONFIG_CFLAGS = `aida-config --include`
46G4ANALYSIS_AIDA_CONFIG_LIBS = `OnXLab_aida_config --libs`
47#G4ANALYSIS_AIDA_CONFIG_LIBS = `OnXLab_aida_config --libs`
48#OSC:end
49
50include $(G4INSTALL)/config/binmake.gmk
51
52CXXFLAGS_WITHOUT_O := $(filter-out -O% , $(CXXFLAGS))
53CXXFLAGS_WITHOUT_O := $(filter-out +O% , $(CXXFLAGS_WITHOUT_O))
54
55#
56# A01HadronPhysics fails to compile in optimized mode on Linux, Darwin, using g++
57# so it needs this special rule. Hans-Peter Wellish.
58#
59ifeq ($(G4SYSTEM),Linux-g++)
60   A01HADRON_NO_OPTIMIZE = 1
61endif
62ifeq ($(G4SYSTEM),Linux-g++2)
63   A01HADRON_NO_OPTIMIZE = 1
64endif
65ifeq ($(G4SYSTEM),Linux-g++3)
66   A01HADRON_NO_OPTIMIZE = 1
67endif
68ifeq ($(G4SYSTEM),Darwin-g++)
69   A01HADRON_NO_OPTIMIZE = 1
70endif
71ifeq ($(G4SYSTEM),Darwin-g++2)
72   A01HADRON_NO_OPTIMIZE = 1
73endif
74ifeq ($(G4SYSTEM),Darwin-g++3)
75   A01HADRON_NO_OPTIMIZE = 1
76endif
77
78ifdef A01HADRON_NO_OPTIMIZE
79$(G4TMP)/$(G4SYSTEM)/$(name)/A01HadronPhysics.o: src/A01HadronPhysics.cc
80        @echo "Compiling A01HadronPhysics.cc without optimization..."
81        @$(CXX) $(CXXFLAGS_WITHOUT_O) $(CPPFLAGS) -c $(OUT_OBJ)$@ src/A01HadronPhysics.cc
82endif
83
84ifdef G4ANALYSIS_USE
85   CPPFLAGS += `aida-config --include`
86   LDLIBS += `aida-config --lib`
87endif
Note: See TracBrowser for help on using the repository browser.