From a1d73d7bbf825f5e42f710083e2bef6004229456 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 28 May 2006 21:33:50 +0000
Subject: [PATCH] Move SDL stuff where appropriate.

---
 src/conio/GNUmakefile | 13 -------------
 src/xpdev/GNUmakefile | 16 ++++++++++++++++
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/src/conio/GNUmakefile b/src/conio/GNUmakefile
index ce3279e439..5958f51945 100644
--- a/src/conio/GNUmakefile
+++ b/src/conio/GNUmakefile
@@ -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
diff --git a/src/xpdev/GNUmakefile b/src/xpdev/GNUmakefile
index 3f8f829ad1..8329b17ced 100644
--- a/src/xpdev/GNUmakefile
+++ b/src/xpdev/GNUmakefile
@@ -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 $@
-- 
GitLab