Makefile.ds
branchgsoc2008_nds
changeset 2670 6e4669f4db49
child 2673 24a6b3588eac
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.ds	Tue Jun 10 06:57:57 2008 +0000
     1.3 @@ -0,0 +1,139 @@
     1.4 +
     1.5 +#LibSDL 1.3 porting and enhancements by Darren Alton (lifning)
     1.6 +#LibSDL 1.2.9 DS porting by Troy Davis(GPF)
     1.7 +
     1.8 +ifeq ($(strip $(DEVKITARM)),)
     1.9 +$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
    1.10 +endif
    1.11 +
    1.12 +CC = arm-eabi-gcc
    1.13 +AR = arm-eabi-ar
    1.14 +RANLIB = arm-eabi-ranlib
    1.15 +
    1.16 +#ifdef GL
    1.17 +#DEFS += -DSDL_VIDEO_OPENGL=1
    1.18 +#TARGET = libSDL_gl.a
    1.19 +#else
    1.20 +TARGET = libSDL.a
    1.21 +#endif
    1.22 +
    1.23 +#CFLAGS=$(DEFS) -Iinclude
    1.24 +CFLAGS	=	-mthumb -mthumb-interwork \
    1.25 +		-march=armv5te -mtune=arm946e-s \
    1.26 +		-O2 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
    1.27 +		-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 \
    1.28 +		-Iinclude -Isrc -Isrc/audio -Isrc/cdrom -Isrc/endian -Isrc/events -Isrc/joystick -Isrc/thread/nds -Isrc/thread -Isrc/timer -Isrc/video
    1.29 +
    1.30 +SRCS = \
    1.31 +src/SDL.c \
    1.32 +src/SDL_compat.c \
    1.33 +src/SDL_error.c \
    1.34 +src/SDL_fatal.c \
    1.35 +src/audio/disk/SDL_diskaudio.c \
    1.36 +src/audio/dummy/SDL_dummyaudio.c \
    1.37 +src/audio/SDL_audio.c \
    1.38 +src/audio/SDL_audiocvt.c \
    1.39 +src/audio/SDL_audiodev.c \
    1.40 +src/audio/SDL_audiotypecvt.c \
    1.41 +src/audio/SDL_mixer.c \
    1.42 +src/audio/SDL_mixer_m68k.c \
    1.43 +src/audio/SDL_mixer_MMX.c \
    1.44 +src/audio/SDL_mixer_MMX_VC.c \
    1.45 +src/audio/SDL_wave.c \
    1.46 +src/cdrom/dummy/SDL_syscdrom.c \
    1.47 +src/cdrom/SDL_cdrom.c \
    1.48 +src/cpuinfo/SDL_cpuinfo.c \
    1.49 +src/events/SDL_events.c \
    1.50 +src/events/SDL_keyboard.c \
    1.51 +src/events/SDL_mouse.c \
    1.52 +src/events/SDL_quit.c \
    1.53 +src/events/SDL_windowevents.c \
    1.54 +src/file/SDL_rwops.c \
    1.55 +src/joystick/dummy/SDL_sysjoystick.c \
    1.56 +src/joystick/SDL_joystick.c \
    1.57 +src/stdlib/SDL_getenv.c \
    1.58 +src/stdlib/SDL_iconv.c \
    1.59 +src/stdlib/SDL_malloc.c \
    1.60 +src/stdlib/SDL_qsort.c \
    1.61 +src/stdlib/SDL_stdlib.c \
    1.62 +src/stdlib/SDL_string.c \
    1.63 +src/thread/SDL_thread.c \
    1.64 +src/thread/nds/SDL_syscond.c \
    1.65 +src/thread/nds/SDL_sysmutex.c \
    1.66 +src/thread/nds/SDL_syssem.c \
    1.67 +src/thread/nds/SDL_systhread.c \
    1.68 +src/timer/dummy/SDL_systimer.c \
    1.69 +src/timer/SDL_timer.c \
    1.70 +src/video/dummy/SDL_nullevents.c \
    1.71 +src/video/dummy/SDL_nullrender.c \
    1.72 +src/video/dummy/SDL_nullvideo.c \
    1.73 +src/video/nds/SDL_ndsevents.c \
    1.74 +src/video/nds/SDL_ndsrender.c \
    1.75 +src/video/nds/SDL_ndsvideo.c \
    1.76 +src/video/SDL_blit_0.c \
    1.77 +src/video/SDL_blit_1.c \
    1.78 +src/video/SDL_blit_A.c \
    1.79 +src/video/SDL_blit_auto.c \
    1.80 +src/video/SDL_blit.c \
    1.81 +src/video/SDL_blit_copy.c \
    1.82 +src/video/SDL_blit_N.c \
    1.83 +src/video/SDL_blit_slow.c \
    1.84 +src/video/SDL_bmp.c \
    1.85 +src/video/SDL_fill.c \
    1.86 +src/video/SDL_gamma.c \
    1.87 +src/video/SDL_pixels.c \
    1.88 +src/video/SDL_rect.c \
    1.89 +src/video/SDL_renderer_gl.c \
    1.90 +src/video/SDL_renderer_sw.c \
    1.91 +src/video/SDL_RLEaccel.c \
    1.92 +src/video/SDL_stretch.c \
    1.93 +src/video/SDL_surface.c \
    1.94 +src/video/SDL_video.c \
    1.95 +src/video/SDL_yuv_mmx.c \
    1.96 +src/video/SDL_yuv_sw.c \
    1.97 +
    1.98 +OBJS = $(SRCS:.c=.o)
    1.99 +
   1.100 +TEST = \
   1.101 +	test/checkkeys.c \
   1.102 +	test/graywin.c \
   1.103 +	test/loopwave.c \
   1.104 +	test/testalpha.c \
   1.105 +	test/testbitmap.c \
   1.106 +	test/testcdrom.c \
   1.107 +	test/testerror.c \
   1.108 +	test/testgamma.c \
   1.109 +	test/testgl.c \
   1.110 +	test/testhread.c \
   1.111 +	test/testjoystick.c \
   1.112 +	test/testkeys.c \
   1.113 +	test/testlock.c \
   1.114 +	test/testoverlay.c \
   1.115 +	test/testpalette.c \
   1.116 +	test/testsem.c \
   1.117 +	test/testsprite.c \
   1.118 +	test/testtimer.c \
   1.119 +	test/testtypes.c \
   1.120 +	test/testver.c \
   1.121 +	test/testvidinfo.c \
   1.122 +	test/testwin.c \
   1.123 +	test/testwm.c \
   1.124 +	test/threadwin.c \
   1.125 +	test/torturethread.c \
   1.126 +
   1.127 +all: $(TARGET)
   1.128 +
   1.129 +$(TARGET): copy_config \
   1.130 +	$(OBJS)
   1.131 +	$(AR) rc $(TARGET) $(OBJS)
   1.132 +	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
   1.133 +
   1.134 +install: $(TARGET)
   1.135 +	@cp libSDL.a $(DEVKITPRO)/libnds/lib/
   1.136 +
   1.137 +copy_config:
   1.138 +	@cp include/SDL_config.h.default include/SDL_config.h
   1.139 +
   1.140 +clean:
   1.141 +	rm -f include/SDL_config.h $(OBJS)
   1.142 +