aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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) $<