+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lpthread -lm
+
include ../../../config.mak
include config.mak
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
+CFLAGS += -ObjC
+LDFLAGS += -lobjc -framework Foundation
+else ifneq ($(targetos), MinGW)
+LDFLAGS += -lX11
endif
-CFLAGS +=-I../.. `sdl-config --cflags`
-
-LDFLAGS +=`sdl-config --libs`
+CFLAGS += `sdl-config --cflags`
-LDFLAGS +=-L../../framework -lmlt
+LDFLAGS += `sdl-config --libs`
ifeq ($(WITH_SDL_IMAGE),1)
OBJS += producer_sdl_image.o
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)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
-dist-clean: clean
+distclean: clean
rm -f .depend
clean:
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
+ install -d "$(DESTDIR)$(mltdatadir)/sdl"
+ install -m 644 *.yml "$(DESTDIR)$(mltdatadir)/sdl"
ifneq ($(wildcard .depend),)
include .depend