aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 81c9d9838632fbd5b8518ef4852279d557dd1162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC = gcc
CFLAGS = -Wall -D_GNU_SOURCE -g -fPIC -Werror
LDFLAGS = -lm -lgsl -lgslcblas

libextentsampling.so: extent-sampling.o nd-random.o gaussian-nd-random.o oracles.o utils.o
	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^

depends: $(wildcard *.c)
	$(CC) $(CFLAGS) -MM $^ > depends

include depends

.PHONY: clean
clean:
	rm -vf *.o *.so depends