728f124678
Configured autobuild git-svn-id: svn://kolibrios.org@8687 a494cfbc-eb01-0410-851d-a64ba20cac60
24 lines
496 B
Makefile
24 lines
496 B
Makefile
|
|
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
|
|
LIB=libc.obj
|
|
|
|
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
|