diff options
author | Bad Diode <bd@badd10de.dev> | 2022-08-29 07:31:45 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-08-29 07:31:45 +0200 |
commit | d5f10240f4598af6486317100f9b995cecd0eb29 (patch) | |
tree | c498de3a4510990878eaa2a4b1326eb97882df03 /Makefile | |
parent | d2a2381066a5aafc71b4c930afa5a473b3bd629b (diff) | |
download | ogl-monotext-d5f10240f4598af6486317100f9b995cecd0eb29.tar.gz ogl-monotext-d5f10240f4598af6486317100f9b995cecd0eb29.zip |
Change makefile for Linux dev
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ | |||
4 | # Source code location and files to watch for changes. | 4 | # Source code location and files to watch for changes. |
5 | SRC_DIR := src | 5 | SRC_DIR := src |
6 | BUILD_DIR := build | 6 | BUILD_DIR := build |
7 | SRC_MAIN := $(SRC_DIR)/main.c | 7 | SRC_MAIN := $(SRC_DIR)/main.c $(SRC_DIR)/glad/src/glad.c |
8 | WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") | 8 | WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") |
9 | INC_DIRS := $(shell find $(SRC_DIR) -type d) | 9 | INC_DIRS := $(shell find $(SRC_DIR) -type d) |
10 | INC_FLAGS := $(addprefix -I,$(INC_DIRS)) | 10 | INC_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. |
17 | CC := cc | 17 | CC := cc |
18 | CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" -Wno-missing-braces | 18 | CFLAGS := -std=c99 -Wall -Wextra -DBIN_NAME=\"$(TARGET)\" -Wno-missing-braces |
19 | CFLAGS += $(INC_FLAGS) | 19 | CFLAGS += $(INC_FLAGS) |
20 | NASM_FLAGS ?= -felf64 | 20 | NASM_FLAGS ?= -felf64 |
21 | LDFLAGS := | 21 | LDFLAGS := |
22 | LDLIBS := -lglfw -framework OpenGL | 22 | LDLIBS := -lglfw -lGL |
23 | RELEASE_CFLAGS := -DNDEBUG -O2 | 23 | RELEASE_CFLAGS := -DNDEBUG -O2 |
24 | DEBUG_CFLAGS := -DDEBUG -O0 -g | 24 | DEBUG_CFLAGS := -DDEBUG -O0 -g |
25 | 25 | ||