reprap: Compatibility with OSX
[simavr] / examples / shared / libc3 / Makefile
index 25ab1db..7f4320f 100644 (file)
@@ -14,9 +14,15 @@ C3OBJ                = ${patsubst src/%,${OBJ}/%,${C3SRC:.c=.lo}}
 
 CC                     = clang
 PKGCONFIG      = pkg-config
-LIBTOOL                = libtool
 INSTALL                = install
 
+ifeq (${shell uname}, Darwin)
+# you need to install libtool via 'brew install libtool' on the mac
+LIBTOOL                = glibtool
+else
+LIBTOOL                = libtool
+endif
+
 CFLAGS         = -g -O2
 CPPFLAGS       += --std=gnu99 -fPIC
 CPPFLAGS       += ${patsubst %,-I%,${subst :, ,${IPATH}}}