Skip to content
Snippets Groups Projects
Commit a1d73d7b authored by deuce's avatar deuce
Browse files

Move SDL stuff where appropriate.

parent 2bec8a8c
No related branches found
No related tags found
No related merge requests found
...@@ -15,25 +15,12 @@ endif ...@@ -15,25 +15,12 @@ endif
ifdef WITH_SDL ifdef WITH_SDL
OBJS += $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE) OBJS += $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE)
OBJS += $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE)
endif endif
ifeq ($(os),netbsd) ifeq ($(os),netbsd)
CFLAGS += -DN_CURSES_LIB CFLAGS += -DN_CURSES_LIB
endif 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: $(MTOBJODIR)$(DIRSEP)console$(OFILE).static:
$(QUIET)$(DELETE) $(MTOBJODIR)$(DIRSEP)console$(OFILE)* $(QUIET)$(DELETE) $(MTOBJODIR)$(DIRSEP)console$(OFILE)*
$(QUIET)touch $(MTOBJODIR)$(DIRSEP)console$(OFILE).static $(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) ...@@ -12,6 +12,22 @@ ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
endif endif
MT_CFLAGS += $(XPDEV-MT_CFLAGS) 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 # Executable Build Rule
$(WRAPTEST): $(MTOBJODIR)/wraptest.o $(DEPS) $(WRAPTEST): $(MTOBJODIR)/wraptest.o $(DEPS)
@echo Linking $@ @echo Linking $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment