forked from KolibriOS/kolibrios
1c24cac315
[include] - ksys.h : fixed sruct name - string.h: set memcpy, memset, and memove as static for libtcc - stdio.h: added sscanf and ungetc - stdint.h: added int64 limits [stdio] fixed *scanf functions added ungetc functon [lib] - upated binaries - added libtcc.a for tcc optimization [crt] - removed duplicate files [samples] - added fasm libc.obj example - updated old examples git-svn-id: svn://kolibrios.org@8718 a494cfbc-eb01-0410-851d-a64ba20cac60
29 lines
639 B
Makefile
29 lines
639 B
Makefile
ifndef GCC
|
|
GCC=kos32-gcc
|
|
endif
|
|
|
|
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=../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
|
|
$(GCC) $(CFLAGS) $(SRC) -o $(LIB)
|
|
$(KPACK) $(LIB)
|
|
../linuxtools/LoaderGen symbols.txt ../loader
|
|
../linuxtools/LoaderBuild ../loader
|
|
$(MAKE) -C libtcc
|
|
rm -rf exports
|
|
install:
|
|
cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
|
|
|
clean:
|
|
rm ../lib/*
|