From 60c40e5c9837d025286c78a59b32b39f84713d5d Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 8 Aug 2022 22:04:06 -0500 Subject: First commit, let's learn opengl seriously --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2