From 498f682480860a8b3ab5c226357053f8ef5abc25 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 6 Oct 2012 09:49:04 +0200 Subject: [PATCH] Add support for OS X to the Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index e3fdc03..58c6e32 100644 --- a/Makefile +++ b/Makefile @@ -57,13 +57,22 @@ endif # -fPIC for position independend code. # # -MMD to generate header dependencies. +ifeq ($(OSTYPE), Darwin) +CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \ + -Wall -pipe -g -arch i386 -arch x86_64 +else CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \ -Wall -pipe -g -MMD +endif # ---------- # Base LDFLAGS. +ifeq ($(OSTYPE), Darwin) +LDFLAGS := -shared -arch i386 -arch x86_64 +else LDFLAGS := -shared +endif # ----------