GCC Compliler

Paul A. Procacci pprocacci at datapipe.com
Wed Sep 17 22:57:47 UTC 2008


Dean Huffaker wrote:
> I need to compile a c module called camerad.  I have a makefile that is suppose to be used to perform this compile job.  Problem is that I get an error and I don't understand exactly what the problem is.  Here is the execution of the makefile with the error and then I did a cat on the makefile itself.  
>  
> CameraMgr2# ./makefile
> camerad.o:: not found
> CameraMgr2# cat makefile
> camerad : camerad.o ../shared/util.o
>         gcc -o camerad camerad.o ../shared/util.o
>
> camerad.o: camerad.c camerad.h ../shared/util.h
>         gcc -I../shared -c camerad.c
>  
>  
> The first part of the makefile makes sense to me.  Create a camerad using camera.o and stuff from .shared/util.o
> camerad : camerad.o ../shared/util.o
>         gcc -o camerad camerad.o ../shared/util.o
>  
> And that part works fine.  If I just run those two statements it works OK.  
>  
> But the second part does not make sense. and It gets the error camerad.o not found.
> camerad.o: camerad.c camerad.h ../shared/util.h
>         gcc -I../shared -c camerad.c  
>  
>  
> Any idea what might be going on?
>
>
>       
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>   
Try using the make utility.

make -f ./makefile


More information about the freebsd-questions mailing list