summaryrefslogtreecommitdiff
path: root/examples/pdb/mysql/Makefile.in
blob: 1da6ea789efb710ba49b195cd6442d3dea39578a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PDB_OBJS	= pdb_mysql.so 
PDB_LDFLAGS	= -lmysqlclient
MAKEFILE	= Makefile.pdb

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)