Makefile.ds
changeset 5289 1916a9e9714d
parent 5271 73f8030f0c72
child 5290 25af68c1901d
     1.1 --- a/Makefile.ds	Sun Feb 13 13:46:10 2011 -0800
     1.2 +++ b/Makefile.ds	Sun Feb 13 14:01:02 2011 -0800
     1.3 @@ -1,13 +1,13 @@
     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 $(DEVKITPRO)),)
     1.9 -$(error "Please set DEVKITPRO in your environment (available from http://www.devkitpro.org). export DEVKITPRO=<path to>devkitPro")
    1.10 -endif
    1.11 -ifeq ($(strip $(DEVKITARM)),)
    1.12 +#LibSDL 1.3 porting and enhancements by Darren Alton (lifning)
    1.13 +#LibSDL 1.2.9 DS porting by Troy Davis(GPF)
    1.14 +
    1.15 +ifeq ($(strip $(DEVKITPRO)),)
    1.16 +$(error "Please set DEVKITPRO in your environment (available from http://www.devkitpro.org). export DEVKITPRO=<path to>devkitPro")
    1.17 +endif
    1.18 +ifeq ($(strip $(DEVKITARM)),)
    1.19  DEVKITARM = $(DEVKITPRO)/devkitARM
    1.20 -endif
    1.21 +endif
    1.22  PATH := $(PATH):$(DEVKITARM)/bin
    1.23  
    1.24  CC = arm-eabi-gcc
    1.25 @@ -40,6 +40,7 @@
    1.26  src/SDL_hints.c \
    1.27  src/SDL_log.c \
    1.28  src/atomic/SDL_atomic.c \
    1.29 +src/atomic/SDL_spinlock.c \
    1.30  src/audio/SDL_audio.c \
    1.31  src/audio/SDL_audiocvt.c \
    1.32  src/audio/SDL_audiodev.c \
    1.33 @@ -118,6 +119,10 @@
    1.34  
    1.35  all: $(TARGET) install nds_test
    1.36  
    1.37 +# That file must be compiled in arm mode, not thumb mode.
    1.38 +src/atomic/SDL_spinlock.o: src/atomic/SDL_spinlock.c
    1.39 +	$(CC) $(CFLAGS) -mno-thumb -o $@ -c $^
    1.40 +
    1.41  $(TARGET): copy_config \
    1.42  	$(OBJS)
    1.43  	$(AR) rc $(TARGET) $(OBJS)