source:
soft/giet_vm/applications/hello/Makefile
Last change on this file was 824, checked in by , 8 years ago | |
---|---|
File size: 516 bytes |
Rev | Line | |
---|---|---|
[191] | 1 | |
[824] | 2 | CC = mipsel-unknown-elf-gcc |
3 | AS = mipsel-unknown-elf-as | |
4 | LD = mipsel-unknown-elf-ld | |
5 | DU = mipsel-unknown-elf-objdump | |
6 | AR = mipsel-unknown-elf-ar | |
[191] | 7 | |
[824] | 8 | APP_NAME = hello |
[191] | 9 | |
[824] | 10 | LIBS = -L../../build/libs -luser |
[191] | 11 | |
[824] | 12 | LIB_DEPS = ../../build/libs/libuser.a |
[191] | 13 | |
[824] | 14 | INCLUDES = -I. -I../.. -I../../giet_libs |
[191] | 15 | |
[824] | 16 | OBJS= hello.o |
[191] | 17 | |
[824] | 18 | appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) $(APP_NAME).py |
19 | $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS) | |
20 | $(DU) -D $@ > $@.txt | |
21 | ||
[191] | 22 | %.o: %.c |
[824] | 23 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
[191] | 24 | |
25 | clean: | |
[824] | 26 | rm -f *.o *.elf *.txt core *~ |
Note: See TracBrowser
for help on using the repository browser.