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
     1 #GL=1
     2 
     3 CC = sh-elf-gcc
     4 AR = sh-elf-ar
     5 
     6 ifdef GL
     7 DEFS += -DSDL_VIDEO_OPENGL=1
     8 TARGET = libSDL_gl.a
     9 else
    10 TARGET = libSDL.a
    11 endif
    12 
    13 CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude
    14 
    15 SRCS = \
    16 	src/audio/dc/SDL_dcaudio.c \
    17 	src/audio/dc/aica.c \
    18 	src/audio/SDL_audio.c \
    19 	src/audio/SDL_audiocvt.c \
    20 	src/audio/SDL_audiodev.c \
    21 	src/audio/SDL_mixer.c \
    22 	src/audio/SDL_wave.c \
    23 	src/cdrom/dc/SDL_syscdrom.c \
    24 	src/cdrom/SDL_cdrom.c \
    25 	src/events/SDL_active.c \
    26 	src/events/SDL_events.c \
    27 	src/events/SDL_expose.c \
    28 	src/events/SDL_keyboard.c \
    29 	src/events/SDL_mouse.c \
    30 	src/events/SDL_quit.c \
    31 	src/events/SDL_resize.c \
    32 	src/file/SDL_rwops.c \
    33 	src/joystick/dc/SDL_sysjoystick.c \
    34 	src/joystick/SDL_joystick.c \
    35 	src/loadso/dummy/SDL_sysloadso.c \
    36 	src/SDL.c \
    37 	src/SDL_error.c \
    38 	src/SDL_fatal.c \
    39 	src/stdlib/SDL_getenv.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 \
    44 	src/thread/dc/SDL_syscond.c \
    45 	src/thread/dc/SDL_sysmutex.c \
    46 	src/thread/dc/SDL_syssem.c \
    47 	src/thread/dc/SDL_systhread.c \
    48 	src/thread/SDL_thread.c \
    49 	src/timer/dc/SDL_systimer.c \
    50 	src/timer/SDL_timer.c \
    51 	src/video/dc/SDL_dcevents.c \
    52 	src/video/dc/SDL_dcvideo.c \
    53 	src/video/SDL_blit.c \
    54 	src/video/SDL_blit_0.c \
    55 	src/video/SDL_blit_1.c \
    56 	src/video/SDL_blit_A.c \
    57 	src/video/SDL_blit_N.c \
    58 	src/video/SDL_bmp.c \
    59 	src/video/SDL_cursor.c \
    60 	src/video/SDL_gamma.c \
    61 	src/video/SDL_pixels.c \
    62 	src/video/SDL_RLEaccel.c \
    63 	src/video/SDL_stretch.c \
    64 	src/video/SDL_surface.c \
    65 	src/video/SDL_video.c \
    66 	src/video/SDL_yuv.c \
    67 	src/video/SDL_yuv_sw.c \
    68 
    69 OBJS = $(SRCS:.c=.o)
    70 
    71 TEST = \
    72 	test/checkkeys.c \
    73 	test/graywin.c \
    74 	test/loopwave.c \
    75 	test/testalpha.c \
    76 	test/testbitmap.c \
    77 	test/testcdrom.c \
    78 	test/testerror.c \
    79 	test/testgamma.c \
    80 	test/testgl.c \
    81 	test/testhread.c \
    82 	test/testjoystick.c \
    83 	test/testkeys.c \
    84 	test/testlock.c \
    85 	test/testoverlay.c \
    86 	test/testpalette.c \
    87 	test/testsem.c \
    88 	test/testsprite.c \
    89 	test/testtimer.c \
    90 	test/testtypes.c \
    91 	test/testver.c \
    92 	test/testvidinfo.c \
    93 	test/testwin.c \
    94 	test/testwm.c \
    95 	test/threadwin.c \
    96 	test/torturethread.c \
    97 
    98 $(TARGET): $(OBJS)
    99 	$(AR) rcs $(TARGET) $(OBJS)
   100 
   101 clean:
   102 	rm -f $(OBJS)