forked from KolibriOS/kolibrios
Fixed build libc.obj
git-svn-id: svn://kolibrios.org@8803 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b5bb829ff5
commit
de30a03cac
@ -19,6 +19,6 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Create libc.obj.a library..."
|
echo "Create libc.obj.a library..."
|
||||||
ar -rsc ../lib/libc.obj.a *.o
|
ar -rsc ../../bin/lib/libc.obj.a *.o
|
||||||
rm -f *.asm *.o
|
rm -f *.asm *.o
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
@ -8,13 +8,13 @@ FASM=fasm
|
|||||||
CFLAGS = -c -nostdinc -I../include -DGNUC -D_BUILD_LIBC -fno-common -Os -fno-builtin -fno-leading-underscore -fno-pie
|
CFLAGS = -c -nostdinc -I../include -DGNUC -D_BUILD_LIBC -fno-common -Os -fno-builtin -fno-leading-underscore -fno-pie
|
||||||
|
|
||||||
SRC=libc.c
|
SRC=libc.c
|
||||||
LIB=../lib/libc.obj
|
LIB=libc.obj
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MAKE) -C ../linuxtools/src
|
$(MAKE) -C ../linuxtools/src
|
||||||
mkdir -p exports ../lib
|
mkdir -p exports
|
||||||
../linuxtools/ExportGen symbols.txt exports/exports.c
|
../linuxtools/ExportGen symbols.txt exports/exports.c
|
||||||
$(FASM) crt/crt0.asm ../lib/crt0.o
|
$(FASM) crt/crt0.asm ../../bin/lib/crt0.o
|
||||||
$(GCC) $(CFLAGS) $(SRC) -o $(LIB)
|
$(GCC) $(CFLAGS) $(SRC) -o $(LIB)
|
||||||
$(KPACK) $(LIB)
|
$(KPACK) $(LIB)
|
||||||
../linuxtools/LoaderGen symbols.txt ../loader
|
../linuxtools/LoaderGen symbols.txt ../loader
|
||||||
@ -25,4 +25,4 @@ install:
|
|||||||
cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ../lib/*
|
rm ../../bin/lib/libc.obj.a ../../bin/lib/libtcc.a
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
KTCC_DIR=../../../../ktcc/trunk
|
KTCC=kos32-tcc
|
||||||
|
|
||||||
KTCC=$(KTCC_DIR)/bin/kos32-tcc
|
|
||||||
FASM=fasm
|
FASM=fasm
|
||||||
|
|
||||||
OBJ= memcpy.o memmove.o memset.o libtcc1.o
|
OBJ= memcpy.o memmove.o memset.o libtcc1.o
|
||||||
|
|
||||||
all: $(OBJ)
|
all: $(OBJ)
|
||||||
ar -crs ../../lib/libtcc.a $(OBJ)
|
ar -crs ../../../bin/lib/libtcc.a $(OBJ)
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
format ELF
|
format ELF
|
||||||
|
|
||||||
section '.text' executable
|
section '.text' executable
|
||||||
include '../../../../../proc32.inc'
|
include '../../../../../../proc32.inc'
|
||||||
|
|
||||||
public memcpy
|
public memcpy
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
format ELF
|
format ELF
|
||||||
|
|
||||||
section '.text' executable
|
section '.text' executable
|
||||||
include '../../../../../proc32.inc'
|
include '../../../../../../proc32.inc'
|
||||||
|
|
||||||
public memmove
|
public memmove
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user