Compilation problem in libcruft/misc: smachar.c does not exist

Michael Goffioul michael.goffioul at gmail.com
Thu Jun 12 09:29:08 CDT 2008


On Thu, Jun 12, 2008 at 4:25 PM, David Bateman
<David.Bateman at motorola.com> wrote:
> smachar.d is not supposed to be created at all, as only machar.d is
> relevant. smachar.c doesn't exist, and there is a special rule to create
> smachar.o and machar.i in libcruft/misc/Makefile.in, these being
>
> machar.o: $(srcdir)/machar.c
>    $(XCC) -c $(CPPFLAGS) $(XALL_CFLAGS) -DDP $< -o $@
>
> smachar.o: $(srcdir)/machar.c
>    $(XCC) -c $(CPPFLAGS) $(XALL_CFLAGS) -DSP $< -o $@
>
> pic/machar.o: $(srcdir)/machar.c
>    $(XCC) -c $(CPPFLAGS) $(CPICFLAG) $(XALL_CFLAGS) -DDP $< -o $@
>
> pic/smachar.o: $(srcdir)/machar.c
>    $(XCC) -c $(CPPFLAGS) $(CPICFLAG) $(XALL_CFLAGS) -DSP $< -o $@
>
> and as you can see both are built from machar.c with different flags.

Those 2 lines (from libcruft/misc/Makefile.in)

CEXTRA = smachar.c

MAKEDEPS := $(patsubst %.c, %.d, $(CSRC) $(CEXTRA)) $(patsubst %.cc,
%.d, $(CXXSRC))

effectively creates smachar.d, right? Don't you have those lines?

Michael.


More information about the Octave-maintainers mailing list