X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=examples%2Fshared%2Flibc3%2FMakefile;h=7f4320f585bda71a00e566e731cb552083811203;hb=47a131708adafd4eba74038fd981baab91c1ff40;hp=25ab1db074d99b82cd93a0a38065e0b36d2157f3;hpb=d03d508ebf29745d1a92dd3581793e8bacb12ccf;p=simavr diff --git a/examples/shared/libc3/Makefile b/examples/shared/libc3/Makefile index 25ab1db..7f4320f 100644 --- a/examples/shared/libc3/Makefile +++ b/examples/shared/libc3/Makefile @@ -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}}}