3 LDFLAGS += -L../../framework -lmlt -lpthread -lm
5 include ../../../config.mak
9 TARGET = ../libmltsdl$(LIBSUF)
13 consumer_sdl_audio.o \
14 consumer_sdl_preview.o \
17 ifeq ($(targetos),Darwin)
19 LDFLAGS += -lobjc -framework Foundation
20 else ifeq ($(targetos), Linux|FreeBSD)
24 CFLAGS += `sdl-config --cflags`
26 LDFLAGS += `sdl-config --libs`
28 ifeq ($(WITH_SDL_IMAGE),1)
29 OBJS += producer_sdl_image.o
30 CFLAGS += -DWITH_SDL_IMAGE
31 LDFLAGS += -lSDL_image
35 ifeq ($(targetos),Darwin)
36 OBJS += consumer_sdl_osx.o
37 SRCS += consumer_sdl_osx.m consumer_sdl_osx.h
40 ifeq ($(targetos), MinGW)
41 OBJS += ../../win32/win32.o
42 SRCS += ../../win32/win32.c
48 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
51 $(CC) -MM $(CFLAGS) $^ 1>.depend
57 rm -f $(OBJS) $(TARGET)
60 install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
62 ifneq ($(wildcard .depend),)