uKernel/tools/project.conf
Pierre Pronchery 7a4342dfba Determine the {C,LD}FLAGS from a shell script
This should simplify targeting specific architectures for the moment.
2018-03-28 05:20:30 +02:00

19 lines
488 B
Plaintext

targets=start.o,uKernel
cppflags_force=-nostdinc -isystem ../include -I ../src
cflags_force=-ffreestanding
cflags=-W -Wall -g -O2 -fstack-protector
as=$(CC)
asflags_force=$(CFLAGSF) $(CFLAGS) -c
ldflags_force=-nostdlib -static
dist=Makefile,platform.sh
[start.o]
type=object
sources=start.S
[uKernel]
type=binary
sources=console.c,main.c
ldflags=$(OBJDIR)start.o $(OBJDIR)../src/lib/libuKernel.a `$(CC) -print-libgcc-file-name`
depends=$(OBJDIR)start.o,$(OBJDIR)../src/lib/libuKernel.a