X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Richard Head Subject: Help with Make Date: Fri, 1 Feb 2008 11:38:30 +0000 (UTC) Lines: 29 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, first post in here. Im not a very experienced C programmer, and Im fiddling with make. I have the following make file (entitled Makefile): fusionTK.exe : main.o fusionFileIO.o fusionAlgorithms.o gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe main.o : main.c fusionDefs.h gcc -c main.c fusionDefs.h fusionFileIO.o: fusionFileIO.c fusionDefs.h gcc -c fusionFileIO.c fusionDefs.h fusionAlgorithms.o: fusionAlgorithms.c fusionDefs.h gcc -c fusionAlgorithms.c fusionDefs.h Which as far as I can tell is all well and good, but when I execute make, it comes back with the error: "make: *** No rule to make target `main.c', needed by `main.o'. Stop." have I put something in the wrong place? Im running this on WinXP pro with cygwin installed. Also, if I remove the main.c and fusionDefs.h from the main.o dependencies, it runs the command associated with main.o :"gcc - c main.c fusionDefs.h" and then complains that the gcc command is not found. I can quite happily run GCC directly from the command line. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/