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