Makefile.dc
changeset 1461 11134dc42da8
parent 509 dad72daf44b3
child 1509 678d105d4492
equal deleted inserted replaced
1460:d79e6b0c2c19 1461:11134dc42da8
     1 #GL=1
     1 #GL=1
     2 
     2 
     3 CC = sh-elf-gcc -ml -m4-single-only
     3 CC = sh-elf-gcc
     4 AR = sh-elf-ar
     4 AR = sh-elf-ar
     5 KOS_BASE=/prog/kos-1.1.7
       
     6 INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
       
     7 DEFS =-DNO_SIGNAL_H -DENABLE_DC
       
     8 
     5 
     9 ifdef GL
     6 ifdef GL
    10 DEFS += -DHAVE_OPENGL
     7 DEFS += -DSDL_VIDEO_OPENGL=1
    11 TARGET = libSDL_gl.a
     8 TARGET = libSDL_gl.a
    12 else
     9 else
    13 TARGET = libSDL.a
    10 TARGET = libSDL.a
    14 endif
    11 endif
    15 
    12 
    16 OPTFLAGS=-O2 -fomit-frame-pointer
    13 CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude
    17 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)
       
    18 
    14 
    19 SRCS = \
    15 SRCS = \
    20 	src/audio/dc/SDL_dcaudio.c \
    16 	src/audio/dc/SDL_dcaudio.c \
    21 	src/audio/dc/aica.c \
    17 	src/audio/dc/aica.c \
    22 	src/audio/SDL_audio.c \
    18 	src/audio/SDL_audio.c \
    23 	src/audio/SDL_audiocvt.c \
    19 	src/audio/SDL_audiocvt.c \
    24 	src/audio/SDL_audiodev.c \
    20 	src/audio/SDL_audiodev.c \
    25 	src/audio/SDL_audiomem.c \
       
    26 	src/audio/SDL_mixer.c \
    21 	src/audio/SDL_mixer.c \
    27 	src/audio/SDL_wave.c \
    22 	src/audio/SDL_wave.c \
    28 	src/cdrom/dc/SDL_syscdrom.c \
    23 	src/cdrom/dc/SDL_syscdrom.c \
    29 	src/cdrom/SDL_cdrom.c \
    24 	src/cdrom/SDL_cdrom.c \
    30 	src/endian/SDL_endian.c \
       
    31 	src/events/SDL_active.c \
    25 	src/events/SDL_active.c \
    32 	src/events/SDL_events.c \
    26 	src/events/SDL_events.c \
    33 	src/events/SDL_expose.c \
    27 	src/events/SDL_expose.c \
    34 	src/events/SDL_keyboard.c \
    28 	src/events/SDL_keyboard.c \
    35 	src/events/SDL_mouse.c \
    29 	src/events/SDL_mouse.c \
    36 	src/events/SDL_quit.c \
    30 	src/events/SDL_quit.c \
    37 	src/events/SDL_resize.c \
    31 	src/events/SDL_resize.c \
    38 	src/file/SDL_rwops.c \
    32 	src/file/SDL_rwops.c \
    39 	src/joystick/dc/SDL_sysjoystick.c \
    33 	src/joystick/dc/SDL_sysjoystick.c \
    40 	src/joystick/SDL_joystick.c \
    34 	src/joystick/SDL_joystick.c \
       
    35 	src/loadso/dummy/SDL_sysloadso.c \
    41 	src/SDL.c \
    36 	src/SDL.c \
    42 	src/SDL_error.c \
    37 	src/SDL_error.c \
    43 	src/SDL_fatal.c \
    38 	src/SDL_fatal.c \
    44 	src/SDL_getenv.c \
    39 	src/stdlib/SDL_getenv.c \
    45 	src/SDL_loadso.c \
    40 	src/stdlib/SDL_malloc.c \
       
    41 	src/stdlib/SDL_qsort.c \
       
    42 	src/stdlib/SDL_stdlib.c \
       
    43 	src/stdlib/SDL_string.c \
    46 	src/thread/dc/SDL_syscond.c \
    44 	src/thread/dc/SDL_syscond.c \
    47 	src/thread/dc/SDL_sysmutex.c \
    45 	src/thread/dc/SDL_sysmutex.c \
    48 	src/thread/dc/SDL_syssem.c \
    46 	src/thread/dc/SDL_syssem.c \
    49 	src/thread/dc/SDL_systhread.c \
    47 	src/thread/dc/SDL_systhread.c \
    50 	src/thread/SDL_thread.c \
    48 	src/thread/SDL_thread.c \
    95 	test/testwin.c \
    93 	test/testwin.c \
    96 	test/testwm.c \
    94 	test/testwm.c \
    97 	test/threadwin.c \
    95 	test/threadwin.c \
    98 	test/torturethread.c \
    96 	test/torturethread.c \
    99 
    97 
   100 clean:
    98 $(TARGET): $(OBJS)
   101 	rm $(OBJS)
       
   102 
       
   103 $(TARGET) : $(OBJS)
       
   104 	$(AR) rcs $(TARGET) $(OBJS)
    99 	$(AR) rcs $(TARGET) $(OBJS)
   105 
   100 
       
   101 clean:
       
   102 	rm -f $(OBJS)