-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
77 lines (56 loc) · 1.52 KB
/
Makefile
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# |
# o---------------------------------------------------------------------o
# |
# | PTC makefile
# |
# o---------------------------------------------------------------------o
# |
# | Polymorphic Tracking Code from Etienne Forest
# |
# | For more information, see http://cern.ch/mad
# |
# o---------------------------------------------------------------------o
# |
# | $Id$
# |
# For makefile documentation, please read make/README
# For information and bug report, please contact [email protected]
###################
# Project settings
PROJECT := libptc
#this is for lib
DESTDIR := build
#example sprogram srouce
PROG_SRCDIR2 := book_examples
PROG_SRCDIR := myexamples
PROG_DESTDIR := bin
#################
# Build settings
#
# architecture bit: detect/32/64 (default is detect)
ARCH := detect
# debugging mode: yes/no (default is no)
DEBUG := no
# profiling mode: yes/no (default is no)
PROFILE := no
# make shared lib: yes/no (default is yes)
SHARED := yes
#############################
# Compilers/Linkers settings
# see make/compiler.* for supported compilers
# GNU=yes sets CC=gcc, CXX=g++, FC=gfortran (default)
# Intel=yes sets CC=icc/icl, CXX=icc/icl, FC=ifort (use icl on Windows)
# Fortran compiler (default is gfortran)
FC := gfortran
# Linker (default is Fortran compiler, deferred)
LD = $(FC)
# Archiver (default is ar)
AR := ar
####################
# Includes settings
FILE_F90 := Makefile_f90
####################
# Makefile includes
makedir := ./make
include $(makedir)/make.inc
# end of makefile