Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Makefile problem! Quick! (http://www.go4expert.com/forums/makefile-problem-quick-t6685/)

dicicco2 5Oct2007 07:49

Makefile problem! Quick!
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 proj04.support.o /user/cse320/lib/bitlib.o
gcc -o proj04 proj04.driver.o proj04.support.o /user/cse320/lib/bitlib.o

proj04.driver.o: proj04.driver.c
gcc -Wall -c proj04.driver.c

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

clean: rm -f proj04 *.o

the only thing that is being included is the bitlib.h in the proj04.support.c file. access is ok for that file, so thats not the problem. it says it cant make proj04.driver.c and proj04.support.c.. any help would be greatly appreciated

aks 11Oct2007 17:55

Re: Makefile problem! Quick!
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.

All times are GMT +5.5. The time now is 03:49.