From 759e88c1180de8f5f09f510218929daf4e79d804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 13:21:56 +0000 Subject: [PATCH] build: ajout des nouveaux modules a compiler --- lib/makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/makefile b/lib/makefile index 451ad18..aa6f96b 100644 --- a/lib/makefile +++ b/lib/makefile @@ -1,20 +1,25 @@ FREEC=gcc -O2 -nostdinc -ffreestanding -fno-builtin -fomit-frame-pointer -Wall -I ../Include -c -PARTIAL=-r -OBJS= memory.o port.o vgatxt.o +PARTIAL=ld -r -o +OBJS= memory.o vga.o port.o video.o all: makeall -makeall: $(OBJS) - (sync;ld $(PARTIAL) -o libs.o $(OBJS)) +makeall: libs.o -vgatxt.o:vgatxt.c +libs.o:$(OBJS) + $(PARTIAL) libs.o $(OBJS) + +vga.o:vga.c + $(FREEC) $^ + +video.o:video.c + $(FREEC) $^ + +port.o:port.c $(FREEC) $^ memory.o:memory.c $(FREEC) $^ - -port.o:port.c - $(FREEC) $^ clean: rm -f *.o