c0d6b14ca95c6babc205f5839b25171ae4ad5645
[synclust.git] / src / tests / Makefile
1 CC = gcc
2 CFLAGS = -std=gnu99 -g
3 LDFLAGS = -L.. -lcgds -lm ../synclust.so
4 INCLUDES = -I..
5 TARGET = testexec
6
7 all: testexec
8
9 clean:
10 rm -f *.o
11 rm -f testexec
12
13 .PHONY: all clean
14
15 SOURCES = main.c helpers.c t.connexity.c t.convexSolver.c t.dijkstra.c t.kmeansClustering.c t.neighbors.c
16 OBJECTS = $(SOURCES:%.c=%.o)
17
18 testexec: $(OBJECTS)
19 $(CC) $(LDFLAGS) -o $@ $^
20
21 %.o: %.c
22 $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<