Makefile.ds
changeset 5301 248c5c7d6e29
parent 5290 25af68c1901d
child 5310 a9945ce48999
equal deleted inserted replaced
5300:3f825465a14a 5301:248c5c7d6e29
    23 
    23 
    24 #CFLAGS=$(DEFS) -Iinclude
    24 #CFLAGS=$(DEFS) -Iinclude
    25 CFLAGS	=	-mthumb -mthumb-interwork \
    25 CFLAGS	=	-mthumb -mthumb-interwork \
    26 		-march=armv5te -mtune=arm946e-s \
    26 		-march=armv5te -mtune=arm946e-s \
    27 		-O2 -Wall -Wwrite-strings -Wpointer-arith  \
    27 		-O2 -Wall -Wwrite-strings -Wpointer-arith  \
    28 		-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
    28 		-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 -Iinclude
    29 
    29 
    30 #src/audio/disk/SDL_diskaudio.c \
    30 #src/audio/disk/SDL_diskaudio.c \
    31 #src/audio/dummy/SDL_dummyaudio.c \
    31 #src/audio/dummy/SDL_dummyaudio.c \
    32 
    32 
    33 SRCS = \
    33 SRCS = \
   120 
   120 
   121 # That file must be compiled in arm mode, not thumb mode.
   121 # That file must be compiled in arm mode, not thumb mode.
   122 src/atomic/SDL_spinlock.o: src/atomic/SDL_spinlock.c
   122 src/atomic/SDL_spinlock.o: src/atomic/SDL_spinlock.c
   123 	$(CC) $(CFLAGS) -mno-thumb -o $@ -c $^
   123 	$(CC) $(CFLAGS) -mno-thumb -o $@ -c $^
   124 
   124 
   125 $(TARGET): copy_config \
   125 $(TARGET): copy_config $(OBJS)
   126 	$(OBJS)
       
   127 	$(AR) rc $(TARGET) $(OBJS)
   126 	$(AR) rc $(TARGET) $(OBJS)
   128 	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
   127 	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
   129 
   128 
   130 install: $(TARGET)
   129 install: $(TARGET)
   131 	@cp libSDL.a $(DEVKITPRO)/libnds/lib/
   130 	@cp libSDL.a $(DEVKITPRO)/libnds/lib/