Makefile.dc
changeset 1461 11134dc42da8
parent 509 dad72daf44b3
child 1509 678d105d4492
     1.1 --- a/Makefile.dc	Thu Mar 02 07:46:24 2006 +0000
     1.2 +++ b/Makefile.dc	Thu Mar 02 13:16:02 2006 +0000
     1.3 @@ -1,20 +1,16 @@
     1.4  #GL=1
     1.5  
     1.6 -CC = sh-elf-gcc -ml -m4-single-only
     1.7 +CC = sh-elf-gcc
     1.8  AR = sh-elf-ar
     1.9 -KOS_BASE=/prog/kos-1.1.7
    1.10 -INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
    1.11 -DEFS =-DNO_SIGNAL_H -DENABLE_DC
    1.12  
    1.13  ifdef GL
    1.14 -DEFS += -DHAVE_OPENGL
    1.15 +DEFS += -DSDL_VIDEO_OPENGL=1
    1.16  TARGET = libSDL_gl.a
    1.17  else
    1.18  TARGET = libSDL.a
    1.19  endif
    1.20  
    1.21 -OPTFLAGS=-O2 -fomit-frame-pointer
    1.22 -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)
    1.23 +CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude
    1.24  
    1.25  SRCS = \
    1.26  	src/audio/dc/SDL_dcaudio.c \
    1.27 @@ -22,12 +18,10 @@
    1.28  	src/audio/SDL_audio.c \
    1.29  	src/audio/SDL_audiocvt.c \
    1.30  	src/audio/SDL_audiodev.c \
    1.31 -	src/audio/SDL_audiomem.c \
    1.32  	src/audio/SDL_mixer.c \
    1.33  	src/audio/SDL_wave.c \
    1.34  	src/cdrom/dc/SDL_syscdrom.c \
    1.35  	src/cdrom/SDL_cdrom.c \
    1.36 -	src/endian/SDL_endian.c \
    1.37  	src/events/SDL_active.c \
    1.38  	src/events/SDL_events.c \
    1.39  	src/events/SDL_expose.c \
    1.40 @@ -38,11 +32,15 @@
    1.41  	src/file/SDL_rwops.c \
    1.42  	src/joystick/dc/SDL_sysjoystick.c \
    1.43  	src/joystick/SDL_joystick.c \
    1.44 +	src/loadso/dummy/SDL_sysloadso.c \
    1.45  	src/SDL.c \
    1.46  	src/SDL_error.c \
    1.47  	src/SDL_fatal.c \
    1.48 -	src/SDL_getenv.c \
    1.49 -	src/SDL_loadso.c \
    1.50 +	src/stdlib/SDL_getenv.c \
    1.51 +	src/stdlib/SDL_malloc.c \
    1.52 +	src/stdlib/SDL_qsort.c \
    1.53 +	src/stdlib/SDL_stdlib.c \
    1.54 +	src/stdlib/SDL_string.c \
    1.55  	src/thread/dc/SDL_syscond.c \
    1.56  	src/thread/dc/SDL_sysmutex.c \
    1.57  	src/thread/dc/SDL_syssem.c \
    1.58 @@ -97,9 +95,8 @@
    1.59  	test/threadwin.c \
    1.60  	test/torturethread.c \
    1.61  
    1.62 -clean:
    1.63 -	rm $(OBJS)
    1.64 -
    1.65 -$(TARGET) : $(OBJS)
    1.66 +$(TARGET): $(OBJS)
    1.67  	$(AR) rcs $(TARGET) $(OBJS)
    1.68  
    1.69 +clean:
    1.70 +	rm -f $(OBJS)