From: Richard G. <rg...@ne...> - 2004-04-29 20:16:16
|
I will include my whole make file as it is not too long... VPATH=../../../filter_work/Lib CC=gcc CFLAGS= -Wall \ -s \ -fnative-struct \ -ID:\User\Lang\filter_work\Include\ \ -IC:\WINGTK\INCLUDE\ \ -IC:\WINGTK\INCLUDE\GDK\ \ -IC:\WINGTK\INCLUDE\g__~1\ \ LDFLAGS= -mwindows \ -LC:\WINGTK\LIB\ OUTPUT="P-Syn.exe" SRCS = PrototypeValuesClass.c \ "D:\User\Lang\filter_work\Lib\TransferFunctionsClass.c" \ "D:\User\Lang\filter_work\Lib\CadClass.c" \ "D:\User\Lang\filter_work\Lib\CadLib.c" \ "D:\User\Lang\filter_work\Lib\MathsLib.c" \ "D:\User\Lang\filter_work\Lib\SysUtilsLib.c" \ "D:\User\Lang\filter_work\Lib\StringUtilsLib.c" \ "src\GtkUtilsLib.c" \ "src\License_wnd.c" \ "src\Filter_Details_wnd.c" \ "src\About_wnd.c" \ "src\Filter_Design_Technique_Type_Realiz_wnd.c" \ "src\Start_up_wnd.c" \ "src\Main_wnd.c" \ "src\P-Syn.c" OBJS = "PrototypeValuesClass.o" \ "TransferFunctionsClass.o" \ "CadClass.o" \ "CadLib.o" \ "MathsLib.o" \ "SysUtilsLib.o" \ "StringUtilsLib.o" \ "GtkUtilsLib.o" \ "License_wnd.o" \ "Filter_Details_wnd.o" \ "Filter_Design_Technique_Type_Realiz_wnd.o" \ "About_wnd.o" \ "Start_up_wnd.o" \ "Main_wnd.o" \ "P-Syn.o" \ C:\WINGTK\LIB\libgtk.dll.a \ C:\WINGTK\LIB\libglib-2.0.dll.a \ C:\WINGTK\LIB\libgdk.dll.a \ "RSRC.o" all: compile_res $(CC) -c $(SRCS) $(CFLAGS) $(CC) -o $(OUTPUT) $(OBJS) $(CFLAGS) $(LDFLAGS) compile_res: windres --include-dir C:\winGTK\INCLUDE\ --include-dir C:\winGTK\INCLUDE\G__~1 --use-temp-file -I rc -O coff -i "RSRC.RC" -o "RSRC.o" test: all $(OUTPUT) clean: del *.o The path I am running mingw32-make from is: D:\User\Lang\GTK_stuff\P-Syn\P-Syn0.1.0. mingw32-make reports: gcc: PrototypeValuesClass.c: No such file or directory Richard. >Well VPATH works for me, so you'll have to provide a complete example that >demonstrates the problem. Just cut it down to something like: > >VPATH=../../../filter_work/Lib > >SRC=PrototypeValuesClass.c > >default : PrototypeValuesClass.o > ><...your implicit rules for building .c files...> > > >Luke > >>From: Richard Gipps <rg...@ne...> >>Reply-To: min...@li... >>To: min...@li... >>Subject: Re: [Mingw-users] VPATH >>Date: Wed, 28 Apr 2004 22:26:29 +0100 >> >>>Luke Dunstan wrote: >>> >>>> >>>>>From: Richard Gipps <rg...@ne...> >>>>>Reply-To: min...@li... >>>>>To: min...@li... >>>>>Subject: [Mingw-users] VPATH >>>>>Date: Tue, 27 Apr 2004 19:01:59 +0100 >>>>> >>>>>I have been trying to use VPATH in a makefile but I keep getting the >>>>>following error: >>>>> >>>>>gcc: PrototypeValuesClass.c: No such file or directory >>>>> >>>>>here is the relevant portion of the make file... >>>>>********** SNIP ************************ >>>>>VPATH=D:\User\Lang\filter_work\Lib >>>>> >>>>>....... >>>>> >>>>># Source files >>>>>SRCS =PrototypeValuesClass.c \ >>>>> "D:\User\Lang\filter_work\Lib\TransferFunctionsClass.c" \ >>>>> "D:\User\Lang\filter_work\Lib\CadClass.c" \ >>>>> "D:\User\Lang\filter_work\Lib\CadLib.c" \ >>>>>********** SNIP ************************ >>>>> >>>>>I have also left in some lines which do not use VPATH and work fine. >>>>>Any ideas?? >>>>> >>>>>Richard. >>>> >>>> >>>>Are you using MSYS make or mingw32-make or Cygwin make or ...? What >>>>version? If it is MSYS or Cygwin make then it probably uses a colon to >>>>separate multiple paths in VPATH so you'd have to use the appropriate >>>>syntax for drive letter paths. You could also use relative paths, but >>>>in any case you should use forward slashes instead of backslashes. >>> >>>IIRC, the colon is a problem for mingw32-make. The problem has been >>>discussed on the mak...@gn... list. Your alternative is to use MSYS >>>and POSIX style paths, i.e.: use / instead of \. >>> >>>Earnie >> >>I am using the version of make that was bundled with WinGTK. When I type >>make -v I get the following response: >> >>GNU Make version 3.77, by Richard Stallman and Roland McGrath. >>Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98 >> Free Software Foundation, Inc. >>This is free software; see the source for copying conditions. >>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A >>PARTICULAR PURPOSE. >> >>Report bugs to <bug...@gn...>. >> >>The header files are part of mingw so I guess the make file is the mingw >>version too? As I wasn't sure I down loaded the latest version of >>mingw32-make and tried that with a relative path i.e. >> >>********** SNIP ************************ >>VPATH=../../../filter_work/Lib >> >>... >> >># Source files >>SRCS = PrototypeValuesClass.c \ >> "D:\User\Lang\filter_work\Lib\TransferFunctionsClass.c" \ >> "D:\User\Lang\filter_work\Lib\CadClass.c" \ >>********** SNIP ************************ >>The path I am running mingw32-make from is: >>D:\User\Lang\GTK_stuff\P-Syn\P-Syn0.1.0. I still have the same problem. >>mingw32-make reports: >> >>gcc: PrototypeValuesClass.c: No such file or directory >> >>Richard. > >_________________________________________________________________ >Personalise your phone with chart ringtones and polyphonics. Go to >http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp > > > >------------------------------------------------------- >This SF.Net email is sponsored by: Oracle 10g >Get certified on the hottest thing ever to hit the market... Oracle 10g. >Take an Oracle 10g class now, and we'll give you the exam FREE. >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users |