File: mod2.sh

package info (click to toggle)
lfortran 0.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 46,332 kB
  • sloc: cpp: 137,068; f90: 51,260; python: 6,444; ansic: 4,277; yacc: 2,285; fortran: 806; sh: 524; makefile: 30; javascript: 15
file content (12 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

set -ex

FC=gfortran
#FC=ifort

$FC -o mod2.o -c mod2.f90
$FC -o test_mod2.o -c test_mod2.f90
$FC -o gfort_interop.o -c gfort_interop.f90
$FC -o test_mod2 test_mod2.o mod2.o gfort_interop.o -L. -lmod1 -Wl,-rpath -Wl,.
./test_mod2