Isn't 'make depend' optional?

Michael Stefaniuc mstefani at redhat.de
Mon Aug 5 03:16:09 CDT 2002


Hello!

On Mon, Aug 05, 2002 at 03:46:42PM +0900, Bang Jun-Young wrote:
> I got the following error with wine-20020804 when I skipped 'make depend'
> before doing 'make':
Than don't do that. 'make depend' is required and not optional.

bye
	michael

> gmake[2]: Entering directory `/u0/work/wine-20020804/tools/widl'
> gcc -c -I. -I. -I../../include -I../../include  -O2 -Wall -mpreferred-stack-boundary=2  -D__WINE__ -D_REENTRANT -I/usr/X11R6/include -o header.o header.c
> header.c:36: y.tab.h: No such file or directory
> gmake[2]: *** [header.o] Error 1
> gmake[2]: Leaving directory `/u0/work/wine-20020804/tools/widl'
> gmake[1]: *** [widl] Error 2
> gmake[1]: Leaving directory `/u0/work/wine-20020804/tools'
> gmake: *** [tools] Error 2
> 
> This was due to dependency that widl/*.c require y.tab.h in common but 
> y.tab.h is not generated before compilation is being done. I have worked
> around it as follows:
> 
> --- Make.rules.in.orig	Sat Aug  3 04:34:21 2002
> +++ Make.rules.in	Mon Aug  5 14:57:17 2002
> @@ -112,7 +112,7 @@
>  CLEAN_FILES     = *.o *.a *.so *.ln *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \
>                    *.flc *.spec.c *.spec.def *.glue.c *.dbg.c y.tab.c y.tab.h @LEX_OUTPUT_ROOT at .c core
>  
> -OBJS = $(C_SRCS:.c=.o) $(GEN_C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) $(ASM_SRCS:.S=.o) $(EXTRA_OBJS)
> +OBJS = $(EXTRA_OBJS) $(C_SRCS:.c=.o) $(GEN_C_SRCS:.c=.o) $(GEN_ASM_SRCS:.s=.o) $(ASM_SRCS:.S=.o)
>  
>  RCOBJS = $(RC_SRCS:.rc=.res.o)
>  LINTS  = $(C_SRCS:.c=.ln)
> 
> Obviously the patch doesn't look good. Is there any better solution
> for this? What about introducing PREEXTRA_OBJS and POSTEXTRA_OBJS?

-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20020805/5eb3be8c/attachment.pgp


More information about the wine-devel mailing list