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