From 9920239f558a68b47d7f60f161970485bbfe18fe Mon Sep 17 00:00:00 2001 From: huaqo-games Date: Wed, 19 Mar 2025 17:12:36 +0100 Subject: [PATCH] makefile windows ready --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b603ce0..d9fd846 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ -COMPILER = clang +ifeq ($(OS), Windows_NT) + COMPILER = gcc + RAYLIB_FLAGS = -I path\to\raylib\include -L path\to\raylib\lib -lraylib +else + COMPILER = clang + RAYLIB_FLAGS = $(shell pkg-config --libs --cflags raylib) +endif + C_FLAGS = -std=c99 -g -Wall -Werror -Wpedantic -Wconversion -Wshadow -Wstrict-prototypes -fsanitize=address,undefined -O0 -I../include SUPPRESSED_FLAGS = -Wno-conversion -Wno-sign-conversion -Wno-unused-variable -Wno-unused-but-set-variable -RAYLIB_FLAGS = $(shell pkg-config --libs --cflags raylib) SRC = src/main.c TARGET = bin/game