Makefile.dc
changeset 509 dad72daf44b3
child 1461 11134dc42da8
equal deleted inserted replaced
508:9ff7e90aaa94 509:dad72daf44b3
       
     1 #GL=1
       
     2 
       
     3 CC = sh-elf-gcc -ml -m4-single-only
       
     4 AR = sh-elf-ar
       
     5 KOS_BASE=/prog/kos-1.1.7
       
     6 INCS = -I$(KOS_BASE)/libc/include -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include
       
     7 DEFS =-DNO_SIGNAL_H -DENABLE_DC
       
     8 
       
     9 ifdef GL
       
    10 DEFS += -DHAVE_OPENGL
       
    11 TARGET = libSDL_gl.a
       
    12 else
       
    13 TARGET = libSDL.a
       
    14 endif
       
    15 
       
    16 OPTFLAGS=-O2 -fomit-frame-pointer
       
    17 CFLAGS=-D_arch_dreamcast $(DEFS) $(INCS) -Iinclude -Isrc -Isrc/audio -Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/dc -Isrc/thread -Isrc/timer -Isrc/video $(OPTFLAGS)
       
    18 
       
    19 SRCS = \
       
    20 	src/audio/dc/SDL_dcaudio.c \
       
    21 	src/audio/dc/aica.c \
       
    22 	src/audio/SDL_audio.c \
       
    23 	src/audio/SDL_audiocvt.c \
       
    24 	src/audio/SDL_audiodev.c \
       
    25 	src/audio/SDL_audiomem.c \
       
    26 	src/audio/SDL_mixer.c \
       
    27 	src/audio/SDL_wave.c \
       
    28 	src/cdrom/dc/SDL_syscdrom.c \
       
    29 	src/cdrom/SDL_cdrom.c \
       
    30 	src/endian/SDL_endian.c \
       
    31 	src/events/SDL_active.c \
       
    32 	src/events/SDL_events.c \
       
    33 	src/events/SDL_expose.c \
       
    34 	src/events/SDL_keyboard.c \
       
    35 	src/events/SDL_mouse.c \
       
    36 	src/events/SDL_quit.c \
       
    37 	src/events/SDL_resize.c \
       
    38 	src/file/SDL_rwops.c \
       
    39 	src/joystick/dc/SDL_sysjoystick.c \
       
    40 	src/joystick/SDL_joystick.c \
       
    41 	src/SDL.c \
       
    42 	src/SDL_error.c \
       
    43 	src/SDL_fatal.c \
       
    44 	src/SDL_getenv.c \
       
    45 	src/SDL_loadso.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/SDL_blit.c \
       
    56 	src/video/SDL_blit_0.c \
       
    57 	src/video/SDL_blit_1.c \
       
    58 	src/video/SDL_blit_A.c \
       
    59 	src/video/SDL_blit_N.c \
       
    60 	src/video/SDL_bmp.c \
       
    61 	src/video/SDL_cursor.c \
       
    62 	src/video/SDL_gamma.c \
       
    63 	src/video/SDL_pixels.c \
       
    64 	src/video/SDL_RLEaccel.c \
       
    65 	src/video/SDL_stretch.c \
       
    66 	src/video/SDL_surface.c \
       
    67 	src/video/SDL_video.c \
       
    68 	src/video/SDL_yuv.c \
       
    69 	src/video/SDL_yuv_sw.c \
       
    70 
       
    71 OBJS = $(SRCS:.c=.o)
       
    72 
       
    73 TEST = \
       
    74 	test/checkkeys.c \
       
    75 	test/graywin.c \
       
    76 	test/loopwave.c \
       
    77 	test/testalpha.c \
       
    78 	test/testbitmap.c \
       
    79 	test/testcdrom.c \
       
    80 	test/testerror.c \
       
    81 	test/testgamma.c \
       
    82 	test/testgl.c \
       
    83 	test/testhread.c \
       
    84 	test/testjoystick.c \
       
    85 	test/testkeys.c \
       
    86 	test/testlock.c \
       
    87 	test/testoverlay.c \
       
    88 	test/testpalette.c \
       
    89 	test/testsem.c \
       
    90 	test/testsprite.c \
       
    91 	test/testtimer.c \
       
    92 	test/testtypes.c \
       
    93 	test/testver.c \
       
    94 	test/testvidinfo.c \
       
    95 	test/testwin.c \
       
    96 	test/testwm.c \
       
    97 	test/threadwin.c \
       
    98 	test/torturethread.c \
       
    99 
       
   100 clean:
       
   101 	rm $(OBJS)
       
   102 
       
   103 $(TARGET) : $(OBJS)
       
   104 	$(AR) rcs $(TARGET) $(OBJS)
       
   105