Subversion Repositories Kolibri OS

Rev

Rev 8699 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ifndef GCC
  2.         GCC=kos32-gcc
  3. endif
  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
  11. LIB=../lib/libc.obj
  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
  18.         $(GCC) $(CFLAGS) $(SRC) -o $(LIB)
  19.         $(KPACK) $(LIB)
  20.         ../linuxtools/LoaderGen symbols.txt ../loader
  21.         ../linuxtools/LoaderBuild ../loader
  22.         $(MAKE) -C libtcc
  23.         rm -rf exports
  24. install:
  25.         cp -f ../lib/libc.obj ~/.kex/root/RD/1/LIB
  26.  
  27. clean:
  28.         rm ../lib/*
  29.