diff Makefile.dc @ 1461:11134dc42da8

Updated for Dreamcast KOS June 2005 snapshot: http://cadcdev.sourceforge.net/svn/snapshots/ http://gamedev.allusion.net/softprj/kos/dcsetup.php
author Sam Lantinga <slouken@libsdl.org>
date Thu, 02 Mar 2006 13:16:02 +0000
parents dad72daf44b3
children 678d105d4492
line wrap: on
line diff
--- a/Makefile.dc	Thu Mar 02 07:46:24 2006 +0000
+++ b/Makefile.dc	Thu Mar 02 13:16:02 2006 +0000
@@ -1,20 +1,16 @@
 #GL=1
 
-CC = sh-elf-gcc -ml -m4-single-only
+CC = sh-elf-gcc
 AR = sh-elf-ar
-KOS_BASE=/prog/kos-1.1.7
-INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
-DEFS =-DNO_SIGNAL_H -DENABLE_DC
 
 ifdef GL
-DEFS += -DHAVE_OPENGL
+DEFS += -DSDL_VIDEO_OPENGL=1
 TARGET = libSDL_gl.a
 else
 TARGET = libSDL.a
 endif
 
-OPTFLAGS=-O2 -fomit-frame-pointer
-CFLAGS=-D_arch_dreamcast $(DEFS) $(INCS) -Iinclude -Isrc -Isrc/audio -Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/dc -Isrc/thread -Isrc/timer -Isrc/video $(OPTFLAGS)
+CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude
 
 SRCS = \
 	src/audio/dc/SDL_dcaudio.c \
@@ -22,12 +18,10 @@
 	src/audio/SDL_audio.c \
 	src/audio/SDL_audiocvt.c \
 	src/audio/SDL_audiodev.c \
-	src/audio/SDL_audiomem.c \
 	src/audio/SDL_mixer.c \
 	src/audio/SDL_wave.c \
 	src/cdrom/dc/SDL_syscdrom.c \
 	src/cdrom/SDL_cdrom.c \
-	src/endian/SDL_endian.c \
 	src/events/SDL_active.c \
 	src/events/SDL_events.c \
 	src/events/SDL_expose.c \
@@ -38,11 +32,15 @@
 	src/file/SDL_rwops.c \
 	src/joystick/dc/SDL_sysjoystick.c \
 	src/joystick/SDL_joystick.c \
+	src/loadso/dummy/SDL_sysloadso.c \
 	src/SDL.c \
 	src/SDL_error.c \
 	src/SDL_fatal.c \
-	src/SDL_getenv.c \
-	src/SDL_loadso.c \
+	src/stdlib/SDL_getenv.c \
+	src/stdlib/SDL_malloc.c \
+	src/stdlib/SDL_qsort.c \
+	src/stdlib/SDL_stdlib.c \
+	src/stdlib/SDL_string.c \
 	src/thread/dc/SDL_syscond.c \
 	src/thread/dc/SDL_sysmutex.c \
 	src/thread/dc/SDL_syssem.c \
@@ -97,9 +95,8 @@
 	test/threadwin.c \
 	test/torturethread.c \
 
-clean:
-	rm $(OBJS)
-
-$(TARGET) : $(OBJS)
+$(TARGET): $(OBJS)
 	$(AR) rcs $(TARGET) $(OBJS)
 
+clean:
+	rm -f $(OBJS)