mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
use that, but includes.h fails in environments where there's no system popt around. As the modules don't need that anyway, porting the check whether to use the system one or our own seems a bit overkill. Thanks to Michael Adam <ma@SerNet.DE>. Volker (This used to be commit 04cbde59566f814cfba5a008e12496795544ad05)
44 lines
893 B
Makefile
44 lines
893 B
Makefile
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LDSHFLAGS = @LDSHFLAGS@
|
|
INSTALLCMD = @INSTALL@
|
|
SAMBA_SOURCE = @SAMBA_SOURCE@
|
|
SHLIBEXT = @SHLIBEXT@
|
|
OBJEXT = @OBJEXT@
|
|
FLAGS = $(CFLAGS) -Iinclude -I$(SAMBA_SOURCE)/include -I$(SAMBA_SOURCE)/popt -I$(SAMBA_SOURCE)/ubiqx -I$(SAMBA_SOURCE)/smbwrapper -I. $(CPPFLAGS) -I$(SAMBA_SOURCE) -fPIC
|
|
|
|
|
|
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 config.* Makefile
|
|
|