Browse Source

Update Allegro for OS X

Frederik De Bleser 9 years ago
parent
commit
a88293a647
1 changed files with 6 additions and 1 deletions
  1. 6 1
      demo/allegro5/Makefile

+ 6 - 1
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