aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0372ecf..19691c7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
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
+OBJS=src/km-set.o src/km-draw.o src/km-load.o src/km-find.o \
+ src/km-rand.o src/km-solve.o src/km-init-rand.o src/main.o \
+ src/km-init-forgy.o src/km-init-kmeans.o src/km-init.o \
+ src/km-rand-libc.o src/km-rand-path.o src/km-rand-erand48.o
LIBS=-lm
.PHONY=all clean
@@ -11,8 +12,8 @@ all: $(APP)
$(APP): $(OBJS)
$(CC) $(CFLAGS) -o $(APP) $(OBJS) $(LIBS)
-%.o: %.c
+%.o: src/%.c
$(CC) -c $(CFLAGS) $<
clean:
- $(RM) $(OBJS)
+ $(RM) $(APP) $(OBJS)