blob: 0372ecfde6929588ba3833cede7eded14d808995 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
APP=km-test
CFLAGS=-W -Wall -Wextra -Werror -pedantic -std=c11 -O2
OBJS=km-set.o km-draw.o km-load.o km-find.o km-rand.o km-solve.o \
km-init-rand.o km-init-forgy.o km-init-kmeans.o km-init.o main.o \
km-rand-libc.o km-rand-path.o km-rand-erand48.o
LIBS=-lm
.PHONY=all clean
all: $(APP)
$(APP): $(OBJS)
$(CC) $(CFLAGS) -o $(APP) $(OBJS) $(LIBS)
%.o: %.c
$(CC) -c $(CFLAGS) $<
clean:
$(RM) $(OBJS)
|