kolibrios/programs/develop/ktcc/trunk/libc/gcc compile programs/makefile
andrew_programmer 48ecbd9104 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
2008-01-14 19:33:34 +00:00

23 lines
436 B
Makefile

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