Mathematical functions are added some.

It is added makefile for compilation of programs under KolibriOS with the help gcc.

git-svn-id: svn://kolibrios.org@696 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
andrew_programmer
2008-01-14 19:33:34 +00:00
parent 606f0073f5
commit 48ecbd9104
15 changed files with 331 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
OUTFILE = test.kex
INPUT = test.c
OUTPUT = test.o
OBJS = start.o test.o
.SUFFIXES: .asm .o
$(OUTFILE) : $(OBJS)
fasm start.asm start.o
gcc -c $(INPUT) -nostdinc -m32 -I/home/andrew/kolibri/develop/include/
ld -nostdlib -T kolibri.ld -n -m elf_i386 -L/home/andrew/kolibri/develop/lib/ -o $(OUTFILE) $(OBJS) -lck
objcopy $(OUTFILE) -O binary
.asm.o:
fasm $*.asm
.c.o:
gcc -c $*.c
clean :
del *.o