Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ CC=gcc
all: ecosim

CFLAGS=-g3 -pedantic -Wall -Wextra
LIBS=-lGL -lm -lglfw -lGLEW

# Platform detection: Automatically select the correct library linking options
OS := $(shell uname -s)
ifneq ($(findstring MINGW,$(OS)),) # Windows (MinGW/MSYS2, matches MINGW64_NT-*, etc.)
LIBS=-lopengl32 -lm -lglfw3 -lglew32
else # Linux/Mac (default to original libs)
LIBS=-lGL -lm -lglfw -lGLEW
endif


ecosim: logger.o quadtree.o graphics.o utils.o agents.o input.o main.o
Expand Down