From 19dca7321b97d2eca307018350f1089d7302649b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 13:06:17 +0000 Subject: [PATCH] =?UTF-8?q?build:=20n'utilise=20plus=20objcopy=20pour=20la?= =?UTF-8?q?=20g=C3=A9n=C3=A9ration=20du=20binaire=20pur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/makefile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/system/makefile b/system/makefile index ca416e6..7e58e56 100644 --- a/system/makefile +++ b/system/makefile @@ -1,30 +1,20 @@ FREEC=gcc -O2 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c -o - - -LINK=ld -Ttext 0x100000 -e __main -o +LINK=ld -N -Ttext 0x100000 -e main -o all: system.sys sync -copy: - (cp system.sys /cygdrive/a) - -copy2: - (cp system.sys /cygdrive/b) - system.sys: nasm -f bin -o loader.bin loader.asm nasm -f elf -o system.o system.asm $(FREEC) systemc.o system.c - $(LINK) system.out systemc.o system.o ../lib/libs.o - objcopy -O binary system.out system.bin + $(LINK) system.bin systemc.o system.o ../lib/libs.o --oformat binary cat loader.bin>system.sys cat system.bin>>system.sys clean: rm -f *.o - rm -f *.out rm -f *.bin rm -f *.sys