diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 18:23:01 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-24 19:43:52 +0100 |
commit | eee119de6a2bd0487e91daf69e7962351e2a3c9c (patch) | |
tree | e0e3bbe6d234e30216a83b65abafadf9f4df75f3 /target-rules.mk | |
parent | 965df7faefabdd5f571b5eb46d45470223c91e12 (diff) |
Dummy software compiles; fixed a few linking issues. Also, most of the kernel syscalls are missing.
Diffstat (limited to 'target-rules.mk')
-rw-r--r-- | target-rules.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target-rules.mk b/target-rules.mk index 5b976bc..1ce9487 100644 --- a/target-rules.mk +++ b/target-rules.mk @@ -11,12 +11,15 @@ TARGET_OBJS = $(addsuffix .o, $(basename $(TARGET_SRCS))) ifneq ($(TARGET),) TARGET_ELF = $(addsuffix .elf, $(basename $(TARGET))) TARGET_BIN = $(addsuffix .bin, $(basename $(TARGET))) +TARGET_MAP = $(addsuffix .map, $(basename $(TARGET))) TARGET_OBJS += $(addsuffix .o, $(basename $(TARGET))) endif $(TARGET_ELF): $(TARGET_OBJS) $(E) [TL] Linking $@ - $(Q)$(TARGET_LD) -o $@ $^ -T$(LDSCRIPT) $(LIBS) + $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $^ -T$(LDSCRIPT) $(LIBS) + +$(TARGET_MAP): $(TARGET_ELF) $(TARGET_BIN): $(TARGET_ELF) $(E) [TB] Creating $@ |