You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
531 B

#
# Makefile to build hello.c
#
CROSS_COMPILE =mips-elf-
#
# Include the make variables (CC, etc...)
#
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
SIZE = $(CROSS_COMPILE)size
hello: hello.c
${CC} -G 0 -O2 -EL -mips2 -mcpu=r4000 -Ttext=0x80200000 -N -o hello hello.c -nostdlib -e main
cp hello /tftpboot
clean:
rm -f hello