Introduce libuKernel
This commit is contained in:
parent
22b23c8521
commit
9a2cf8af5c
|
@ -1,38 +1,37 @@
|
||||||
subdirs=drivers
|
subdirs=drivers
|
||||||
targets=uKernel.bin
|
targets=libuKernel,uKernel.bin
|
||||||
cppflags_force=-nostdinc -isystem ../include
|
cppflags_force=-nostdinc -isystem ../include
|
||||||
as=$(CC)
|
as=$(CC)
|
||||||
asflags_force=$(CFLAGSF) $(CFLAGS) -c
|
asflags_force=$(CFLAGSF) $(CFLAGS) -c
|
||||||
cflags_force=-ffreestanding
|
cflags_force=-ffreestanding -m32
|
||||||
cflags=-W -Wall -g -O2 -fstack-protector
|
cflags=-W -Wall -g -O2 -fstack-protector
|
||||||
ldflags_force=-T uKernel.ld -nostdlib -static
|
ldflags_force=-T uKernel.ld -nostdlib -static -m32
|
||||||
dist=Makefile,arch/i386/boot.S,ssp.h,uKernel.ld
|
dist=Makefile,arch/i386/boot.S,ssp.h,uKernel.ld
|
||||||
|
|
||||||
|
[libuKernel]
|
||||||
|
type=library
|
||||||
|
sources=ssp.c,stdlib.c,string.c
|
||||||
|
|
||||||
[uKernel.bin]
|
[uKernel.bin]
|
||||||
type=binary
|
type=binary
|
||||||
sources=boot.S,drivers/console.c,main.c,ssp.c,stdlib.c,string.c
|
sources=boot.S,drivers/console.c,main.c
|
||||||
ldflags=-m32
|
ldflags=$(OBJDIR)libuKernel.a
|
||||||
depends=uKernel.ld
|
depends=$(OBJDIR)libuKernel.a,uKernel.ld
|
||||||
|
|
||||||
[boot.S]
|
[boot.S]
|
||||||
depends=arch/i386/boot.S
|
depends=arch/i386/boot.S
|
||||||
asflags=-m32
|
|
||||||
|
|
||||||
[drivers/console.c]
|
[drivers/console.c]
|
||||||
depends=drivers/console/vga.h,drivers/console/vga.c
|
depends=drivers/console/vga.h,drivers/console/vga.c
|
||||||
cflags=-m32
|
|
||||||
|
|
||||||
[main.c]
|
[main.c]
|
||||||
cflags=-m32
|
depends=drivers/console.h
|
||||||
|
|
||||||
[ssp.c]
|
[ssp.c]
|
||||||
cflags=-m32
|
|
||||||
depends=../include/stdlib.h,ssp.h
|
depends=../include/stdlib.h,ssp.h
|
||||||
|
|
||||||
[stdlib.c]
|
[stdlib.c]
|
||||||
cflags=-m32
|
|
||||||
depends=../include/stdlib.h,../include/unistd.h
|
depends=../include/stdlib.h,../include/unistd.h
|
||||||
|
|
||||||
[string.c]
|
[string.c]
|
||||||
cflags=-m32
|
|
||||||
depends=../include/string.h
|
depends=../include/string.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user