[XviD-devel] vfw Makefile

pete p_ross at iprimus.com.au
Thu Mar 18 08:45:37 CET 2004


hi ed,

On Wed, 17 Mar 2004 20:42:47 +0100 Edouard Gomez <ed.gomez at free.fr>
wrote:
> This is intentional, the "=" prefix helps arch/tla skipping changes in
> the build dir easily.

okay. so arch actually looks at the directory names, and if they're
prefixed with an equal sign, they're ignored.

> > * -lxvidcore is used. this is no longer required.
> I wonder why it would not be required. Could you explain what happens ?

vfw loads xvidcore.dll at runtime, and fetches the xvid symbols.

> > -LOCAL_XVID_BUILDTREE:=$(MAKEFILE_PWD)/../../build/generic/=build
> > +LOCAL_XVID_BUILDTREE:=$(MAKEFILE_PWD)/../../build
> 
> I still  don't get why  it would work  this way, as the  makefile builds
> xvidcore.dll  in ${xvidcore}/build/generic/=build  by default.  The only
> problem i can  see is a missing pwd utility  would cause trouble because
> these vars would be wrong.

pwd is there. but it seems my version of make gets confused about the
second equals, and forgets the "$(MAKEFILE_PWD)/../../build/generic"
part. see output below:

==============================================================

admin at PETE /c/xvidcore/vfw/bin
$ pwd
/c/xvidcore/vfw/bin

admin at PETE /c/xvidcore/vfw/bin
$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-msys
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>.


admin at PETE /c/xvidcore/vfw/bin
$ make
  D: =build
  C: ./codec.c
  C: ./config.c
  C: ./driverproc.c
  C: ./status.c
  W: ./resource.rc
  L: xvidvfw.dll
C:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: cannot find -lxvidcore
make: *** [xvidvfw.dll] Error 1

admin at PETE /c/xvidcore/vfw/bin
$ ls -al
total 5
drwxr-xr-x    4 admin    Administ        0 Mar 18 18:33 .
drwxr-xr-x    7 admin    Administ        0 Mar 12 20:14 ..
drwxr-xr-x    2 admin    Administ        0 Mar 18 18:33 =build
drwxr-xr-x    2 admin    Administ        0 Mar 18 18:17 CVS
-r--r--r--    1 admin    Administ     2917 Mar 18 18:17 Makefile
-rw-r--r--    1 admin    Administ     2889 Mar 18 18:16 Makefile.pete
-r--r--r--    1 admin    Administ      137 Jan 10 14:43 sources.inc
-r--r--r--    1 admin    Administ     2740 Jan 24 15:00 xvid.inf

admin at PETE /c/xvidcore/vfw/bin
$ ls -al \=build/
total 55
drwxr-xr-x    2 admin    Administ        0 Mar 18 18:33 .
drwxr-xr-x    4 admin    Administ        0 Mar 18 18:33 ..
-rw-r--r--    1 admin    Administ    10181 Mar 18 18:33 codec.obj
-rw-r--r--    1 admin    Administ    48396 Mar 18 18:33 config.obj
-rw-r--r--    1 admin    Administ       34 Mar 18 18:33 driverproc.def
-rw-r--r--    1 admin    Administ     3152 Mar 18 18:33 driverproc.obj
-rw-r--r--    1 admin    Administ    39468 Mar 18 18:33 resource.obj
-rw-r--r--    1 admin    Administ     6956 Mar 18 18:33 status.obj

cheers,
-- pete


More information about the XviD-devel mailing list