From 3b24a477cf566296aa758058aaca96cf0c117141 Mon Sep 17 00:00:00 2001 From: jvech Date: Thu, 25 Aug 2022 21:39:11 -0500 Subject: feat: linear library implemented --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2