Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 8639 → Rev 8640

/contrib/kolibri-libc/linuxtools/mkexp
Cannot display: file marked as a binary type.
svn:mime-type = application/x-pie-executable
Property changes:
Added: svn:executable
+*
\ No newline at end of property
Added: svn:mime-type
+application/x-pie-executable
\ No newline at end of property
/contrib/kolibri-libc/linuxtools/mkexp.c
25,6 → 25,7
"#include <stdlib.h>\n" \
"#include <time.h>\n" \
"#include <sys/dirent.h>\n" \
"#include <shell_api.h>\n" \
"#include <ksys.h>\n\n" \
"ksys_coff_etable_t EXPORTS[] = {\n");
31,13 → 32,11
// Generate
char symbol[256];
while(fscanf(input, "%s", symbol) != EOF) {
strcat(buf, "\t{");
strcat(buf, symbol);
strcat(buf, ", \"");
strcat(buf, symbol);
strcat(buf, "\"},\n");
char temp[256];
sprintf(temp, "{\"%s\", %s},\n", symbol, symbol);
strcat(buf, temp);
}
strcat(buf, "\t0\n};");
strcat(buf, "NULL,\n};");
fclose(input);
// Output generated
/contrib/kolibri-libc/source/Makefile
1,5 → 1,6
AR = ar -rcs
CLINK = ../linuxtools/clink
MKEXP = ../linuxtools/mkexp
KPACK = kpack
 
INCLUDE = include
27,7 → 28,7
MKDIR_P = mkdir -p
endif
 
all: $(cfiles) $(asmfiles) $(LIB_DIR) $(LIBC.A)
all: mk_export $(cfiles) $(asmfiles) $(LIB_DIR) $(LIBC.A)
fasm crt/crt0.asm $(LIB_DIR)/crt0.o
 
$(LIBC.A): $(cfiles) $(asmfiles)
45,11 → 46,16
$(RM) $(cfiles) $(asmfiles)
$(RM) $(LIBNAME)
 
mk_export:
$(MKEXP) ../loader/symbols.txt exports/exports.c
shared: $(cfiles) $(asmfiles)
$(CLINK) $^
$(KPACK) a.out.obj
mv a.out.obj $(LIBC.OBJ)
 
test:
make -C ../test -f Makefile.tcc
kex ../test/test
/contrib/kolibri-libc/source/exports/exports.c
File deleted