2021-04-27 18:33:31 +02:00
|
|
|
|
|
|
|
CC=kos32-gcc
|
|
|
|
|
|
|
|
KPACK=kpack
|
|
|
|
FASM=fasm
|
|
|
|
|
|
|
|
CFLAGS = -c -nostdinc -I../include -DGNUC -D_KOLIBRI_LIBC_OBJ -Os -fno-common -fno-builtin -fno-leading-underscore -fno-pie
|
|
|
|
|
|
|
|
SRC=libc.c
|
2021-04-27 19:40:25 +02:00
|
|
|
LIB=../lib/libc.obj
|
2021-04-27 18:33:31 +02:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(MAKE) -C ../linuxtools/src
|
|
|
|
mkdir -p exports ../lib
|
|
|
|
../linuxtools/ExportGen symbols.txt exports/exports.c
|
|
|
|
$(FASM) crt/crt0.asm ../lib/crt0.o
|
|
|
|
$(CC) $(CFLAGS) $(SRC) -o $(LIB)
|
|
|
|
$(KPACK) $(LIB)
|
|
|
|
install:
|
|
|
|
cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm ../lib/libc.obj
|