aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-02-05 00:22:15 -0500
committerPaul Duncan <pabs@pablotron.org>2019-02-05 00:22:15 -0500
commitf557d1f49a2914c6084dd18efc783395228d8ce0 (patch)
tree51111fc899f01956cbab948b87c241478576870d /Makefile
parentb5065ea43cb13c0b553874305b53963176c70f59 (diff)
downloadkmeans-f557d1f49a2914c6084dd18efc783395228d8ce0.tar.bz2
kmeans-f557d1f49a2914c6084dd18efc783395228d8ce0.zip
mv *.[hc] src/
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)