source: PSPA/madxPSPA/make/make.inc @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 3.0 KB
Line 
1# |
2# o---------------------------------------------------------------------o
3# |
4# | MAD makefile - includes
5# |
6# o---------------------------------------------------------------------o
7# |
8# | Methodical Accelerator Design
9# |
10# | Copyright (c) 2011+ CERN, mad@cern.ch
11# |
12# | For more information, see http://cern.ch/mad
13# |
14# o---------------------------------------------------------------------o
15# |
16# | $Id$
17# |
18
19# debug
20ifeq ($(DEBUG_MAKE),yes)
21$(warning MAKEFLAGS = $(MAKEFLAGS))
22$(warning MAKEOVERRIDES = $(MAKEOVERRIDES))
23endif
24
25# make utilities (no rules!)
26include $(makedir)/make.lib
27
28# make config (no rules!)
29include $(makedir)/make.cfg
30
31# user's preprocessing extra stuff
32-include $(FILE_PRE)
33
34# actions
35include $(makedir)/make.act
36
37# system
38$(call exists, $(makedir)/system.$(OSTYPE), \
39unable to include settings for system OSTYPE=$(OSTYPE) (make [options] infoinc); \
40operating system not supported)
41include $(makedir)/system.$(OSTYPE)
42
43# C compiler
44ifneq ($(CCNAME),)
45$(call exists, $(makedir)/compiler.$(CCNAME), \
46unable to include settings for compiler CC=$(CCNAME) (make [options] infoinc); \
47check CC or CCNAME for correct compiler configuration file)
48include $(makedir)/compiler.$(CCNAME)
49endif
50
51# C++ compiler
52ifneq ($(CXXNAME),)
53$(call exists, $(makedir)/compiler.$(CXXNAME), \
54unable to include settings for compiler CXX=$(CXXNAME) (make [options] infoinc); \
55check CXX or CXXNAME for correct compiler configuration file)
56include $(makedir)/compiler.$(CXXNAME)
57endif
58
59# Fortran compiler
60ifneq ($(FCNAME),)
61$(call exists, $(makedir)/compiler.$(FCNAME), \
62unable to include settings for compiler FC=$(FCNAME) (make [options] infoinc); \
63check FC or FCNAME for correct compiler configuration file)
64include $(makedir)/compiler.$(FCNAME)
65endif
66
67# linker
68ifneq ($(LDNAME),)
69$(call exists, $(makedir)/linker.$(LDNAME), \
70unable to include settings for linker LD=$(LDNAME) (make [options] infoinc); \
71check LD or LDNAME for correct linker configuration file)
72include $(makedir)/linker.$(LDNAME)
73endif
74
75# archiver
76ifneq ($(ARNAME),)
77$(call exists, $(makedir)/linker.$(ARNAME), \
78unable to include settings for archiver AR=$(ARNAME) (make [options] infoinc); \
79check AR or ARNAME for correct linker configuration file)
80include $(makedir)/linker.$(ARNAME)
81endif
82
83# tester
84ifneq ($(NDNAME),)
85$(call exists, $(makedir)/tester.$(NDNAME), \
86unable to include settings for tester ND=$(NDNAME) (make [options] infoinc); \
87check ND or NDNAME for correct tester configuration file)
88include $(makedir)/tester.$(NDNAME)
89endif
90
91# project files
92-include $(FILE_VER)
93-include $(FILE_CPP)
94-include $(FILE_C)
95-include $(FILE_CXX)
96-include $(FILE_F90)
97-include $(FILE_LIB)
98-include $(FILE_SYS)
99-include $(FILE_TEST)
100
101# compilers, linker, depend and test rules
102include $(makedir)/compiler.rules
103include $(makedir)/linker.rules
104include $(makedir)/tester.rules
105include $(makedir)/depend.rules
106
107# cleaning & debugging
108include $(makedir)/clean.rules
109include $(makedir)/info.rules
110
111# user's postprocessing extra stuff
112-include $(FILE_POST)
113
114# end of makefile
Note: See TracBrowser for help on using the repository browser.