Add a new make variable "C_GEN_SRCS" for C files that need to be generated before makedep can be run on them.

Alexandre Julliard julliard at
Thu Oct 5 05:29:14 CDT 2006

Robert Shearman <rob at> writes:

> If I just add the file to C_SRCS then "make" works fine, but "make
> depend" doesn't because "make depend" doesn't have a dependency on
> robert-shearmans-computer:~/Documents/wine/dlls/oleaut32/tests rob$
> make depend
> ../../../tools/makedep -C. -S../../.. -T../../..  olefont.c
> olepicture.c safearray.c tmarshal.c typelib.c usrmarshal.c varformat.c
> vartest.c vartype.c tmarshal_i.c  tmarshal.rc   tmarshal.idl
> tmarshal_i.c: No such file or directory
> This patch was an attempt to work around this problem and still
> generate useful dependency information.

Yes, but you need to do that without generating them, otherwise you
need to build half the tree before you can even do a make depend.
Makedep has to be taught how to generate dependencies for a _i.o given
the original .idl.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list