i was running into support issues with DJGPP, so i switched to cygwin
and installed the gcc cross compiler as shown in teh wiki page , however
now when i run the make file it gives the following error
/usr/cross/bin/i586-elf-ld: target elf32-i586 not found
make: *** [kernel] Error 1
everything else compiles . This error was teh reason i switched from DJGPP to cygwin , still i am stuck at the same place. Please help
![Sad :(](./images/smilies/icon_sad.gif)
this is my makefile
# Use the cross-compiler...
CC = /usr/cross/bin/i586-elf-gcc-4.1.1
CFLAGS += -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin
kernel.img: kernel bootfloppy.img menu.cfg
cp bootfloppy.img $@
chmod +w $@
mcopy -o -i $@ $< ::/boot
mcopy -o -i $@ menu.cfg ::/boot
kernel: link.ld start.o main.o scrn.o gdt.o idt.o isrs.o irq.o timer.o kb.o mmg.o
/usr/cross/bin/i586-elf-ld -T $^ -o $@
start.o: start.asm
nasm -f elf $< -o $@
main.o : main.c
$(CC) $(CFlAGS) -o $@ -I./include -c $<
scrn.o : screen.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
gdt.o : gdt.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
idt.o : idt.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
isrs.o : isrs.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
irq.o : irq.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
timer.o: timer.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
kb.o: kb.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
mmg.o: mmg.c
$(CC) $(CFLAGS) -o $@ -I./include -c $<
.PHONY: clean
"Makefile" 61 lines, 1066 characters