-include arch/$(ARCHDIR)/Makefile
--include Makefile.BuildNum
+-include Makefile.BuildNum.$(ARCH)
KERNEL_VERSION = 0.5
$(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile
@echo --- LD -o $(BIN)
@$(LD) $(LDFLAGS) -o $(BIN) $(OBJ) $(MODS) -Map ../Map.$(ARCH).txt
- @objdump $(BIN) -D -S > $(BIN).dsm
+ $(DISASM) $(BIN) > $(BIN).dsm
@wc -l $(SRCFILES) include/*.h > LineCounts.$(ARCH).txt
- @echo BUILD_NUM = `calc $(BUILD_NUM)+1` > Makefile.BuildNum
+ @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH)
%.ao.$(ARCH): %.asm Makefile
@echo --- NASM -o $@
@echo --- $(LD) -o $@
# $(LD) -T $(ACESSDIR)/Modules/link.ld --allow-shlib-undefined -shared -nostdlib -o $@ $(OBJ)
@$(LD) --allow-shlib-undefined -shared -nostdlib -o $@ $(OBJ)
- @$(OBJDUMP) -d $(BIN) > $(BIN).dsm
+ @$(DISASM) $(BIN) > $(BIN).dsm
else
$(BIN): %.xo.$(ARCH): $(OBJ)
@echo --- $(LD) -o $@