oooops, hahaha, i see.
I think i get my makefile working, just that i am not sure where it is right or worng, can anyone check for me.
thanks.
This is my makefile:
Code:
solvemaze : readmaze.o robot2.o
cc readmaze.o robot2.o -o solvemaze
readmaze.o : readmaze.c navigation.h robot.h
cc -c readmaze.c
robot2.o : robot2.c navigation.h robot.h
cc -c robot2.c
When i run it:
Code:
[diana@localhost ass2]$ make
cc readmaze.o robot2.o -o solvemaze
[diana@localhost ass2]$ ./solvemaze maze_a.txt 2
### - that was line 0
#
- that was line 1
#.. - that was line 2
$ done reading map
$ -----------------------
$ (Wallbot 0.1) at (2,1)
$ (Wallbot 0.1) moved E
$ -----------------------
$ (Wallbot 0.1) at (3,1)
$ (Wallbot 0.1) moved N
$ (Wallbot 0.1) didn't win!
i hope this was right.