Makefile.dc
author Sam Lantinga <slouken@libsdl.org>
Thu, 02 Mar 2006 13:16:02 +0000
changeset 1461 11134dc42da8
parent 509 dad72daf44b3
child 1509 678d105d4492
permissions -rw-r--r--
Updated for Dreamcast KOS June 2005 snapshot:
http://cadcdev.sourceforge.net/svn/snapshots/
http://gamedev.allusion.net/softprj/kos/dcsetup.php
slouken@509
     1
#GL=1
slouken@509
     2
slouken@1461
     3
CC = sh-elf-gcc
slouken@509
     4
AR = sh-elf-ar
slouken@509
     5
slouken@509
     6
ifdef GL
slouken@1461
     7
DEFS += -DSDL_VIDEO_OPENGL=1
slouken@509
     8
TARGET = libSDL_gl.a
slouken@509
     9
else
slouken@509
    10
TARGET = libSDL.a
slouken@509
    11
endif
slouken@509
    12
slouken@1461
    13
CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude
slouken@509
    14
slouken@509
    15
SRCS = \
slouken@509
    16
	src/audio/dc/SDL_dcaudio.c \
slouken@509
    17
	src/audio/dc/aica.c \
slouken@509
    18
	src/audio/SDL_audio.c \
slouken@509
    19
	src/audio/SDL_audiocvt.c \
slouken@509
    20
	src/audio/SDL_audiodev.c \
slouken@509
    21
	src/audio/SDL_mixer.c \
slouken@509
    22
	src/audio/SDL_wave.c \
slouken@509
    23
	src/cdrom/dc/SDL_syscdrom.c \
slouken@509
    24
	src/cdrom/SDL_cdrom.c \
slouken@509
    25
	src/events/SDL_active.c \
slouken@509
    26
	src/events/SDL_events.c \
slouken@509
    27
	src/events/SDL_expose.c \
slouken@509
    28
	src/events/SDL_keyboard.c \
slouken@509
    29
	src/events/SDL_mouse.c \
slouken@509
    30
	src/events/SDL_quit.c \
slouken@509
    31
	src/events/SDL_resize.c \
slouken@509
    32
	src/file/SDL_rwops.c \
slouken@509
    33
	src/joystick/dc/SDL_sysjoystick.c \
slouken@509
    34
	src/joystick/SDL_joystick.c \
slouken@1461
    35
	src/loadso/dummy/SDL_sysloadso.c \
slouken@509
    36
	src/SDL.c \
slouken@509
    37
	src/SDL_error.c \
slouken@509
    38
	src/SDL_fatal.c \
slouken@1461
    39
	src/stdlib/SDL_getenv.c \
slouken@1461
    40
	src/stdlib/SDL_malloc.c \
slouken@1461
    41
	src/stdlib/SDL_qsort.c \
slouken@1461
    42
	src/stdlib/SDL_stdlib.c \
slouken@1461
    43
	src/stdlib/SDL_string.c \
slouken@509
    44
	src/thread/dc/SDL_syscond.c \
slouken@509
    45
	src/thread/dc/SDL_sysmutex.c \
slouken@509
    46
	src/thread/dc/SDL_syssem.c \
slouken@509
    47
	src/thread/dc/SDL_systhread.c \
slouken@509
    48
	src/thread/SDL_thread.c \
slouken@509
    49
	src/timer/dc/SDL_systimer.c \
slouken@509
    50
	src/timer/SDL_timer.c \
slouken@509
    51
	src/video/dc/SDL_dcevents.c \
slouken@509
    52
	src/video/dc/SDL_dcvideo.c \
slouken@509
    53
	src/video/SDL_blit.c \
slouken@509
    54
	src/video/SDL_blit_0.c \
slouken@509
    55
	src/video/SDL_blit_1.c \
slouken@509
    56
	src/video/SDL_blit_A.c \
slouken@509
    57
	src/video/SDL_blit_N.c \
slouken@509
    58
	src/video/SDL_bmp.c \
slouken@509
    59
	src/video/SDL_cursor.c \
slouken@509
    60
	src/video/SDL_gamma.c \
slouken@509
    61
	src/video/SDL_pixels.c \
slouken@509
    62
	src/video/SDL_RLEaccel.c \
slouken@509
    63
	src/video/SDL_stretch.c \
slouken@509
    64
	src/video/SDL_surface.c \
slouken@509
    65
	src/video/SDL_video.c \
slouken@509
    66
	src/video/SDL_yuv.c \
slouken@509
    67
	src/video/SDL_yuv_sw.c \
slouken@509
    68
slouken@509
    69
OBJS = $(SRCS:.c=.o)
slouken@509
    70
slouken@509
    71
TEST = \
slouken@509
    72
	test/checkkeys.c \
slouken@509
    73
	test/graywin.c \
slouken@509
    74
	test/loopwave.c \
slouken@509
    75
	test/testalpha.c \
slouken@509
    76
	test/testbitmap.c \
slouken@509
    77
	test/testcdrom.c \
slouken@509
    78
	test/testerror.c \
slouken@509
    79
	test/testgamma.c \
slouken@509
    80
	test/testgl.c \
slouken@509
    81
	test/testhread.c \
slouken@509
    82
	test/testjoystick.c \
slouken@509
    83
	test/testkeys.c \
slouken@509
    84
	test/testlock.c \
slouken@509
    85
	test/testoverlay.c \
slouken@509
    86
	test/testpalette.c \
slouken@509
    87
	test/testsem.c \
slouken@509
    88
	test/testsprite.c \
slouken@509
    89
	test/testtimer.c \
slouken@509
    90
	test/testtypes.c \
slouken@509
    91
	test/testver.c \
slouken@509
    92
	test/testvidinfo.c \
slouken@509
    93
	test/testwin.c \
slouken@509
    94
	test/testwm.c \
slouken@509
    95
	test/threadwin.c \
slouken@509
    96
	test/torturethread.c \
slouken@509
    97
slouken@1461
    98
$(TARGET): $(OBJS)
slouken@509
    99
	$(AR) rcs $(TARGET) $(OBJS)
slouken@509
   100
slouken@1461
   101
clean:
slouken@1461
   102
	rm -f $(OBJS)