comparison Makefile.ds @ 2670:6e4669f4db49 gsoc2008_nds

Fix for the previous commit: actually 'svn add'ed some files.
author Darren Alton <dalton@stevens.edu>
date Tue, 10 Jun 2008 06:57:57 +0000
parents
children 24a6b3588eac
comparison
equal deleted inserted replaced
2669:e27bdcc80744 2670:6e4669f4db49
1
2 #LibSDL 1.3 porting and enhancements by Darren Alton (lifning)
3 #LibSDL 1.2.9 DS porting by Troy Davis(GPF)
4
5 ifeq ($(strip $(DEVKITARM)),)
6 $(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
7 endif
8
9 CC = arm-eabi-gcc
10 AR = arm-eabi-ar
11 RANLIB = arm-eabi-ranlib
12
13 #ifdef GL
14 #DEFS += -DSDL_VIDEO_OPENGL=1
15 #TARGET = libSDL_gl.a
16 #else
17 TARGET = libSDL.a
18 #endif
19
20 #CFLAGS=$(DEFS) -Iinclude
21 CFLAGS = -mthumb -mthumb-interwork \
22 -march=armv5te -mtune=arm946e-s \
23 -O2 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
24 -DARM9 -D__NDS__ -I$(DEVKITPRO)/libnds/include -DENABLE_NDS -DNO_SIGNAL_H -DDISABLE_THREADS -DPACKAGE=\"SDL\" -DVERSION=\"1.3\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 \
25 -Iinclude -Isrc -Isrc/audio -Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/nds -Isrc/thread -Isrc/timer -Isrc/video
26
27 SRCS = \
28 src/SDL.c \
29 src/SDL_compat.c \
30 src/SDL_error.c \
31 src/SDL_fatal.c \
32 src/audio/disk/SDL_diskaudio.c \
33 src/audio/dummy/SDL_dummyaudio.c \
34 src/audio/SDL_audio.c \
35 src/audio/SDL_audiocvt.c \
36 src/audio/SDL_audiodev.c \
37 src/audio/SDL_audiotypecvt.c \
38 src/audio/SDL_mixer.c \
39 src/audio/SDL_mixer_m68k.c \
40 src/audio/SDL_mixer_MMX.c \
41 src/audio/SDL_mixer_MMX_VC.c \
42 src/audio/SDL_wave.c \
43 src/cdrom/dummy/SDL_syscdrom.c \
44 src/cdrom/SDL_cdrom.c \
45 src/cpuinfo/SDL_cpuinfo.c \
46 src/events/SDL_events.c \
47 src/events/SDL_keyboard.c \
48 src/events/SDL_mouse.c \
49 src/events/SDL_quit.c \
50 src/events/SDL_windowevents.c \
51 src/file/SDL_rwops.c \
52 src/joystick/dummy/SDL_sysjoystick.c \
53 src/joystick/SDL_joystick.c \
54 src/stdlib/SDL_getenv.c \
55 src/stdlib/SDL_iconv.c \
56 src/stdlib/SDL_malloc.c \
57 src/stdlib/SDL_qsort.c \
58 src/stdlib/SDL_stdlib.c \
59 src/stdlib/SDL_string.c \
60 src/thread/SDL_thread.c \
61 src/thread/nds/SDL_syscond.c \
62 src/thread/nds/SDL_sysmutex.c \
63 src/thread/nds/SDL_syssem.c \
64 src/thread/nds/SDL_systhread.c \
65 src/timer/dummy/SDL_systimer.c \
66 src/timer/SDL_timer.c \
67 src/video/dummy/SDL_nullevents.c \
68 src/video/dummy/SDL_nullrender.c \
69 src/video/dummy/SDL_nullvideo.c \
70 src/video/nds/SDL_ndsevents.c \
71 src/video/nds/SDL_ndsrender.c \
72 src/video/nds/SDL_ndsvideo.c \
73 src/video/SDL_blit_0.c \
74 src/video/SDL_blit_1.c \
75 src/video/SDL_blit_A.c \
76 src/video/SDL_blit_auto.c \
77 src/video/SDL_blit.c \
78 src/video/SDL_blit_copy.c \
79 src/video/SDL_blit_N.c \
80 src/video/SDL_blit_slow.c \
81 src/video/SDL_bmp.c \
82 src/video/SDL_fill.c \
83 src/video/SDL_gamma.c \
84 src/video/SDL_pixels.c \
85 src/video/SDL_rect.c \
86 src/video/SDL_renderer_gl.c \
87 src/video/SDL_renderer_sw.c \
88 src/video/SDL_RLEaccel.c \
89 src/video/SDL_stretch.c \
90 src/video/SDL_surface.c \
91 src/video/SDL_video.c \
92 src/video/SDL_yuv_mmx.c \
93 src/video/SDL_yuv_sw.c \
94
95 OBJS = $(SRCS:.c=.o)
96
97 TEST = \
98 test/checkkeys.c \
99 test/graywin.c \
100 test/loopwave.c \
101 test/testalpha.c \
102 test/testbitmap.c \
103 test/testcdrom.c \
104 test/testerror.c \
105 test/testgamma.c \
106 test/testgl.c \
107 test/testhread.c \
108 test/testjoystick.c \
109 test/testkeys.c \
110 test/testlock.c \
111 test/testoverlay.c \
112 test/testpalette.c \
113 test/testsem.c \
114 test/testsprite.c \
115 test/testtimer.c \
116 test/testtypes.c \
117 test/testver.c \
118 test/testvidinfo.c \
119 test/testwin.c \
120 test/testwm.c \
121 test/threadwin.c \
122 test/torturethread.c \
123
124 all: $(TARGET)
125
126 $(TARGET): copy_config \
127 $(OBJS)
128 $(AR) rc $(TARGET) $(OBJS)
129 -@ ($(RANLIB) $@ || true) >/dev/null 2>&1
130
131 install: $(TARGET)
132 @cp libSDL.a $(DEVKITPRO)/libnds/lib/
133
134 copy_config:
135 @cp include/SDL_config.h.default include/SDL_config.h
136
137 clean:
138 rm -f include/SDL_config.h $(OBJS)
139