istereo2
diff Makefile @ 12:57188f7d9304
merged changes from macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Sep 2015 06:53:31 +0300 |
parents | 64e15874f3bd |
children | 018f997dc646 |
line diff
1.1 --- a/Makefile Mon Sep 28 06:53:06 2015 +0300 1.2 +++ b/Makefile Mon Sep 28 06:53:31 2015 +0300 1.3 @@ -10,10 +10,17 @@ 1.4 1.5 CFLAGS = -pedantic -Wall -g $(def) $(incdir) 1.6 CXXFLAGS = $(CFLAGS) 1.7 -LDFLAGS = -lGL -lGLU -lglut -lGLEW -lm -ldl 1.8 +LDFLAGS = $(libgl) -lm -ldl 1.9 1.10 include libs/Makefile 1.11 1.12 +sys := $(shell uname -s) 1.13 +ifeq ($(sys), Darwin) 1.14 + libgl = -framework OpenGL -framework GLUT -lGLEW 1.15 +else 1.16 + libgl = -lGL -lGLU -lglut -lGLEW 1.17 +endif 1.18 + 1.19 $(bin): $(obj) 1.20 $(CXX) -o $@ $(obj) $(LDFLAGS) 1.21