goat3d

changeset 21:0e31f2c3f29d

macfix
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Sep 2013 07:14:27 +0300
parents cb6c1a945a11
children 44a20d72f3a6
files generators/goatprim/Makefile
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/generators/goatprim/Makefile	Thu Sep 26 14:16:09 2013 +0300
     1.2 +++ b/generators/goatprim/Makefile	Fri Sep 27 07:14:27 2013 +0300
     1.3 @@ -2,12 +2,17 @@
     1.4  bin = goatprim
     1.5  
     1.6  goat_root = ../..
     1.7 -libgoat = $(goat_root)/libgoat3d.so.0.1
     1.8 +
     1.9 +ifeq ($(shell uname -s), Darwin)
    1.10 +	libgoat = $(goat_root)/libgoat3d.dylib
    1.11 +else
    1.12 +	libgoat = $(goat_root)/libgoat3d.so.0.1
    1.13 +endif
    1.14  
    1.15  CC = clang
    1.16  CXX = clang++
    1.17  CFLAGS = -pedantic -Wall -g -I$(goat_root)/src
    1.18 -LDFLAGS = $(libgoat) -Wl,-rpath=$(goat_root)
    1.19 +LDFLAGS = $(libgoat) -Wl,-rpath $(goat_root)
    1.20  
    1.21  $(bin): $(obj) $(libgoat)
    1.22  	$(CXX) -o $@ $(obj) $(LDFLAGS)