Hi,
You're right that the depend.mk files are generated by make.
It shouldn't be circular though, and there might be a difference between
gnu make and other types of make for this.
If your compiler supports the -MM option (or an equivalent) that
checks for dependencies and generates a list (but does not compile
anything) then you can probably get the makefiles to do the work for you.
Firstly, you want to get rid of all the things that delete depend.mk as
this
would be bad for you. So, edit the $FSLDIR/etc/rules.mk file, deleting
all references to depend.mk in ${RM} lines. There should be three
instances of these.
Secondly, if your compiler uses a different option from -MM then change the
DEPENDFLAGS variables in $FSLDIR/config/systemvars.mk
Thirdly, you'll want to disable the autoconfig stuff, so mv the file
$FSLDIR/etc/autoconfig to some other name.
Now, if all is well you should be able to "make depend.mk" in each
directory and generate the depend.mk files. The best order to do the
directories is the one listed in the file $FSLDIR/BUILD in the line
starting with "for projname in".
Try this and see if you can generate the depend.mk files.
If you can, then the rest of the BUILD process will hopefully work OK with
the
changes that were made above.
If, on the other hand, you can't generate the depend.mk files then email us
again and we'll send you a tarball of the ones you need.
Best of luck,
Mark
On Friday, August 16, 2002, at 11:18 PM, [log in to unmask] wrote:
> Hi people!
> after trying to compile FSL for the AIX I get the following
> error:
>
> Making project freeware
>
> "depend.mk", line 0: make: 1254-027 Cannot open depend.mk.
> make: 1254-058 Fatal errors encountered -- cannot continue.
> --- alive after distclean ---
> "depend.mk", line 0: make: 1254-027 Cannot open depend.mk.
> make: 1254-058 Fatal errors encountered -- cannot continue.
> ERROR::Could not make freeware successfully
> "depend.mk", line 0: make: 1254-027 Cannot open depend.mk.
> make: 1254-058 Fatal errors encountered -- cannot continue.
>
> i checked the makefiles and it seems that depend.mk is made on the fly,
> but somehow the compiler includes it before it is present.
> Maybe someone could send me a depend.mk file I can copy in every dir
> so the compiler will move on?
>
> cheers :)
|