I see you single quoting - a ' is not a quoting character in Windows CMD shell. In Windows CMD shell " is the (only) quoting character.
Note: There is no standard way to quote a " character in windows. Windows opted to have applications parse the command line - hence no standard. It is up to the programs and the libraries they use. I.e. unlike *nix, the shell only parses the program name; the parsing of the rest of the command is left up to the program. .duanec. From: make-w32-bounces+dcampbell=nvidia....@gnu.org [mailto:make-w32-bounces+dcampbell=nvidia....@gnu.org] On Behalf Of Partha None Sent: Thursday, October 07, 2010 21:04 To: help-m...@gnu.org; make-w32@gnu.org Subject: How to pass a group of COMPILER OPTIONS using GNU Make Command Line under WINDOWS Hello, Following is my MAKEFILE "TestRunGNUMakeForBoot" contents [1 line command under TARGET ALL] within my Project Root Directory: =============================================================== ALL: cd DBC_Boot_Build && $(MAKE) BYPASS_ANCGEN=$(BYPASS_ANCGEN) MAKEBENCH=$(MAKEBENCH) COMPILE_OPTIONS_FROM_MAKE='$(COMPILE_OPTIONS_FROM_MAKE)' -f TestDBCGNUBootMake $(MAKEFLAGS) ===================================================================== Following is my SUB-MAKEFILE "TestDBCGNUMake" contents within my sub-directory called "DBC_Boot_Build" under Project Root Directory: =================================================================== ALL: HELP @echo ---------- ALL Target Completed ---------- .PHONY:HELP HELP: @echo HELP Message Displayed @echo COMPILE_OPTIONS_FROM_MAKE=$(COMPILE_OPTIONS_FROM_MAKE) @echo COMPILE_OPTIONS_FROM_MAKE1=$(COMPILE_OPTIONS_FROM_MAKE1) ======================================================================== Following is my command line invocation for the above mentioned MAKEFILE from Windows DOS cmd.exe SHELL [1 line] applied from Project Root Directory: C:\Partha\GNU\MAKE\DJGPP_BUILD\make-3.82\WinRel\gnumake -f TestRunGNUMakeForBoot BYPASS_ANCGEN=TRUE MAKEBENCH=FALSE C_DISABLE_CCP=TRUE COMPILE_OPTIONS_FROM_MAKE="--define=COMPILE_ENABLE_EXTENDED_NEGATIVE_RESPONSE=FALSE" COMPILE_OPTIONS_FROM_MAKE+="--define=DEVELOPMENT_BOOT_CCP=TRUE" SHELL="C:\WINNT\System32\cmd.exe" PACKAGE_NAME=junk BUILD_TYPE=ISO_CAN_BUILD I get the following error under DOS Box: C:/Partha/GNU/MAKE/DJGPP_BUILD/make-3.82/WinRel/gnumake: unrecognized option `--define=DEVELOPMENT_BOOT_CCP=TRUE'' C:/Partha/GNU/MAKE/DJGPP_BUILD/make-3.82/WinRel/gnumake: unrecognized option `--define=DEVELOPMENT_BOOT_CCP=TRUE' Any idea how to solve this puzzle of passing mutiple COMPILER SWITCHES from GNU Make Command Line under WINDOWS DOS cmd.exe SHELL? Thank you. Regards Partha ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------
_______________________________________________ Make-w32 mailing list Make-w32@gnu.org http://lists.gnu.org/mailman/listinfo/make-w32