-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.yaml
More file actions
34 lines (28 loc) · 792 Bytes
/
package.yaml
File metadata and controls
34 lines (28 loc) · 792 Bytes
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
name: haskell-fortran
dependencies:
- base >= 4.7 && < 5
executables:
main:
source-dirs: src
main: Main.hs
dependencies:
- hmatrix
library:
source-dirs: src
dependencies:
- hmatrix
# 3_transpose doesn't need fortran, so GHC can link to the C files directly and
# automatically handles compiling them.
include-dirs: c/3_transpose
c-sources: c/3_transpose/lib.c
# These libraries link to Fortran code, so must be compiled into C objects, and
# then archived into dynamically shared libraries using `gcc -shared`.
extra-lib-dirs:
- EDIT_ME_TO_ABSOLUTE_PATH/haskell-fortran/c/1_hello
- EDIT_ME_TO_ABSOLUTE_PATH/haskell-fortran/c/2_fpow
- EDIT_ME_TO_ABSOLUTE_PATH/haskell-fortran/c/4_scalarmul
extra-libraries:
- hello
- fpow
- scalarmul
- gfortran