Commit a1d73d7b authored by deuce's avatar deuce
Browse files

Move SDL stuff where appropriate.

parent 2bec8a8c
......@@ -15,25 +15,12 @@ endif
ifdef WITH_SDL
OBJS += $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE)
OBJS += $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE)
endif
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
......
......@@ -12,6 +12,22 @@ ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
endif
MT_CFLAGS += $(XPDEV-MT_CFLAGS)
ifdef WITH_SDL
MTOBJS += $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE)
endif
ifeq ($(os),darwin)
ifdef WITH_SDL
MTOBJS += $(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
# Executable Build Rule
$(WRAPTEST): $(MTOBJODIR)/wraptest.o $(DEPS)
@echo Linking $@
......
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