volmetrics

diff Makefile @ 35:df4a277adb82

port to macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Feb 2015 21:15:23 +0200
parents 40febfed6cff
children
line diff
     1.1 --- a/Makefile	Mon Aug 18 10:44:11 2014 +0300
     1.2 +++ b/Makefile	Fri Feb 06 21:15:23 2015 +0200
     1.3 @@ -3,13 +3,21 @@
     1.4  dep = $(obj:.o=.d)
     1.5  bin = test1
     1.6  
     1.7 +warn = -pedantic -Wall
     1.8  dbg = -g
     1.9  opt = -O0
    1.10  inc = -Isrc -I/usr/local/include -I/usr/local/lib
    1.11  
    1.12  CXX = g++
    1.13 -CXXFLAGS = -std=c++11 -pedantic -Wall $(dbg) $(opt) $(inc)
    1.14 -LDFLAGS = -lGL -lGLU -lGLEW -lglut -limago -lm -lmetasurf -lglui
    1.15 +CXXFLAGS = -std=c++11 $(warn) $(dbg) $(opt) $(inc)
    1.16 +LDFLAGS = $(libgl) -limago -lm
    1.17 +
    1.18 +ifeq ($(shell uname -s), Darwin)
    1.19 +	libgl = -framework OpenGL -framework GLUT -lGLEW -lglui
    1.20 +	warn += -Wno-deprecated-declarations
    1.21 +else
    1.22 +	libgl = -lGL -lGLU -lglut -lGLEW -lglui
    1.23 +endif
    1.24  
    1.25  $(bin): $(obj)
    1.26  	$(CXX) -o $@ $(obj) $(LDFLAGS)