Date: Wed, 17 Sep 2008 17:57:38 -0500 From: "Paul A. Procacci" <pprocacci@datapipe.com> To: Dean Huffaker <pfeathers@rocketmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: GCC Compliler Message-ID: <48D18B62.9000808@datapipe.com> In-Reply-To: <493475.50211.qm@web59504.mail.ac4.yahoo.com> References: <493475.50211.qm@web59504.mail.ac4.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Try using the make utility. make -f ./makefile
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D18B62.9000808>
