Makefile.dc
author Patrice Mandin <patmandin@gmail.com>
Fri, 05 Jan 2007 19:12:50 +0000
changeset 2082 e6cd882e3ac0
parent 1895 c121d94672cb
child 3170 b7a48f533966
permissions -rw-r--r--
Alpha sort the test list, add missing ones, remove removed ones
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@1533
    18
	src/audio/dummy/SDL_dummyaudio.c \
slouken@509
    19
	src/audio/SDL_audio.c \
slouken@509
    20
	src/audio/SDL_audiocvt.c \
slouken@509
    21
	src/audio/SDL_audiodev.c \
slouken@509
    22
	src/audio/SDL_mixer.c \
slouken@509
    23
	src/audio/SDL_wave.c \
slouken@509
    24
	src/cdrom/dc/SDL_syscdrom.c \
slouken@509
    25
	src/cdrom/SDL_cdrom.c \
slouken@509
    26
	src/events/SDL_active.c \
slouken@509
    27
	src/events/SDL_events.c \
slouken@509
    28
	src/events/SDL_expose.c \
slouken@509
    29
	src/events/SDL_keyboard.c \
slouken@509
    30
	src/events/SDL_mouse.c \
slouken@509
    31
	src/events/SDL_quit.c \
slouken@509
    32
	src/events/SDL_resize.c \
slouken@509
    33
	src/file/SDL_rwops.c \
slouken@509
    34
	src/joystick/dc/SDL_sysjoystick.c \
slouken@509
    35
	src/joystick/SDL_joystick.c \
slouken@1461
    36
	src/loadso/dummy/SDL_sysloadso.c \
slouken@509
    37
	src/SDL.c \
slouken@509
    38
	src/SDL_error.c \
slouken@509
    39
	src/SDL_fatal.c \
slouken@1461
    40
	src/stdlib/SDL_getenv.c \
slouken@1509
    41
	src/stdlib/SDL_iconv.c \
slouken@1461
    42
	src/stdlib/SDL_malloc.c \
slouken@1461
    43
	src/stdlib/SDL_qsort.c \
slouken@1461
    44
	src/stdlib/SDL_stdlib.c \
slouken@1461
    45
	src/stdlib/SDL_string.c \
slouken@509
    46
	src/thread/dc/SDL_syscond.c \
slouken@509
    47
	src/thread/dc/SDL_sysmutex.c \
slouken@509
    48
	src/thread/dc/SDL_syssem.c \
slouken@509
    49
	src/thread/dc/SDL_systhread.c \
slouken@509
    50
	src/thread/SDL_thread.c \
slouken@509
    51
	src/timer/dc/SDL_systimer.c \
slouken@509
    52
	src/timer/SDL_timer.c \
slouken@509
    53
	src/video/dc/SDL_dcevents.c \
slouken@509
    54
	src/video/dc/SDL_dcvideo.c \
slouken@1533
    55
	src/video/dummy/SDL_nullevents.c \
slouken@1533
    56
	src/video/dummy/SDL_nullmouse.c \
slouken@1533
    57
	src/video/dummy/SDL_nullvideo.c \
slouken@1895
    58
	src/video/glsdl/SDL_glsdl.c \
slouken@509
    59
	src/video/SDL_blit.c \
slouken@509
    60
	src/video/SDL_blit_0.c \
slouken@509
    61
	src/video/SDL_blit_1.c \
slouken@509
    62
	src/video/SDL_blit_A.c \
slouken@509
    63
	src/video/SDL_blit_N.c \
slouken@509
    64
	src/video/SDL_bmp.c \
slouken@509
    65
	src/video/SDL_cursor.c \
slouken@509
    66
	src/video/SDL_gamma.c \
slouken@509
    67
	src/video/SDL_pixels.c \
slouken@509
    68
	src/video/SDL_RLEaccel.c \
slouken@509
    69
	src/video/SDL_stretch.c \
slouken@509
    70
	src/video/SDL_surface.c \
slouken@509
    71
	src/video/SDL_video.c \
slouken@509
    72
	src/video/SDL_yuv.c \
slouken@509
    73
	src/video/SDL_yuv_sw.c \
slouken@509
    74
slouken@509
    75
OBJS = $(SRCS:.c=.o)
slouken@509
    76
slouken@509
    77
TEST = \
slouken@509
    78
	test/checkkeys.c \
slouken@509
    79
	test/graywin.c \
slouken@509
    80
	test/loopwave.c \
slouken@509
    81
	test/testalpha.c \
slouken@509
    82
	test/testbitmap.c \
slouken@509
    83
	test/testcdrom.c \
slouken@509
    84
	test/testerror.c \
slouken@509
    85
	test/testgamma.c \
slouken@509
    86
	test/testgl.c \
slouken@509
    87
	test/testhread.c \
slouken@509
    88
	test/testjoystick.c \
slouken@509
    89
	test/testkeys.c \
slouken@509
    90
	test/testlock.c \
slouken@509
    91
	test/testoverlay.c \
slouken@509
    92
	test/testpalette.c \
slouken@509
    93
	test/testsem.c \
slouken@509
    94
	test/testsprite.c \
slouken@509
    95
	test/testtimer.c \
slouken@509
    96
	test/testtypes.c \
slouken@509
    97
	test/testver.c \
slouken@509
    98
	test/testvidinfo.c \
slouken@509
    99
	test/testwin.c \
slouken@509
   100
	test/testwm.c \
slouken@509
   101
	test/threadwin.c \
slouken@509
   102
	test/torturethread.c \
slouken@509
   103
slouken@1868
   104
$(TARGET): copy_config \
slouken@1868
   105
	$(OBJS)
slouken@1868
   106
	$(AR) rcs $(TARGET) $(OBJS) 
slouken@1868
   107
slouken@1868
   108
copy_config:
slouken@1868
   109
	@cp include/SDL_config.h.default include/SDL_config.h
slouken@509
   110
slouken@1461
   111
clean:
slouken@1868
   112
	rm -f include/SDL_config.h $(OBJS)