Commit 270f7dc6 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

Makefile: moved backtrace.o at the top to fix first-time compilation

this makes sure backtrace.h is created before any other files that may use it (currently boot-hack.c)
also remove the symlinks on "make clean"

--HG--
branch : backtrace
parent b5a5a3b6ffe0
......@@ -105,6 +105,7 @@ ML_OBJS-y += \
version.o
ML_SRC_OBJS = \
backtrace.o \
$(ML_BOOT_HACK_OBJ) \
fio-ml.o \
mem.o \
......@@ -171,7 +172,6 @@ ML_SRC_OBJS = \
raw.o \
chdk-dng.o \
edmac-memcpy.o \
backtrace.o \
ML_OBJS-y += $(ML_SRC_OBJS)
......@@ -263,6 +263,10 @@ $(SRC_DIR)/backtrace.c $(SRC_DIR)/backtrace.h:: $(SRC_DIR)/backtrace.%: $(QEMU_D
$(QEMU_DBI_DIR)/backtrace.c $(QEMU_DBI_DIR)/backtrace.h: $(QEMU_DBI_DIR)/backtrace.%: $(QEMU_INSTALLED_DBI_DIR)/backtrace.%
$(call build,CP,$(CP) $^ $@)
# remove the symlinks on make clean
clean::
$(call rm_files, $(SRC_DIR)/backtrace.c $(SRC_DIR)/backtrace.h)
# Extract the stdio files that we need
DIET_OBJ = \
strrchr.o \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment