1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/examples/pdb/xml/Makefile.in
Jelmer Vernooij 3fce46ac7d Adding pdb_xml and pdb_mysql passdb modules.
Added some consts to pdb_test to follow pdb_methods struct more strictly
(This used to be commit bb1c450199)
2002-08-10 20:14:32 +00:00

34 lines
696 B
Makefile

PDB_OBJS = pdb_xml.so
PDB_CFLAGS = `xml2-config --cflags`
PDB_LDFLAGS = `xml2-config --libs`
include $(MAKEFILE)
CC = @CC@
LIBTOOL = libtool
CFLAGS = @CFLAGS@ $(PDB_CFLAGS)
CPPFLAGS = @CPPFLAGS@ $(PDB_CPPFLAGS)
LDFLAGS = @LDFLAGS@ $(PDB_LDFLAGS)
LDSHFLAGS = -shared
srcdir = @builddir@
FLAGS = $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper -I. $(CPPFLAGS) -I$(srcdir)
# Default target
default: $(PDB_OBJS)
# Pattern rules
%.so: %.lo
$(LIBTOOL) $(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
%.lo: %.c
$(LIBTOOL) $(CC) $(FLAGS) -c $<
# Misc targets
clean:
rm -rf .libs
rm -f core *~ *% *.bak \
$(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo)