Commit 0caadec8 authored by deuce's avatar deuce
Browse files

Include SDLMain in ciolib library on OSX.

parent cfb26734
......@@ -43,7 +43,7 @@ ifdef USE_SDL
ifeq ($(os),darwin)
CIOLIB-MT_CFLAGS += -DWITH_SDL
CIOLIB-MT_CFLAGS += -I/Library/Frameworks/SDL.framework/Headers
CIOLIB-MT_LIBS += $(SRC_ROOT)$(DIRSEP)conio$(DIRSEP)SDLMain.m -framework SDL -framework Cocoa -I/Library/Frameworks/SDL.framework/Headers
CIOLIB-MT_LIBS += -framework SDL -framework Cocoa -I/Library/Frameworks/SDL.framework/Headers
endif
endif
endif
......
......@@ -21,6 +21,18 @@ ifeq ($(os),netbsd)
CFLAGS += -DN_CURSES_LIB
endif
ifeq ($(os),darwin)
ifdef WITH_SDL
OBJS += $(MTOBJODIR)$(DIRSEP)SDLMain$(OFILE)
endif
endif
ifeq ($(os),darwin)
$(MTOBJODIR)$(DIRSEP)SDLMain$(OFILE): SDLMain.m
@echo $(COMPILE_MSG) $<
$(QUIET)$(CC) $(CFLAGS) $(CCFLAGS) -o $@ -c $<
endif
$(MTOBJODIR)$(DIRSEP)console$(OFILE).static:
$(QUIET)$(DELETE) $(MTOBJODIR)$(DIRSEP)console$(OFILE)*
$(QUIET)touch $(MTOBJODIR)$(DIRSEP)console$(OFILE).static
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment