1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/examples/VFS/Makefile.in
Andrew Bartlett 611ca8e819 build: Move generated files out of the normal build tree
This avoids some dual-build-system interactions.

Andrew Bartlett
2012-05-18 15:44:43 +10:00

60 lines
1.3 KiB
Makefile

CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LDSHFLAGS = @LDSHFLAGS@
INSTALLCMD = @INSTALL@
SAMBA_SOURCE = @SAMBA_SOURCE@
SHLIBEXT = @SHLIBEXT@
OBJEXT = @OBJEXT@
FLAGS = $(CFLAGS) $(CPPFLAGS) -fPIC \
-Iinclude -I$(SAMBA_SOURCE)/include \
-I$(SAMBA_SOURCE)/include/autoconf \
-I$(SAMBA_SOURCE)/autoconf \
-I$(SAMBA_SOURCE)/../popt \
-I$(SAMBA_SOURCE)/../lib/replace \
-I$(SAMBA_SOURCE)/../lib/talloc \
-I$(SAMBA_SOURCE)/../lib/tevent \
-I$(SAMBA_SOURCE)/../lib/tdb/include \
-I$(SAMBA_SOURCE)/librpc \
-I$(SAMBA_SOURCE)/../librpc \
-I$(SAMBA_SOURCE)/../ \
-I$(SAMBA_SOURCE) -I.
prefix = @prefix@
libdir = @libdir@
VFS_LIBDIR = $(libdir)/vfs
# Change these targets to the names of your modules if building out of tree
MODULES = skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
skel_transparent.@SHLIBEXT@
all: $(MODULES)
# Pattern rules
.SUFFIXES: .@SHLIBEXT@
.@OBJEXT@.@SHLIBEXT@:
@echo "Linking $<"
@$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@
.c.@OBJEXT@:
@echo "Compiling $<"
@$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
install: default
$(INSTALLCMD) -d $(VFS_LIBDIR)
$(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
# Misc targets
clean:
rm -rf .libs
rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
distclean: clean
rm -f config.status config.cache Makefile