YARISIM: Allow -i and -o to refer to the same file (= pseudo tty)
[yari.git] / SDL-1.2 / Makefile.yari
blob0dd0d1ec878602afdb155a39f51b4ef4582cfc72
1 CC = mips-elf-gcc -msoft-float -g
2 AR = mips-elf-ar
4 TARGET = libSDL.a
5 SDLMAIN_TARGET = libSDLmain.a
7 CFLAGS=$(KOS_CFLAGS) $(DEFS) -Iinclude -O3
9 SRCS = \
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 \
29         src/SDL.c \
30         src/SDL_error.c \
31         src/SDL_fatal.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 \
55         src/video/SDL_bmp.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 \
63         src/video/SDL_yuv.c \
64         src/video/SDL_yuv_sw.c \
65         src/cpuinfo/SDL_cpuinfo.c
67 OBJS = $(SRCS:.c=.o)
69 SDLMAIN_SRC = src/main/dummy/SDL_dummy_main.c
70 SDLMAIN_OBJ = $(SDLMAIN_SRC:.c=.o)
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
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)
108 copy_config:
109         @cp include/SDL_config.h.default include/SDL_config.h
111 clean:
112         rm -f include/SDL_config.h $(OBJS)