- Timestamp:
- 2005-11-08T00:00:15Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b65205
- Parents:
- 849ba5cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r849ba5cb r6bc4dbd 47 47 # 48 48 49 DEFS = -DARCH=$(ARCH) 49 50 CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 50 51 LFLAGS = -M 52 AFLAGS = 51 53 52 54 ## Setup kernel configuration … … 129 131 130 132 clean: 133 -rm -f kernel.bin 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 131 134 find generic/src/ arch/$(ARCH)/src/ genarch/src/ -name '*.o' -exec rm \{\} \; 132 -rm -f kernel.bin kernel.map kernel.map.pre kernel.objdump generic/src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld133 135 $(MAKE) -C arch/$(ARCH)/boot clean 134 136 … … 138 140 139 141 depend: config 140 $(CC) $( CFLAGS) -M $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend142 $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 141 143 142 144 arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in 143 $(CC) $( CFLAGS) -E -x c $< | grep -v "^\#" > $@145 $(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ 144 146 145 147 generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) … … 156 158 157 159 boot: kernel.bin 158 $(MAKE) -C arch/$(ARCH)/boot build KERNEL_SIZE="`cat kernel.bin | wc -c`" 160 $(MAKE) -C arch/$(ARCH)/boot build KERNEL_SIZE="`cat kernel.bin | wc -c`" CC=$(CC) AS=$(AS) LD=$(LD) 159 161 160 162 %.o: %.S 161 $(CC) $( ASFLAGS) $(CFLAGS) -c $< -o $@163 $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -c $< -o $@ 162 164 163 165 %.o: %.s 164 $(AS) $(A SFLAGS) $< -o $@166 $(AS) $(AFLAGS) $< -o $@ 165 167 166 168 %.o: %.c 167 $(CC) $( CFLAGS) -c $< -o $@169 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
Note:
See TracChangeset
for help on using the changeset viewer.