]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/Makefile
Initial port to Windows using MinGW.
[mlt] / src / modules / sdl / Makefile
index 24a0faf244374929d3a585beb273635d2cc08f9f..1bb3b7a68c2e19e121395318297d2dccd4a8bf6a 100644 (file)
@@ -17,7 +17,7 @@ OBJS = factory.o \
 ifeq ($(targetos),Darwin)
 CFLAGS += -ObjC
 LDFLAGS += -lobjc -framework Foundation
-else
+else ifeq ($(targetos), Linux|FreeBSD)
 LDFLAGS += -lX11
 endif
 
@@ -37,6 +37,11 @@ OBJS += consumer_sdl_osx.o
 SRCS += consumer_sdl_osx.m consumer_sdl_osx.h
 endif
 
+ifeq ($(targetos), MinGW)
+OBJS += ../../win32/win32.o
+SRCS += ../../win32/win32.c
+endif
+
 all:   $(TARGET)
 
 $(TARGET): $(OBJS)