diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-23 19:39:52 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-23 19:44:11 +0100 |
commit | 22703bf3ffc3692a719d6bd593d3705697045bea (patch) | |
tree | f342cd7d87ea3228fbf17bf7cdca24ab3f122a2d /lib/tdb | |
parent | 7e1f0e272ca2db577a929a2bbef651cf5759535e (diff) | |
download | samba-22703bf3ffc3692a719d6bd593d3705697045bea.tar.gz samba-22703bf3ffc3692a719d6bd593d3705697045bea.tar.bz2 samba-22703bf3ffc3692a719d6bd593d3705697045bea.zip |
standalone: Use more variables, preparing to include these files from main
Samba 4 makefile.
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/tdb.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/tdb/tdb.mk b/lib/tdb/tdb.mk index 72f44e7211..b786bdbf54 100644 --- a/lib/tdb/tdb.mk +++ b/lib/tdb/tdb.mk @@ -7,8 +7,9 @@ ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL) TDB_SONAME = libtdb.$(SHLIBEXT).1 TDB_SOLIB = libtdb.$(SHLIBEXT).$(PACKAGE_VERSION) +TDB_STLIB = libtdb.a -TDB_LIB = libtdb.a +TDB_LIB = $(TDB_STLIB) bin/tdbtest$(EXEEXT): tools/tdbtest.o $(TDB_LIB) $(CC) $(CFLAGS) $(LDFLAGS) -o bin/tdbtest tools/tdbtest.o -L. -ltdb -lgdbm @@ -30,7 +31,7 @@ test:: bin/tdbtorture$(EXEEXT) $(TDB_SONAME) clean:: rm -f test.db test.tdb torture.tdb test.gdbm - rm -f $(TDB_SONAME) $(TDB_SOLIB) libtdb.a libtdb.$(SHLIBEXT) + rm -f $(TDB_SONAME) $(TDB_SOLIB) $(TDB_STLIB) libtdb.$(SHLIBEXT) rm -f $(ALL_PROGS) tdb.pc build-python:: tdb.$(SHLIBEXT) @@ -68,10 +69,10 @@ installheaders:: installdirs installlibs:: all installdirs cp tdb.pc $(DESTDIR)$(libdir)/pkgconfig - cp libtdb.a $(TDB_SOLIB) $(DESTDIR)$(libdir) + cp $(TDB_STLIB) $(TDB_SOLIB) $(DESTDIR)$(libdir) -libtdb.a: $(TDB_OBJ) - ar -rv libtdb.a $(TDB_OBJ) +$(TDB_STLIB): $(TDB_OBJ) + ar -rv $(TDB_STLIB) $(TDB_OBJ) libtdb.$(SHLIBEXT): $(TDB_SOLIB) ln -fs $< $@ |