1 CC = mips-elf-gcc -msoft-float -g
5 SDLMAIN_TARGET = libSDLmain.a
7 CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude -O3
10 src/audio/dummy/SDL_dummyaudio.c \
11 src/audio/SDL_audio.c \
12 src/audio/SDL_audiocvt.c \
13 src/audio/SDL_audiodev.c \
14 src/audio/SDL_mixer.c \
15 src/audio/SDL_wave.c \
16 src/cdrom/dummy/SDL_syscdrom.c \
17 src/cdrom/SDL_cdrom.c \
18 src/events/SDL_active.c \
19 src/events/SDL_events.c \
20 src/events/SDL_expose.c \
21 src/events/SDL_keyboard.c \
22 src/events/SDL_mouse.c \
23 src/events/SDL_quit.c \
24 src/events/SDL_resize.c \
25 src/file/SDL_rwops.c \
26 src/joystick/dummy/SDL_sysjoystick.c \
27 src/joystick/SDL_joystick.c \
28 src/loadso/dummy/SDL_sysloadso.c \
32 src/stdlib/SDL_getenv.c \
33 src/stdlib/SDL_iconv.c \
34 src/stdlib/SDL_malloc.c \
35 src/stdlib/SDL_qsort.c \
36 src/stdlib/SDL_stdlib.c \
37 src/stdlib/SDL_string.c \
38 src/thread/generic/SDL_syscond.c \
39 src/thread/generic/SDL_sysmutex.c \
40 src/thread/generic/SDL_syssem.c \
41 src/thread/generic/SDL_systhread.c \
42 src/thread/SDL_thread.c \
43 src/timer/yari/yari_hwr.c \
44 src/timer/yari/SDL_systimer.c \
45 src/timer/SDL_timer.c \
46 src/video/yari/SDL_yarivideo.c \
47 src/video/dummy/SDL_nullevents.c \
48 src/video/dummy/SDL_nullmouse.c \
49 src/video/dummy/SDL_nullvideo.c \
50 src/video/SDL_blit.c \
51 src/video/SDL_blit_0.c \
52 src/video/SDL_blit_1.c \
53 src/video/SDL_blit_A.c \
54 src/video/SDL_blit_N.c \
56 src/video/SDL_cursor.c \
57 src/video/SDL_gamma.c \
58 src/video/SDL_pixels.c \
59 src/video/SDL_RLEaccel.c \
60 src/video/SDL_stretch.c \
61 src/video/SDL_surface.c \
62 src/video/SDL_video.c \
64 src/video/SDL_yuv_sw.c \
65 src/cpuinfo/SDL_cpuinfo.c
69 SDLMAIN_SRC = src/main/dummy/SDL_dummy_main.c
70 SDLMAIN_OBJ = $(SDLMAIN_SRC:.c=.o)
100 all: $(TARGET) $(SDLMAIN_TARGET)
102 $(TARGET): copy_config $(OBJS) Makefile.yari
103 $(AR) rcs $(TARGET) $(OBJS)
105 $(SDLMAIN_TARGET): $(SDLMAIN_OBJ) Makefile.yari
106 $(AR) rcs $(SDLMAIN_TARGET) $(SDLMAIN_OBJ)
109 @cp include/SDL_config.h.default include/SDL_config.h
112 rm -f include/SDL_config.h $(OBJS)