*Due space limitations only the debug version of kenobigc is supported, this means there is a bit less space for cheats. git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@2 be6c1b03-d731-4111-a574-e37d80d43941
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
PREFIX	=	$(DEVKITARM)/bin/arm-eabi-
 | 
						|
CC		=	$(PREFIX)gcc
 | 
						|
AS		=	$(PREFIX)as
 | 
						|
LD		=	$(PREFIX)gcc
 | 
						|
SSTRIP	=	$(DEVKITARM)/bin/arm-eabi-strip
 | 
						|
 | 
						|
CFLAGS	=	-mbig-endian -fomit-frame-pointer -O2 -Wall -I. -mcpu=arm926ej-s -mthumb
 | 
						|
CFLAGS +=	-fno-builtin-memcpy -fno-builtin-memset -fno-builtin-toupper -fno-builtin-memcmp -fno-builtin-malloc -fno-builtin-free
 | 
						|
 | 
						|
ASFLAGS	=	-mbig-endian -mcpu=arm926ej-s
 | 
						|
 | 
						|
LDFLAGS	=	-nostartfiles -nodefaultlibs -mbig-endian -Wl,-T,iosmodule.ld,-Map,iosmodule.map -n
 | 
						|
 | 
						|
LIBS	=	-lgcc
 | 
						|
 | 
						|
TARGET	=	iosmodule.elf
 | 
						|
OBJECTS	=	start.o utils_asm.o HW.o Card.o memory.o memory_asm.o Config.o common.o ff.o diskio.o alloc.o Drive.o DVD.o dip.o Patches.o main.o vsprintf.o string.o tiny_ehci_glue.o usb_os.o
 | 
						|
.PHONY: FORCE
 | 
						|
 | 
						|
all: $(TARGET)
 | 
						|
 | 
						|
$(TARGET) : iosmodule.ld $(OBJECTS)
 | 
						|
	@echo  "LD	$@"
 | 
						|
	@$(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
 | 
						|
	@echo $(SSTRIP) -s $@
 | 
						|
 | 
						|
 | 
						|
%.o : %.s
 | 
						|
	@echo  "AS	$@"
 | 
						|
	@$(CC) $(CFLAGS) -D_LANGUAGE_ASSEMBLY -c -x assembler-with-cpp -o $@ $<
 | 
						|
 | 
						|
%.o : %.S
 | 
						|
	@echo  "AS	$@"
 | 
						|
	@$(CC) $(CFLAGS) -D_LANGUAGE_ASSEMBLY -c -x assembler-with-cpp -o $@ $<
 | 
						|
 | 
						|
%.o : %.c
 | 
						|
	@echo  "CC	$@"
 | 
						|
	@$(CC) $(CFLAGS) -c -o $@ $<
 | 
						|
 | 
						|
%.d: %.c
 | 
						|
	@echo  "DEP	$@"
 | 
						|
	@set -e; $(CC) -M $(CFLAGS) $< \
 | 
						|
		| sed 's?\($*\)\.o[ :]*?\1.o $@ : ?g' > $@; \
 | 
						|
		[ -s $@ ] || rm -f $@
 | 
						|
 | 
						|
%.d: %.S
 | 
						|
	@echo	"DEP	$@"
 | 
						|
	@touch $@
 | 
						|
 | 
						|
-include $(OBJECTS:.o=.d)
 | 
						|
 | 
						|
clean:
 | 
						|
	-rm -f *.elf *.o *.bin *.d *.map
 |