forked from pihmadmin/PIHM_v2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (44 loc) · 1.36 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
# -----------------------------------------------------------------
# Version: 2.0
# Date: "Nov, 2007"
# -----------------------------------------------------------------
# Programmer: Mukesh Kumar ([email protected])@ PSU
# -----------------------------------------------------------------
# Makefile for PIHM
#
# cvode/pihm/Makefile.
# -----------------------------------------------------------------
SHELL = /bin/sh
srcdir = .
builddir = .
top_builddir = ../../
top_builddir = ../../
prefix = /home1/muk139/sundials
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
CPP = /usr/bin/cc -E
CPPFLAGS =
CC = /usr/bin/gcc
CFLAGS = -g -O0
#CFLAGS =
LDFLAGS =
LIBS = -lm
SRC = pihm.c f.c read_alloc.c initialize.c is_sm_et.c update.c print.c
COMPILER_PREFIX =
LINKER_PREFIX =
SUNDIALS_INC_DIR = $(includedir)
SUNDIALS_LIB_DIR = $(libdir)
SUNDIALS_LIBS = -lsundials_cvode -lsundials_nvecserial -lsundials_shared
# EXEC_FILES = cvdx cvdxe cvbx cvkx cvkxb cvdemd cvdemk
all:
@(echo)
@(echo ' make pihm - make pihm ')
@(echo ' make clean - remove all executable files')
@(echo)
pihm:
@echo '...Compiling PIHM ...'
@$(CC) $(CFLAGS) -I$(SUNDIALS_INC_DIR) -L$(SUNDIALS_LIB_DIR) -o $(builddir)/pihm $(SRC) $(SUNDIALS_LIBS) $(LIBS)
clean:
@rm -f *.o
@rm -f pihm