]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/Makefile
Move rotoscoping filter into plusgpl module.
[mlt] / src / modules / sdl / Makefile
index 255cbe023858956bc124b235373ff638c0847266..6919264d8a181eba22fb4283e62c36592a2e6592 100644 (file)
@@ -10,19 +10,20 @@ TARGET = ../libmltsdl$(LIBSUF)
 
 OBJS = factory.o \
           consumer_sdl.o \
+          consumer_sdl_audio.o \
           consumer_sdl_preview.o \
           consumer_sdl_still.o 
 
 ifeq ($(targetos),Darwin)
 CFLAGS += -ObjC
 LDFLAGS += -lobjc -framework Foundation
-else
+else ifneq ($(targetos), MinGW)
 LDFLAGS += -lX11
 endif
 
-CFLAGS += `sdl-config --cflags`
+CFLAGS += $(shell sdl-config --cflags)
 
-LDFLAGS += `sdl-config --libs`
+LDFLAGS += $(shell sdl-config --libs)
 
 ifeq ($(WITH_SDL_IMAGE),1)
 OBJS += producer_sdl_image.o
@@ -31,6 +32,10 @@ LDFLAGS += -lSDL_image
 endif
 
 SRCS := $(OBJS:.o=.c)
+ifeq ($(targetos),Darwin)
+OBJS += consumer_sdl_osx.o
+SRCS += consumer_sdl_osx.m consumer_sdl_osx.h
+endif
 
 all:   $(TARGET)
 
@@ -47,7 +52,9 @@ clean:
                rm -f $(OBJS) $(TARGET)
 
 install: all
-       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+       install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
+       install -d "$(DESTDIR)$(mltdatadir)/sdl"
+       install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/sdl"
 
 ifneq ($(wildcard .depend),)
 include .depend