#28498 - wiz - Mon Nov 01, 2004 7:42 pm
Hi guys,
For some reason my make file seems to be running too fast (?!)
Here is the contents of a test,
This results in:
gcc -c -O2 main.o main.c
gcc: main.o: No such file or directory
make: *** [main.o] Error 1
But if I run it again (once main.o exists) - it works? Its as though there is not enough time for main.o to be created, does that make sense?
Any idea on this bizzare problem?
Many Thanks!!!
For some reason my make file seems to be running too fast (?!)
Here is the contents of a test,
Code: |
CFLAGS = -c -O2 all: myRom.gba myRom.gba: myRom.elf objcopy -O binary myRom.elf myRom.gba myRom.elf: main.o $(CC) -o myRom.elf main.o main.o: main.c $(CC) $(CFLAGS) main.o main.c |
This results in:
gcc -c -O2 main.o main.c
gcc: main.o: No such file or directory
make: *** [main.o] Error 1
But if I run it again (once main.o exists) - it works? Its as though there is not enough time for main.o to be created, does that make sense?
Any idea on this bizzare problem?
Many Thanks!!!