dsys2

diff Makefile @ 5:94ce16dd20c0

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 02 Sep 2011 01:57:00 +0300
parents 1705e550bd91
children 5ba9dd6742a0
line diff
     1.1 --- a/Makefile	Thu Sep 01 07:55:22 2011 +0300
     1.2 +++ b/Makefile	Fri Sep 02 01:57:00 2011 +0300
     1.3 @@ -8,8 +8,14 @@
     1.4  AR = ar
     1.5  CFLAGS = -pedantic -Wall -g -Isrc
     1.6  
     1.7 +ifeq ($(shell uname -s), Darwin)
     1.8 +	libgl = -framework OpenGL -framework GLUT
     1.9 +else
    1.10 +	libgl = -lGL -lGLU -lglut
    1.11 +endif
    1.12 +
    1.13  test: test.o $(lib_a)
    1.14 -	$(CC) $(CFLAGS) -o $@ test.o $(lib_a) -lGL -lGLU -lglut -lm
    1.15 +	$(CC) $(CFLAGS) -o $@ test.o $(lib_a) $(libgl) -lm
    1.16  
    1.17  $(lib_a): $(obj)
    1.18  	$(AR) rcs $@ $(obj)