-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
44 lines (31 loc) · 1.11 KB
/
Makefile.in
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
34
35
36
37
38
39
40
41
42
43
44
# Makefile for experimental pdb modules
CC = @CC@
INSTALL = @INSTALL@
SHLIBEXT = @SHLIBEXT@
modules = multi @modules@
MYSQL_LIBS = @MYSQL_LIBS@
PGSQL_LIBS = @PGSQL_LIBS@
TALLOC_LIBS = -ltalloc
SOURCEDIR = @SOURCEDIR@
LIBDIR = @LIBDIR@
CFLAGS = @CFLAGS@ -I$(SOURCEDIR)/source3 -I$(SOURCEDIR)/source3/include -I$(SOURCEDIR)/source3/librpc -I$(SOURCEDIR)/lib/replace -I$(SOURCEDIR)/lib/tdb/include -I$(SOURCEDIR)/lib/tevent -I$(SOURCEDIR)/ -I$(SOURCEDIR)/lib/talloc
all: $(addsuffix .$(SHLIBEXT), $(modules))
.c.o:
$(CC) $(CFLAGS) -fPIC -c $<
mysql.$(SHLIBEXT): pdb_mysql.o pdb_sql.o
$(CC) -shared -o $@ $^ $(MYSQL_LIBS) $(TALLOC_LIBS)
pgsql.$(SHLIBEXT): pdb_pgsql.o pdb_sql.o
$(CC) -shared -o $@ $^ $(PGSQL_LIBS) $(TALLOC_LIBS)
multi.$(SHLIBEXT): pdb_multi.o
$(CC) -shared -o $@ $^ $(TALLOC_LIBS)
Makefile: Makefile.in config.status
./config.status
clean:
rm -f *.o *.$(SHLIBEXT)
install:
$(INSTALL) -d $(DESTDIR)$(LIBDIR)/pdb
$(INSTALL) -m 0755 $(addsuffix .$(SHLIBEXT), $(modules)) $(DESTDIR)$(LIBDIR)/pdb
distclean: clean
rm -rf autom4te.cache config.cache config.status
rm -f config.h Makefile config.log
rm -f *~