istereo2

diff Makefile @ 10:2a0ef5efb8e2

fixed macosx build
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 27 Sep 2015 04:55:30 +0300
parents 64e15874f3bd
children 018f997dc646
line diff
     1.1 --- a/Makefile	Sat Sep 26 02:56:07 2015 +0300
     1.2 +++ b/Makefile	Sun Sep 27 04:55:30 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