aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..90ec09f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+CC := cc
+CFLAGS := -Wall -Wall -pedantic -std=c11
+DLIBS := -lglfw -lGLEW -lGL -lm
+OBJDIR = objs
+SRCDIR = src
+OBJS = $(addprefix objs/,main.o linear.o)
+BIN = mverse
+
+all: build
+
+$(OBJS): | $(OBJDIR)
+
+$(OBJDIR):
+ mkdir ${OBJDIR}
+
+$(OBJDIR)/%.o: $(SRCDIR)/%.c
+ ${CC} -c $< -o $@ ${CFLAGS}
+
+build: $(OBJS)
+ ${CC} $^ -o ${BIN} ${DLIBS}
+
+clean:
+ @rm $(OBJS) -v
Feel free to download, copy and edit any repo