aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5a591cc..56f81cc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
CC := cc
CFLAGS := -Wall -Wall -pedantic -std=c11
-DLIBS := $(shell pkg-config --libs glfw3 opengl glew)
+DLIBS := -lm $(shell pkg-config --libs glfw3 opengl glew)
OBJDIR = objs
SRCDIR = src
-OBJS = $(addprefix objs/,main.o shader.o)
+OBJS = $(addprefix objs/,main.o shader.o linear.o)
BIN = mverse
-all: build
+all: build run
$(OBJS): | $(OBJDIR)
@@ -19,5 +19,8 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c
build: $(OBJS)
${CC} $^ -o ${BIN} ${DLIBS}
+run:
+ ./${BIN}
+
clean:
@rm $(OBJS) -v
Feel free to download, copy and edit any repo