- Timestamp:
- 2005-10-26T00:07:17Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 807d2d4
- Parents:
- 81e1396
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r81e1396 r34d9ab28 1 1 include Makefile.config 2 2 include arch/$(ARCH)/Makefile.inc 3 include genarch/Makefile.inc 3 4 4 5 sources=src/cpu/cpu.c \ … … 51 52 endif 52 53 arch_objects:=$(addsuffix .o,$(basename $(arch_sources))) 54 genarch_objects:=$(addsuffix .o,$(basename $(genarch_sources))) 53 55 objects:=$(addsuffix .o,$(basename $(sources))) 54 56 … … 61 63 config: 62 64 find src/ include/ -name arch -type l -exec rm \{\} \; 65 find src/ include/ -name genarch -type l -exec rm \{\} \; 63 66 ln -s ../arch/$(ARCH)/src/ src/arch 64 67 ln -s ../arch/$(ARCH)/include/ include/arch 68 ln -s ../genarch/src/ src/genarch 69 ln -s ../genarch/include/ include/genarch 65 70 66 71 depend: 67 $(CC) $(CFLAGS) -M $(arch_sources) $( sources) >Makefile.depend72 $(CC) $(CFLAGS) -M $(arch_sources) $(genarch_sources) $(sources) >Makefile.depend 68 73 69 74 build: kernel.bin boot 70 75 71 76 clean: 72 find src/ arch/$(ARCH)/src/ test/ -name '*.o' -exec rm \{\} \;77 find src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -exec rm \{\} \; 73 78 -rm *.bin kernel.map kernel.map.pre kernel.objdump src/debug/real_map.bin 74 79 $(MAKE) -C arch/$(ARCH)/boot/ clean … … 76 81 dist-clean: 77 82 find src/ include/ -name arch -type l -exec rm \{\} \; 83 find src/ include/ -name genarch -type l -exec rm \{\} \; 78 84 -rm Makefile.depend 79 85 -$(MAKE) clean 80 86 81 src/debug/real_map.bin: $(arch_objects) $( objects) $(test_objects) arch/$(ARCH)/_link.ld87 src/debug/real_map.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld 82 88 $(OBJCOPY) -I binary -O $(BFD_NAME) -B $(BFD_ARCH) --prefix-sections=symtab Makefile src/debug/empty_map.o 83 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $( objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre84 $(OBJDUMP) -t $(arch_objects) $( objects) $(test_objects) > kernel.objdump89 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/empty_map.o -o $@ -Map kernel.map.pre 90 $(OBJDUMP) -t $(arch_objects) $(genarch_objects) $(objects) $(test_objects) > kernel.objdump 85 91 tools/genmap.py kernel.map.pre kernel.objdump src/debug/real_map.bin 86 92 … … 89 95 90 96 91 kernel.bin: $(arch_objects) $( objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o92 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $( objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map97 kernel.bin: $(arch_objects) $(genarch_objects) $(objects) $(test_objects) arch/$(ARCH)/_link.ld src/debug/real_map.o 98 $(LD) -T arch/$(ARCH)/_link.ld $(LFLAGS) $(arch_objects) $(genarch_objects) $(objects) $(test_objects) src/debug/real_map.o -o $@ -Map kernel.map 93 99 94 100 %.o: %.S
Note:
See TracChangeset
for help on using the changeset viewer.