~vcs-imports/samba/main

« back to all changes in this revision

Viewing changes to examples/pdb/Makefile

  • Committer: jerry
  • Date: 2006-07-14 21:48:39 UTC
  • Revision ID: vcs-imports@canonical.com-20060714214839-586d8c489a8fcead
gutting trunk to move to svn:externals

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for samba-pdb examples
2
 
# Variables
3
 
 
4
 
CC = gcc
5
 
LIBTOOL = libtool
6
 
 
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 -I/usr/include/heimdal -fPIC
12
 
PDB_OBJS = test.la
13
 
 
14
 
# Default target
15
 
 
16
 
default: $(PDB_OBJS)
17
 
 
18
 
# Pattern rules
19
 
 
20
 
%.la: %.lo
21
 
        $(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS) -rpath /usr/lib/samba/pdb/
22
 
 
23
 
%.lo: %.c
24
 
        $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
25
 
 
26
 
# Misc targets
27
 
 
28
 
clean:
29
 
        rm -rf .libs
30
 
        rm -f core *~ *% *.bak \
31
 
                $(PDB_OBJS) $(PDB_OBJS:.la=.o) $(PDB_OBJS:.la=.lo)