forked from MethodicalAcceleratorDesign/MAD-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile_cpp
43 lines (36 loc) · 828 Bytes
/
Makefile_cpp
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
43
# |
# o---------------------------------------------------------------------o
# |
# | MAD makefile - C preprocessing settings
# |
# o---------------------------------------------------------------------o
# |
# | Methodical Accelerator Design
# |
# | Copyright (c) 2011+ CERN, mad@cern.ch
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
#
# defines
#
ifeq ($(DEBUG),yes)
CPPFLAGS += -D_ASSERT_DBG
endif
ifeq ($(ONLINE),yes)
CPPFLAGS += -D_ONLINE
endif
ifeq ($(NTPSA),yes)
CPPFLAGS += -D_NTPSA
endif
ifeq ($(USEGC),yes)
CPPFLAGS += -D_USEGC -DSTATIC=static $(call incdir,libs/gc/$(GCDIR)/include)
ifeq ($(OSTYPE),Windows)
CPPFLAGS += -DALL_INTERIOR_POINTERS -DGC_NOT_DLL -DDONT_USE_USER32_DLL
endif
endif
# end of makefile