From ec569dbbd7694f7a5a5f83d420d57fa8a4c66a92 Mon Sep 17 00:00:00 2001 From: Juri Glass Date: Thu, 28 Jul 2011 12:12:33 +0200 Subject: [PATCH] omit shared objects on Darwin --- sml/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sml/Makefile b/sml/Makefile index 66cdbe7..37edd1b 100644 --- a/sml/Makefile +++ b/sml/Makefile @@ -1,3 +1,4 @@ +UNAME := $(shell uname) CFLAGS += -I./include/ -fPIC -g -Wall # Available Flags: @@ -34,8 +35,12 @@ OBJS = \ src/sml_get_profile_pack_request.o \ src/sml_get_profile_pack_response.o \ - +ifeq ($(UNAME), Linux) libsml: $(DYN_LIB) $(ST_LIB) $(OBJ_LIB) +endif +ifeq ($(UNAME), Darwin) +libsml: $(ST_LIB) $(OBJ_LIB) +endif $(DYN_LIB): $(OBJS) $(LD) -shared -o $@ $^