Rev 8699 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8699 | turbocat | 1 | ifndef GCC |
2 | GCC=kos32-gcc |
||
3 | endif |
||
8687 | turbocat | 4 | |
5 | KPACK=kpack |
||
6 | FASM=fasm |
||
7 | |||
8 | CFLAGS = -c -nostdinc -I../include -DGNUC -D_KOLIBRI_LIBC_OBJ -Os -fno-common -fno-builtin -fno-leading-underscore -fno-pie |
||
9 | |||
10 | SRC=libc.c |
||
8693 | turbocat | 11 | LIB=../lib/libc.obj |
8687 | turbocat | 12 | |
13 | all: |
||
14 | $(MAKE) -C ../linuxtools/src |
||
15 | mkdir -p exports ../lib |
||
16 | ../linuxtools/ExportGen symbols.txt exports/exports.c |
||
17 | $(FASM) crt/crt0.asm ../lib/crt0.o |
||
8699 | turbocat | 18 | $(GCC) $(CFLAGS) $(SRC) -o $(LIB) |
8687 | turbocat | 19 | $(KPACK) $(LIB) |
8699 | turbocat | 20 | ../linuxtools/LoaderGen symbols.txt ../loader |
21 | ../linuxtools/LoaderBuild ../loader |
||
8718 | turbocat | 22 | $(MAKE) -C libtcc |
8699 | turbocat | 23 | rm -rf exports |
8687 | turbocat | 24 | install: |
25 | cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB |
||
26 | |||
27 | clean: |
||
8718 | turbocat | 28 | rm ../lib/* |