From 63606e2329368a3900959840516fde50c9bc3ae7 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 22 Nov 2005 14:12:15 +0000 Subject: 2005-11-22 Ralf Corsepius * custom/gba.cfg, custom/pc386.cfg: Use .elf instead of .obj. --- make/custom/gba.cfg | 20 ++++++++++---------- make/custom/pc386.cfg | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'make/custom') diff --git a/make/custom/gba.cfg b/make/custom/gba.cfg index 29fbb40a71..d154fc1e5f 100644 --- a/make/custom/gba.cfg +++ b/make/custom/gba.cfg @@ -31,26 +31,26 @@ CXXFLAGS_DEBUG_V=-O1 -ggdb define make-exe $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ - -Wl,-Map,$(basename $@).map -o $(basename $@).obj \ + -Wl,-Map,$(basename $@).map -o $(basename $@).elf \ $(LINK_OBJS) $(LINK_LIBS) - $(OBJCOPY) -O binary $(basename $@).obj $@ + $(OBJCOPY) -O binary $(basename $@).elf $@ $(OBJCOPY) -O binary --remove-section=.comment \ --remove-section=.note --strip-unneeded \ - $(basename $@).obj $(basename $@).gba - $(NM) -g -n $(basename $@).obj > $(basename $@).num - $(SIZE) $(basename $@).obj + $(basename $@).elf $(basename $@).gba + $(NM) -g -n $(basename $@).elf > $(basename $@).num + $(SIZE) $(basename $@).elf endef define make-cxx-exe $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ - -Wl,-Map,$(basename $@).map -o $(basename $@).obj \ + -Wl,-Map,$(basename $@).map -o $(basename $@).elf \ $(LINK_OBJS) $(LINK_LIBS) - $(OBJCOPY) -O binary $(basename $@).obj $@ + $(OBJCOPY) -O binary $(basename $@).elf $@ $(OBJCOPY) -O binary --remove-section=.comment \ --remove-section=.note --strip-unneeded \ - $(basename $@).obj $(basename $@).gba - $(NM) -g -n $(basename $@).obj > $(basename $@).num - $(SIZE) $(basename $@).obj + $(basename $@).elf $(basename $@).gba + $(NM) -g -n $(basename $@).elf > $(basename $@).num + $(SIZE) $(basename $@).elf endef # Miscellaneous additions go here diff --git a/make/custom/pc386.cfg b/make/custom/pc386.cfg index 90034d29d5..4021faadb4 100644 --- a/make/custom/pc386.cfg +++ b/make/custom/pc386.cfg @@ -50,18 +50,18 @@ HEADERADDR=0x00097E00 define make-exe $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ - -o $(basename $@).obj \ + -o $(basename $@).elf \ $(LINK_OBJS) $(LINK_LIBS) $(OBJCOPY) -O elf32-i386 \ --remove-section=.rodata \ --remove-section=.comment \ --remove-section=.note \ - --strip-unneeded $(basename $@).obj $@ - $(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin + --strip-unneeded $(basename $@).elf $@ + $(OBJCOPY) -O binary $(basename $@).elf $(basename $@).bin $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 - $(NM) -g -n $(basename $@).obj > $(basename $@).num - $(SIZE) $(basename $@).obj + $(NM) -g -n $(basename $@).elf > $(basename $@).num + $(SIZE) $(basename $@).elf # test -d ${PROJECT_RELEASE}/BootImgs \ # || mkdir ${PROJECT_RELEASE}/BootImgs # f=`basename $@ .exe`; \ @@ -74,18 +74,18 @@ define make-exe endef define make-cxx-exe $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ - -Wl,-Ttext,$(RELOCADDR) -o $(basename $@).obj \ + -Wl,-Ttext,$(RELOCADDR) -o $(basename $@).elf \ $(LINK_OBJS) $(LINK_LIBS) $(OBJCOPY) -O elf32-i386 \ --remove-section=.rodata \ --remove-section=.comment \ --remove-section=.note \ - --strip-unneeded $(basename $@).obj $@ - $(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin + --strip-unneeded $(basename $@).elf $@ + $(OBJCOPY) -O binary $(basename $@).elf $(basename $@).bin $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 - $(NM) -g -n $(basename $@).obj > $(basename $@).num - $(SIZE) $(basename $@).obj + $(NM) -g -n $(basename $@).elf > $(basename $@).num + $(SIZE) $(basename $@).elf endef # Miscellaneous additions go here -- cgit v1.2.3