forked from KolibriOS/kolibrios
kolibri-libc:
- Fixed build libc.obj git-svn-id: svn://kolibrios.org@8642 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
8d70017a77
commit
5ec58ab828
@ -28,7 +28,7 @@ RM = rm -rf
|
|||||||
MKDIR_P = mkdir -p
|
MKDIR_P = mkdir -p
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: mk_export $(cfiles) $(asmfiles) $(LIB_DIR) $(LIBC.A)
|
all: $(cfiles) $(asmfiles) $(LIB_DIR) $(LIBC.A)
|
||||||
fasm crt/crt0.asm $(LIB_DIR)/crt0.o
|
fasm crt/crt0.asm $(LIB_DIR)/crt0.o
|
||||||
|
|
||||||
$(LIBC.A): $(cfiles) $(asmfiles)
|
$(LIBC.A): $(cfiles) $(asmfiles)
|
||||||
@ -43,19 +43,14 @@ $(asmfiles):
|
|||||||
$(RM) $*.sx
|
$(RM) $*.sx
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(cfiles) $(asmfiles)
|
$(RM) $(cfiles) $(asmfiles) exports/exports.c
|
||||||
$(RM) $(LIBNAME)
|
$(RM) $(LIBNAME)
|
||||||
|
|
||||||
mk_export:
|
|
||||||
$(MKEXP) ../loader/symbols.txt exports/exports.c
|
|
||||||
|
|
||||||
|
|
||||||
shared: $(cfiles) $(asmfiles)
|
shared: $(cfiles) $(asmfiles)
|
||||||
$(CLINK) $^
|
$(CLINK) $^
|
||||||
$(KPACK) a.out.obj
|
$(KPACK) a.out.obj
|
||||||
mv a.out.obj $(LIBC.OBJ)
|
mv a.out.obj $(LIBC.OBJ)
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
make -C ../test -f Makefile.tcc
|
make -C ../test -f Makefile.tcc
|
||||||
kex ../test/test
|
kex ../test/test
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
MKEXP=../linuxtools/mkexp
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
$(MKEXP) ../loader/symbols.txt exports/exports.c
|
||||||
env CC=i686-w64-mingw32-gcc CPP=i686-w64-mingw32-cpp AS=i686-w64-mingw32-as $(MAKE) shared
|
env CC=i686-w64-mingw32-gcc CPP=i686-w64-mingw32-cpp AS=i686-w64-mingw32-as $(MAKE) shared
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp ../lib/libc.obj ~/.kex/root/RD/1/LIB
|
||||||
|
Loading…
Reference in New Issue
Block a user