app_head merge for get_friendly_nt_err()
[Samba/gbeck.git] / examples / pdb / Makefile
blob115fd3c87e729df1570e809293fd338ce816b41a
1 # Makefile for samba-pdb examples
2 # Variables
4 CC = gcc
5 LIBTOOL = libtool
7 SAMBA_SRC = ../../source
8 SAMBA_INCL = ../../source/include
9 UBIQX_SRC = ../../source/ubiqx
10 SMBWR_SRC = ../../source/smbwrapper
11 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
12 PDB_OBJS = pdb_test.so
14 # Default target
16 default: $(PDB_OBJS)
18 # Pattern rules
20 %.so: %.lo
21 $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
23 %.lo: %.c
24 $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
26 # Misc targets
28 clean:
29 rm -rf .libs
30 rm -f core *~ *% *.bak \
31 $(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo)