Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhang0128 committed Jan 21, 2022
1 parent 3dc3eaa commit 851b4ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
all: apps/*.c
mkdir -p $(DEBUG_DIR) $(RELEASE_DIR)
@echo "---------------- Compile the Apps Layer ----------------"
for FILE_NAME in $^ ; do \
export APP_NAME=$$(basename $${FILE_NAME} .c);\
echo "Compile" $${FILE_NAME} "=>" $(RELEASE_DIR)/$${APP_NAME}.elf;\
$(RISCV_CC) $(CFLAGS) $(LDFLAGS) $(APPS_LAYOUT) $(APPS_SRCS) $${FILE_NAME} $(DEFAULT_LDLIBS) $(INCLUDE) -o $(RELEASE_DIR)/$${APP_NAME}.elf;\
echo "Compile" $${FILE_NAME} "=>" $(DEBUG_DIR)/$${APP_NAME}.lst;\
for FILE in $^ ; do \
export APP_NAME=$$(basename $${FILE} .c);\
echo "Compile" $${FILE} "=>" $(RELEASE_DIR)/$${APP_NAME}.elf;\
$(RISCV_CC) $(CFLAGS) $(LDFLAGS) $(APPS_LAYOUT) $(APPS_SRCS) $${FILE} $(DEFAULT_LDLIBS) $(INCLUDE) -o $(RELEASE_DIR)/$${APP_NAME}.elf;\
echo "Compile" $${FILE} "=>" $(DEBUG_DIR)/$${APP_NAME}.lst;\
$(OBJDUMP) --source --all-headers --demangle --line-numbers --wide $(RELEASE_DIR)/$${APP_NAME}.elf > $(DEBUG_DIR)/$${APP_NAME}.lst;\
done
@echo "---------------- Compile the Grass Layer ----------------"
Expand Down

0 comments on commit 851b4ae

Please sign in to comment.