Detect if VFS module is being compiled inside or outside source tree

Richard Sharpe realrichardsharpe at
Thu Mar 22 21:45:16 MDT 2012

On Wed, Mar 21, 2012 at 10:38 AM, Andrew Klaassen <clawsoon at> wrote:
> --- On Wed, 3/21/12, Richard Sharpe <realrichardsharpe at> wrote:
>> Perhaps the best thing to do is for you to create a new bug on
>> about this and then I can resurrect my emails and
>> add them to the bug.
> Done.

It strikes me that we might be able to do something in

It currently has this code:

# Auto target
default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))

# Pattern rules

        @echo "Linking $@"
        @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<

%.$(OBJEXT): %.c %.h
        @echo "Compiling $<"
        @$(CC) $(FLAGS) -c $<

We might be able to pass -D%_init=samba_init_module on the compile
line. That might do the trick and unify them.

I will try to have a look soon.

Richard Sharpe

More information about the samba-technical mailing list