aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: b5400c7ae29baf2c70c3555c4bf98905259d58d6 (plain)
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
FastCGI program in Fortran
==========================

This is a template [FastCGI](https://en.wikipedia.org/wiki/FastCGI) program written in Fortran.
It uses [libfcgi](https://packages.debian.org/source/sid/libfcgi), so no magic here ;)

Interface to `libfcgi` is taken from the [Flibs collection](http://flibs.sourceforge.net/).


Building
========

`libfcgi` is required. Building is tested with [GNU Fortran](https://gcc.gnu.org/fortran/) only.


The build is based on [CMake](https://cmake.org/), but if you wish:

```sh
$ gfortran -I src/3rd/flibs/src/datastructures src/3rd/flibs/src/cgi/*.f90 src/main.f90 -lfcgi -o fortran-fcgi
```

Building with CMake:

```sh
$ mkdir build
$ cd build
$ cmake ..
$ make
```