From: SourceForge.net <no...@so...> - 2005-07-22 13:58:11
|
Support Requests item #1242224, was opened at 2005-07-21 07:23 Message generated for change (Settings changed) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1242224&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Other Group: Waiting user response Status: Pending Priority: 5 Submitted By: DanyUP (danyup) >Assigned to: Earnie Boyd (earnie) Summary: Pattern Rules Don't work at all!!! Initial Comment: I'm trying to use Pattern Rules to compile this stuff: INCL=-I C:\irrlicht\include -I c:\MINGW\include\c++\3.3.1 -I c:\MINGW\include\c++\3.3.1\mingw32 -I c:\MINGW\include\c++\3.3.1\backward -I c:\MINGW\include -I c:\MINGW\lib\gcc-lib\mibw32\3.3.1\include LIBS=-L C:\MINGW\lib -L C:\irrlicht\lib\Win32-gcc LIBLINK=-lIrrlicht BINDIR=bin SRCDIR=src OBJDIR=obj $(OBJDIR)\%.o: $(SRCDIR)\%.cpp g++ -c $(INCL) -o $@ $< main: $(OBJDIR)\main.o g++ $(OBJDIR)\main.o -o $(BINDIR)\main.exe $(INCL) $(LIBS) $(LIBLINK) But make still says that: *** No rule to make target `obj\main.o', needed by `main'. Please Help!!!! ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2005-07-22 09:25 Message: Logged In: YES user_id=15438 Which make are you using? The one from MSYS, mingw32-make or something else? Based on the look of the above you need a physical tab character for the command. My example below I'll represent the physical tab as ``\t ''. $(OBJDIR\%.o: $(SRDIR)\%.cpp \t g++ -c $(INCL) -o $@ $< If you're using MSYS' make then add --win32 to the make command line since you're using win32 paths. Earnie ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=1242224&group_id=2435 |