Changeset 2ccd275 in mainline for Makefile


Ignore:
Timestamp:
2005-11-09T14:23:05Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
802bb95
Parents:
b183865e
Message:

Changes in build system.
For .S targets, always do -DASM.
Remove unnecessary #define ASM from various *.S files.
At the end of build, generate disassembler dump for kernel.raw.

ia64 work.
Better General Exception handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rb183865e r2ccd275  
    141141.PHONY: all clean config depend boot
    142142
    143 all: kernel.bin boot
     143all: kernel.bin boot disasm
    144144
    145145-include Makefile.depend
    146146
    147147clean:
    148         -rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump generic/src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld
     148        -rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld
    149149        find generic/src/ arch/$(ARCH)/src/ genarch/src/ -name '*.o' -exec rm \{\} \;
    150150        $(MAKE) -C arch/$(ARCH)/boot clean
     
    178178        $(MAKE) -C arch/$(ARCH)/boot build KERNEL_SIZE="`cat kernel.bin | wc -c`" CC=$(CC) AS=$(AS) LD=$(LD)
    179179
     180disasm: kernel.raw
     181        $(OBJDUMP) -d kernel.raw > kernel.disasm
     182
    180183%.o: %.S
    181         $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -c $< -o $@
     184        $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
    182185
    183186%.o: %.s
Note: See TracChangeset for help on using the changeset viewer.