ifeq ($(targetos),Darwin)
CFLAGS += -ObjC
LDFLAGS += -lobjc -framework Foundation
-else
+else ifneq ($(targetos), MinGW)
LDFLAGS += -lX11
endif
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)
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