Skip to content

Commit

Permalink
Add code for compiling the DISCON file on a linux system. The .dll fo…
Browse files Browse the repository at this point in the history
…rmat becomes a .so format.
  • Loading branch information
Bart Doekemeijer committed Oct 9, 2017
1 parent 23c7033 commit 33ce609
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Scripts/compileDISCON.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Cd to correct directory
cd ../Source
# Remove old files
rm -rf *.o *.mod *.a

# Compile individual codes
gcc -c --free-form -ffree-line-length-0 FunctionToolbox.f90
gcc -c --free-form -ffree-line-length-0 Filters.f90
gcc -c --free-form -ffree-line-length-0 IPC.f90

# COMPILE DISCON
#gcc -c --free-form -ffree-line-length-0 DISCON.f90
rm -f ../DISCON/DISCON.so
#ar rcs ../DISCON/DISCON.a DISCON.o
gcc -shared -ffree-line-length-0 -o ../DISCON/DISCON.so -fPIC DISCON.f90
rm -rf *.o *.mod

echo 'The output file is: "../DISCON/DISCON.so".'

# Return to initial directory
cd ../Scripts

0 comments on commit 33ce609

Please sign in to comment.