Makefile.dc
author Ozkan Sezer <sezeroz@gmail.com>
Sun, 14 Oct 2018 15:03:56 +0300
branchSDL-1.2
changeset 12324 0a340924677b
parent 1868 c8f42ed8805e
child 1895 c121d94672cb
permissions -rw-r--r--
backport find_lib() fix to get the latest version of the libraries.

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