Makefile 371 Bytes
Newer Older
Fang Yuedong's avatar
Fang Yuedong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#include objects here:
objects = src/add_CTI1.o src/nrutil.o src/ran1.o src/ran2.o src/poidev.o src/gammln.o src/gasdev.o src/sort.o src/creattraps.o

add_CTI.so:  $(objects)
	gcc -shared -fPIC -std=c99 -o $@ $(objects) -lm

# general compilation rules 
.SUFFIXES:  .c   .o
.c.o:
	cc -c $< -O3 -shared -fPIC -std=c99 -o $@
.PHONY : clean
clean:
	rm -f src/*.o add_CTI.so