-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.ODE
42 lines (33 loc) · 1.51 KB
/
Makefile.ODE
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
# -----------------------------------------------------------------
# $Revision: 1.3 $
# $Date: 2012/09 $
# -----------------------------------------------------------------
# Copyright (c) 2002, The Regents of the University of California.
# Produced at the Lawrence Livermore National Laboratory.
# All rights reserved.
# For details, see the LICENSE file.
# -----------------------------------------------------------------
# Modifed from Makefile for CVODE serial examples.
#
# -----------------------------------------------------------------
prefix = ${STOCHKIT_ODE}/cvodes/cvodes-2.7.0/cvodes
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
CPP = gcc -E
CPPFLAGS =
CC = gcc
CFLAGS = -g3 -O2
LDFLAGS =
LIBS = -lm
INCLUDES = -I${includedir}
LIBRARIES = -lsundials_cvodes -lsundials_nvecserial ${LIBS}
LIBRARIES_BL =
#GENERATED_CODE = cvodes_FSA_dns
#GENERATED_CODE_PATH = .
# -----------------------------------------------------------------------------------------
${GENERATED_CODE}:
${CC} ${GENERATED_CODE_PATH}/${GENERATED_CODE}.c -o ${GENERATED_CODE_PATH}/bin/${GENERATED_CODE} ${CFLAGS} ${LDFLAGS} -L${libdir} ${LIBRARIES} ${LIBRARIES_BL} ${INCLUDES}
${GENERATED_CODE}_debug:
${CC} -DDEBUG ${GENERATED_CODE_PATH}/${GENERATED_CODE}.c -o ${GENERATED_CODE_PATH}/bin/${GENERATED_CODE}_debug ${CFLAGS} ${LDFLAGS} -L${libdir} ${LIBRARIES} ${LIBRARIES_BL} ${INCLUDES}
# -----------------------------------------------------------------------------------------