mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
256f506c5b
(This used to be commit e711005828
)
52 lines
1.0 KiB
Makefile
52 lines
1.0 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)/popt \
|
|
-I$(SAMBA_SOURCE)/lib/replace \
|
|
-I$(SAMBA_SOURCE)/lib/talloc \
|
|
-I$(SAMBA_SOURCE)/lib/tdb/include \
|
|
-I$(SAMBA_SOURCE)/smbwrapper \
|
|
-I$(SAMBA_SOURCE)/librpc \
|
|
-I$(SAMBA_SOURCE) -I.
|
|
|
|
|
|
prefix = @prefix@
|
|
libdir = @libdir@
|
|
|
|
VFS_LIBDIR = $(libdir)/vfs
|
|
|
|
# Auto target
|
|
default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
|
|
|
|
# Pattern rules
|
|
|
|
%.$(SHLIBEXT): %.$(OBJEXT)
|
|
@echo "Linking $@"
|
|
@$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
|
|
|
|
%.$(OBJEXT): %.c
|
|
@echo "Compiling $<"
|
|
@$(CC) $(FLAGS) -c $<
|
|
|
|
|
|
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
|
|
|