forked from MethodicalAcceleratorDesign/MAD-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_cxx
42 lines (34 loc) · 871 Bytes
/
Makefile_cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# |
# o---------------------------------------------------------------------o
# |
# | MAD makefile - C++ files selection
# |
# o---------------------------------------------------------------------o
# |
# | Methodical Accelerator Design
# |
# | Copyright (c) 2011+ CERN, [email protected]
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
vpath %.hpp src
vpath %.cpp src
CXX_HDR := $(notdir $(wildcard src/mad_*.hpp))
CXX_SRC := $(notdir $(wildcard src/mad_*.cpp))
ifeq ($(NTPSA),yes)
CXX_HDR += tpsa.h
CXX_SRC += tpsa.cpp
vpath tpsa.cpp libs/ptc/src
endif
#######################
# C++ dependencies (case not automatic!)
ifeq ($(CXXDEP),)
tpsa.o: tpsa.h
mad_mkthin.o: madx.h
mad_6track_name_mangler.o: mad_6track_name_mangler.h
endif
# end of makefile