Changeset 824 for soft/giet_vm/applications/hello
- Timestamp:
- Nov 26, 2016, 7:33:20 PM (8 years ago)
- Location:
- soft/giet_vm/applications/hello
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/hello/Makefile
r191 r824 1 APP_NAME=hello2 1 3 USE+= stdio.o 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 4 7 5 USES=$(patsubst %,$(BUILD_PATH)/$(LIB_NAME)/%,$(USE)) 8 APP_NAME = hello 6 9 7 OBJS= main.o 10 LIBS = -L../../build/libs -luser 8 11 9 all: $(APP_NAME).elf 12 LIB_DEPS = ../../build/libs/libuser.a 10 13 11 BIN_NAME_PATH=$(BUILD_PATH)$(APP_NAME).elf 14 INCLUDES = -I. -I../.. -I../../giet_libs 12 15 13 $(APP_NAME).elf: $(OBJS) $(APP_NAME).ld 14 $(LD) -o $(BIN_NAME_PATH) -T $(APP_NAME).ld $(OBJS) $(USES) 15 $(DU) -D $(BIN_NAME_PATH) > $@.txt 16 OBJS= hello.o 17 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 16 21 17 22 %.o: %.c 18 $(CC) $(INCLUDE) $(CFLAGS) $($*.o_CFLAGS) -c -o $@ $< 19 $(DU) -D $@ > $@.txt 20 23 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 21 24 22 25 clean: 23 rm -f *.o *.elf *.txt core *~ 2>$(TRASH) 24 rm $(BIN_NAME_PATH) 2>$(TRASH) 26 rm -f *.o *.elf *.txt core *~ -
soft/giet_vm/applications/hello/hello.ld
r258 r824 3 3 *****************************************************************************/ 4 4 5 seg_code_base = 0x 00400000;6 seg_data_base = 0x 00500000;5 seg_code_base = 0x10000000; 6 seg_data_base = 0x20000000; 7 7 8 8 /***************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.