Problems with dmd Switches in Makefiles

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 17 06:05:26 PDT 2014


On Saturday, 17 May 2014 at 13:01:07 UTC, Tom Browder via 
Digitalmars-d-learn wrote:
> I know I'm supposed to use dub, but I'm not ready.
>
> I just found out I can't use dmd switches for file names 
> variable in a
> GNU makefile, e.g., see this fragment
>
> %.o : %.d
>       dmd -c $< -of $@
>
> which doesn't work because the "-of" must be followed 
> immediately by a
> file name with no intervening spaces.

         dmd -c $< -of$@

works for me with GNU Make 3.82.


More information about the Digitalmars-d-learn mailing list