1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/examples/pdb/Makefile
Andrew Bartlett 27439c53c5 Also add the matching example pdb module.
(This used to be commit fbfb7ee896)
2002-02-22 02:57:49 +00:00

32 lines
593 B
Makefile

# Makefile for samba-pdb examples
# Variables
CC = gcc
LIBTOOL = libtool
SAMBA_SRC = ../../source
SAMBA_INCL = ../../source/include
UBIQX_SRC = ../../source/ubiqx
SMBWR_SRC = ../../source/smbwrapper
CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
PDB_OBJS = pdb_test.so
# Default target
default: $(PDB_OBJS)
# Pattern rules
%.so: %.lo
$(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
%.lo: %.c
$(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
# Misc targets
clean:
rm -rf .libs
rm -f core *~ *% *.bak \
$(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo)