aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-02-02 03:25:59 -0500
committerPaul Duncan <pabs@pablotron.org>2019-02-02 03:25:59 -0500
commita3792d8769d2dc8ee0abae758c6fae3a35b5dfbc (patch)
tree079d372fb69cabfe6dded99f231408c8b13022cd /Makefile
parentbf8f5126a6d621be4996df842c70d60297f87706 (diff)
downloadkmeans-a3792d8769d2dc8ee0abae758c6fae3a35b5dfbc.tar.bz2
kmeans-a3792d8769d2dc8ee0abae758c6fae3a35b5dfbc.zip
add km_search()
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3873d7b..d3e0254 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
+APP=km-test
CFLAGS=-W -Wall -Wextra -pedantic -std=c11 -O2
-OBJS=km.o
+OBJS=km.o main.o
+LIBS=-lm
-all: $(OBJS)
+.PHONY=all clean
+app: $(APP)
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(OBJS) $(LIBS)
%.o: %.c
$(CC) -c $(CFLAGS) $<