-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.mk
61 lines (45 loc) · 1.86 KB
/
project.mk
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
################################################################
# project name
################################################################
project_name := ndsu3lib
################################################################
# modules -- list of directories in which to search
# for module.mk include files
################################################################
# libraries
# Caution: Order of libraries is important since used also in linking.
# Calling library must precede callee library in listing. That is,
# the most "basic" libraries must go last in the list (unless, of
# course, they are only template libraries, so nobody needs to link to
# them).
modules += .
MAKEFILE_STANDALONE = true
################################################################
# extras -- list of extra files to be included
# in distribution tar file
################################################################
extras := README.md LICENSE.md
################################################################
# additional project-specific make settings and rules
################################################################
# gsl
LDLIBS += -lgsl
LDLIBS += -lgslcblas
CPPFLAGS += -DHAVE_INLINE
# ndsu3lib
CPPFLAGS += -DNDSU3LIB_DBL -DNDSU3LIB_RACAH_GSL -DNDSU3LIB_WSO3_GSL
## FCFLAGS += -ffree-line-length-0
################################
# "neighboring" libraries
################################
# put parent directory in include path
# This allows use of #include<> and relative path for current
# module header files. Putting this *before* $(install_prefix)/include insures
# latest development versions are found before any installed versions.
#
# Note: This doesn't let us find *libraries* in the parent's
# subdirectories, though. These must be defined separately through
CPPFLAGS += -I..
# link to neghboring libraries
LDFLAGS += -L../fmt
LDLIBS += -lfmt