Skip to content

Commit

Permalink
Consider build type in Makefile using flags
Browse files Browse the repository at this point in the history
  • Loading branch information
DrShahinstein committed Feb 3, 2024
1 parent 3715862 commit 0f2ec4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ CC = gcc
CFLAGS = -Wall -Wextra -Werror -Iinclude
LDFLAGS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11

ifeq ($(BUILD_TYPE), RELEASE)
CFLAGS += -DRELEASE_BUILD
endif

SRC_DIR = src
DATA_DIR = data
BUILD_DIR = build/snake-game
Expand Down

0 comments on commit 0f2ec4b

Please sign in to comment.