+ Install of config.h for linux and os/x usage
[melted] / mlt++ / src / Makefile
index 72b900f..e775266 100644 (file)
@@ -1,8 +1,15 @@
 include ../config.mak
 INSTALL = install
 
+ifneq ($(targetos), Darwin)
 NAME = libmlt++$(LIBSUF)
 TARGET = $(NAME).$(version)
+LIBFLAGS += -Wl,-soname,$(TARGET)
+else
+NAME = libmlt++$(LIBSUF)
+TARGET = libmlt++.$(version)$(LIBSUF)
+LIBFLAGS += -install_name $(libdir)/$(TARGET)
+endif
 
 OBJS = MltConsumer.o \
           MltDeque.o \
@@ -27,8 +34,7 @@ OBJS = MltConsumer.o \
           MltTransition.o
 
 SRCS = $(OBJS:.o=.cpp)
-HEADERS = Mlt.h $(OBJS:.o=.h)
-LDFLAGS += -Wl,-soname,$(TARGET)
+HEADERS = config.h Mlt.h $(OBJS:.o=.h)
 
 all:           $(TARGET)