
CC = mipsel-unknown-elf-gcc
AS = mipsel-unknown-elf-as
LD = mipsel-unknown-elf-ld
DU = mipsel-unknown-elf-objdump
AR = mipsel-unknown-elf-ar

APP_NAME = display

OBJS= display.o 

LIBS= -L../../build/libs -luser

INCLUDES = -I../../giet_libs -I. -I../..

LIB_DEPS = ../../build/libs/libuser.a

appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 
	$(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
	$(DU) -D $@ > $@.txt

%.o: %.c 
	$(CC)  $(INCLUDES) $(CFLAGS) -c -o  $@ $<

clean:
	rm -f *.o *.elf *.txt core *~
