libgoatvr
diff Makefile.in @ 9:d12592558809
build on macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 20 Sep 2014 16:52:42 +0300 |
parents | 6896f9cf9621 |
children | e4c5c9c0b6f6 |
line diff
1.1 --- a/Makefile.in Sat Sep 20 13:22:53 2014 +0300 1.2 +++ b/Makefile.in Sat Sep 20 16:52:42 2014 +0300 1.3 @@ -15,25 +15,31 @@ 1.4 endif 1.5 1.6 CFLAGS = -pedantic -Wall $(dbg) $(opt) $(pic) $(mod_cflags) 1.7 -LDFLAGS = $(mod_libs) 1.8 +LDFLAGS = $(mod_libs) $(libgl) 1.9 1.10 lib_a = lib$(name).a 1.11 ifeq ($(shell uname -s), Darwin) 1.12 lib_so = lib$(name).dylib 1.13 shared = -dynamiclib 1.14 + libgl = -framework OpenGL 1.15 + 1.16 + ifdef use_libovr 1.17 + mod_libs += -framework Cocoa -framework IOKit 1.18 + endif 1.19 else 1.20 ldname = lib$(name).so 1.21 soname = lib$(name).so.$(so_major) 1.22 lib_so = lib$(name).so.$(so_major).$(so_minor) 1.23 shared = -shared -Wl,-soname=$(soname) 1.24 pic = -fPIC 1.25 + libgl = -lGL -lGLU 1.26 endif 1.27 1.28 .PHONY: all 1.29 all: $(lib_so) $(lib_a) $(soname) $(ldname) 1.30 1.31 $(lib_so): $(obj) 1.32 - $(CC) -o $@ $(shared) $(obj) $(LDFLAGS) 1.33 + $(CXX) -o $@ $(shared) $(obj) $(LDFLAGS) 1.34 1.35 $(soname): $(lib_so) 1.36 ln -sf $< $@