From a88293a6475e2ed2946607cb29eae1b40135498d Mon Sep 17 00:00:00 2001 From: Frederik De Bleser Date: Tue, 19 Apr 2016 13:55:15 +0200 Subject: [PATCH] Update Allegro for OS X --- demo/allegro5/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/allegro5/Makefile b/demo/allegro5/Makefile index 0d3bd7e..2291c7e 100644 --- a/demo/allegro5/Makefile +++ b/demo/allegro5/Makefile @@ -15,7 +15,12 @@ ifeq ($(OS),Windows_NT) BIN := $(BIN).exe LIBS = -lmingw32 -lallegro -lallegro_primitives -lm else -LIBS = -lallegro -lallegro_primitives -lGL -lm -lGLU -lGLEW + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Darwin) + LIBS = -lallegro -lallegro_primitives -lallegro_main -framework OpenGL -lm -lGLEW + else + LIBS = -lallegro -lallegro_primitives -lallegro_main -lGL -lm -lGLU -lGLEW + endif endif # Modes