gammapy/ringtophat — Issue #9: Build and install library
Author: cdeil
Created: 2012-02-29 11:12:39+00:00
State: open

At the moment `src/Makefile` doesn't create a library, just an object file.
We want a library so that other programs can link it and also a `make install`.

Here is an example Makefile that might work:
http://stackoverflow.com/questions/885451/makefile-for-shared-libraries

If this does work on the common systems (Linux and Mac with gcc and clang) I'd much prefer this simple solution over using autotools.

Also what compile options do we want? At the moment we have this:

```
CFLAGS=-Wall -g -std=c99 #-march=native -pipe -fomit-frame-pointer
```
Ramin, I had to comment out some of the options you had used to make it work on my Mac.
I guess we want `-03` and not `-g` for speed tests?
Do you think we should use `march`, `pipe` or `fomit-frame-pointer` for some reason?