mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-23 23:26:49 +03:00
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
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
SRC=libc.c
|
||||
LIB=../lib/libc.obj
|
||||
LIB=libc.obj
|
||||
|
||||
all:
|
||||
$(MAKE) -C ../linuxtools/src
|
||||
mkdir -p exports ../lib
|
||||
mkdir -p exports
|
||||
../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)
|
||||
$(KPACK) $(LIB)
|
||||
../linuxtools/LoaderGen symbols.txt ../loader
|
||||
@ -25,4 +25,4 @@ install:
|
||||
cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
||||
|
||||
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
|
||||
|
||||
OBJ= memcpy.o memmove.o memset.o libtcc1.o
|
||||
|
||||
all: $(OBJ)
|
||||
ar -crs ../../lib/libtcc.a $(OBJ)
|
||||
ar -crs ../../../bin/lib/libtcc.a $(OBJ)
|
||||
rm -f *.o
|
||||
|
||||
%.o : %.c
|
||||
|
@ -1,7 +1,7 @@
|
||||
format ELF
|
||||
|
||||
section '.text' executable
|
||||
include '../../../../../proc32.inc'
|
||||
include '../../../../../../proc32.inc'
|
||||
|
||||
public memcpy
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
format ELF
|
||||
|
||||
section '.text' executable
|
||||
include '../../../../../proc32.inc'
|
||||
include '../../../../../../proc32.inc'
|
||||
|
||||
public memmove
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user