refmod_test

diff Makefile @ 1:7e911c994ef2

should work on mac now
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Feb 2016 23:21:49 +0200
parents b469e6a72636
children
line diff
     1.1 --- a/Makefile	Thu Feb 18 23:15:43 2016 +0200
     1.2 +++ b/Makefile	Thu Feb 18 23:21:49 2016 +0200
     1.3 @@ -4,7 +4,13 @@
     1.4  
     1.5  CC = gcc
     1.6  CFLAGS = -pedantic -Wall -g
     1.7 -LDFLAGS = -lglut -lGL -lGLU
     1.8 +LDFLAGS = $(libgl)
     1.9 +
    1.10 +ifeq ($(shell uname -s), Darwin)
    1.11 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.12 +else
    1.13 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.14 +endif
    1.15  
    1.16  $(bin):	$(obj)
    1.17  	$(CC) -o $@ $(obj) $(LDFLAGS)