-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.66 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.66 KB
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
# -*- mode: makefile -*-
# This SAMPLE Makefile can be used to compile PETSc applications
# Copy this file to your source directory as "Makefile" and MODIFY AS NEEDED.
# See also $PETSC_DIR/share/petsc/Makefile.user for the preferred approach
# You must set the environmental variable(s) PETSC_DIR (and PETSC_ARCH if PETSc was not configured with the --prefix option)
#
# This will use all the compiler flags that PETSc was compiled with, if you do not want the flags use $PETSC_DIR/share/petsc/Makefile.user
# and modify it as noted in the comments
#
# You can set specific values below but that should be rarely needed
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
# For example - a single source file (ex1.c or ex1.F90) can be compiled with:
#
# make ex1
#
# You do not need to edit this makefile at all.
#
# For a multi-file case, suppose you have the source files a.c, b.c, and c.cxx
# This can be built by uncommenting the following two lines.
#
# app : a.o b.o c.o
# $(LINK.C) -o $@ $^ $(LDLIBS)
#
# When linking in a multi-files with Fortran source files a.F90, b.c, and c.cxx
# You may need to use
#
# app : a.o b.o c.o
# $(LINK.F) -o $@ $^ $(LDLIBS)
# If the file c.cxx needs to link with a C++ standard library -lstdc++ , then
# you'll need to add it explicitly. It can go in the rule above or be added to
# a target-specific variable by uncommenting the line below.
# app : LDLIBS += -lstdc++
include ${PETSC_DIR}/lib/petsc/conf/variables
# To access the PETSc variables for the build, including compilers, compiler flags, libraries etc but
# manage the build rules yourself (rarely needed) comment out the next lines
#
include ${PETSC_DIR}/lib/petsc/conf/rules