From owner-freebsd-questions@FreeBSD.ORG Wed Sep 17 22:57:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0991065671 for ; Wed, 17 Sep 2008 22:57:47 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost01.isp.att.net (fmailhost01.isp.att.net [207.115.11.51]) by mx1.freebsd.org (Postfix) with ESMTP id 076508FC15 for ; Wed, 17 Sep 2008 22:57:47 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-241-169-57.bna.bellsouth.net[74.241.169.57]) by isp.att.net (frfwmhc01) with ESMTP id <20080917225746H01000dpefe>; Wed, 17 Sep 2008 22:57:46 +0000 X-Originating-IP: [74.241.169.57] Message-ID: <48D18B62.9000808@datapipe.com> Date: Wed, 17 Sep 2008 17:57:38 -0500 From: "Paul A. Procacci" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Dean Huffaker References: <493475.50211.qm@web59504.mail.ac4.yahoo.com> In-Reply-To: <493475.50211.qm@web59504.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: GCC Compliler X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 22:57:47 -0000 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