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

Robert Shearman rob at codeweavers.com
Thu Oct 5 05:21:48 CDT 2006


Alexandre Julliard wrote:
> Robert Shearman <rob at codeweavers.com> writes:
>   
>> This is useful for generated files such as *_i.c and *_p.c (when widl
>> can generate them).
>> diff --git a/Make.rules.in b/Make.rules.in
>> index 9e7ec07..68544dc 100644
>> --- a/Make.rules.in
>> +++ b/Make.rules.in
>> @@ -8,6 +8,7 @@ # MODULE       : name of the module bein
>>  #
>>  # Each individual makefile may define the following additional variables:
>>  # C_SRCS       : C sources for the module
>> +# C_GEN_SRCS   : C sources that are generated for the module
>>     
>
> You shouldn't need that. IDL files will be listed as sources and make
> depend will be able to handle that properly, just like it handles idl
> headers already.
>   

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 C_SRCS.

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.

-- 
Rob Shearman




More information about the wine-devel mailing list