summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-08-29 07:31:45 +0200
committerBad Diode <bd@badd10de.dev>2022-08-29 07:31:45 +0200
commitd5f10240f4598af6486317100f9b995cecd0eb29 (patch)
treec498de3a4510990878eaa2a4b1326eb97882df03 /Makefile
parentd2a2381066a5aafc71b4c930afa5a473b3bd629b (diff)
downloadogl-monotext-d5f10240f4598af6486317100f9b995cecd0eb29.tar.gz
ogl-monotext-d5f10240f4598af6486317100f9b995cecd0eb29.zip
Change makefile for Linux dev
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 57c2774..4ad0a2a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
4# Source code location and files to watch for changes. 4# Source code location and files to watch for changes.
5SRC_DIR := src 5SRC_DIR := src
6BUILD_DIR := build 6BUILD_DIR := build
7SRC_MAIN := $(SRC_DIR)/main.c 7SRC_MAIN := $(SRC_DIR)/main.c $(SRC_DIR)/glad/src/glad.c
8WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") 8WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h")
9INC_DIRS := $(shell find $(SRC_DIR) -type d) 9INC_DIRS := $(shell find $(SRC_DIR) -type d)
10INC_FLAGS := $(addprefix -I,$(INC_DIRS)) 10INC_FLAGS := $(addprefix -I,$(INC_DIRS))
@@ -15,11 +15,11 @@ BIN := $(BUILD_DIR)/$(TARGET)
15 15
16# Compiler and linker configuration. 16# Compiler and linker configuration.
17CC := cc 17CC := cc
18CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" -Wno-missing-braces 18CFLAGS := -std=c99 -Wall -Wextra -DBIN_NAME=\"$(TARGET)\" -Wno-missing-braces
19CFLAGS += $(INC_FLAGS) 19CFLAGS += $(INC_FLAGS)
20NASM_FLAGS ?= -felf64 20NASM_FLAGS ?= -felf64
21LDFLAGS := 21LDFLAGS :=
22LDLIBS := -lglfw -framework OpenGL 22LDLIBS := -lglfw -lGL
23RELEASE_CFLAGS := -DNDEBUG -O2 23RELEASE_CFLAGS := -DNDEBUG -O2
24DEBUG_CFLAGS := -DDEBUG -O0 -g 24DEBUG_CFLAGS := -DDEBUG -O0 -g
25 25