Makefile.dc
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 11 Jul 2008 00:28:50 +0000
branchgsoc2008_iphone
changeset 2338 f8d143be1398
parent 1895 c121d94672cb
child 3170 b7a48f533966
permissions -rw-r--r--
(none)
     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/glsdl/SDL_glsdl.c \
    59 	src/video/SDL_blit.c \
    60 	src/video/SDL_blit_0.c \
    61 	src/video/SDL_blit_1.c \
    62 	src/video/SDL_blit_A.c \
    63 	src/video/SDL_blit_N.c \
    64 	src/video/SDL_bmp.c \
    65 	src/video/SDL_cursor.c \
    66 	src/video/SDL_gamma.c \
    67 	src/video/SDL_pixels.c \
    68 	src/video/SDL_RLEaccel.c \
    69 	src/video/SDL_stretch.c \
    70 	src/video/SDL_surface.c \
    71 	src/video/SDL_video.c \
    72 	src/video/SDL_yuv.c \
    73 	src/video/SDL_yuv_sw.c \
    74 
    75 OBJS = $(SRCS:.c=.o)
    76 
    77 TEST = \
    78 	test/checkkeys.c \
    79 	test/graywin.c \
    80 	test/loopwave.c \
    81 	test/testalpha.c \
    82 	test/testbitmap.c \
    83 	test/testcdrom.c \
    84 	test/testerror.c \
    85 	test/testgamma.c \
    86 	test/testgl.c \
    87 	test/testhread.c \
    88 	test/testjoystick.c \
    89 	test/testkeys.c \
    90 	test/testlock.c \
    91 	test/testoverlay.c \
    92 	test/testpalette.c \
    93 	test/testsem.c \
    94 	test/testsprite.c \
    95 	test/testtimer.c \
    96 	test/testtypes.c \
    97 	test/testver.c \
    98 	test/testvidinfo.c \
    99 	test/testwin.c \
   100 	test/testwm.c \
   101 	test/threadwin.c \
   102 	test/torturethread.c \
   103 
   104 $(TARGET): copy_config \
   105 	$(OBJS)
   106 	$(AR) rcs $(TARGET) $(OBJS) 
   107 
   108 copy_config:
   109 	@cp include/SDL_config.h.default include/SDL_config.h
   110 
   111 clean:
   112 	rm -f include/SDL_config.h $(OBJS)