48ecbd9104
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
23 lines
436 B
Makefile
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
|