Makefile problem! Quick!

dicicco2's Avatar
Newbie Member
i have this project due in 90 minutes and i cant get the god damn make file to compile correctly.. Here it is, any help?

proj04: proj04.driver.o /user/cse320/lib/bitlib.o
gcc -o proj04 proj04.driver.o /user/cse320/lib/bitlib.o

proj04.driver.o: proj04.driver.c
gcc -Wall -c proj04.driver.c /user/cse320/lib/bitlib.h
gcc -Wall -c

clean: rm -f proj04 *.o

the only thing that is being included is the bitlib.h in the file. access is ok for that file, so thats not the problem. it says it cant make proj04.driver.c and any help would be greatly appreciated
aks's Avatar, Join Date: Sep 2007
Newbie Member
I think you don't required to put the /user/cse320/lib/bitlib.h in the target rule definition. If you take it out, it should compile fine... the header file , you may need to include in the .c file.