Some rules are built into GNU Make. This: https://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html suggests you should run "make -p" in a directory with no makefile to check what rules are available.
If the rule doesn't exist, it should be trivial to add it and even make it optional under Windows-only using Make's if statement: https://www.gnu.org/software/make/manual/html_node/Suffix-Rules.html#Suffix-Rules On Fri, May 16, 2014 at 6:17 PM, Doug Simons <[email protected]>wrote: > I'm getting a "No rule to make target" error when trying to compile some > Objective-C++ files that I just added to my project on Windows. I haven't > used Objective-C++ previously, so I googled around to find out what I need > to do. I added a <product>_OBJCC_FILES section to list my .mm files, and > also "CC=$(CXX)" but no luck. > > Here's the relevant portion of my GNUmakefile: > > CC=$(CXX) > > APP_NAME=Eggplant > > VERSION=__VERSION__ > > Eggplant_OBJCC_FILES=\ > ABBYYCommands.mm\ > NSString+Wchar.mm\ > Engine.mm > > ... > > And here's the actual error: > > make[4]: *** No rule to make target `obj/Eggplant.obj/ABBYYCommands.mm.o', > needed by `Eggplant.app/./Eggplant.exe'. Sto > p. > make[3]: *** [internal-app-run-compile-submake] Error 2 > make[2]: *** [Eggplant.all.app.variables] Error 2 > make[1]: *** [internal-all] Error 2 > make: *** [internal-all] Error 2 > _____________________________ > > Any clues about what I'm missing? Is there a compile flag I need to add > somewhere? It looks as though it doesn't even recognize the .mm file type. > > Thanks for any help! > > Doug Simons > > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/gnustep-dev > -- Ivan Vučica [email protected]
_______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
