From 7fcda8d524a804007049e727dac0ab8c49874325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 14:21:18 +0000 Subject: [PATCH] build: compilation du system.sys au format PE --- system/makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/system/makefile b/system/makefile index 74d3e0f..92283f9 100644 --- a/system/makefile +++ b/system/makefile @@ -1,20 +1,16 @@ -FREEC=gcc -O2 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c -o +CC=gcc -O1 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c -o -LINK=ld -Ttext 0x100000 -e __main -o +LINK=ld -e __main -o all: system.sys sync 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 - cat loader.bin>system.sys - cat system.bin>>system.sys + $(CC) systemc.o system.c + $(LINK) system.sys systemc.o system.o ../lib/libs.o clean: rm -f *.o