summaryrefslogtreecommitdiff
path: root/rpmdb/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'rpmdb/Makefile.am')
-rw-r--r--rpmdb/Makefile.am14
1 files changed, 9 insertions, 5 deletions
diff --git a/rpmdb/Makefile.am b/rpmdb/Makefile.am
index ff2d2ee21..08bd1f074 100644
--- a/rpmdb/Makefile.am
+++ b/rpmdb/Makefile.am
@@ -188,8 +188,12 @@ sources:
lint:
$(LINT) $(DEFS) $(AM_CPPFLAGS) $(librpmdb_la_SOURCES) $(DBLIBSRCS)
-tdbi: librpmdb.la tdbi.o
- $(LINK) @LDFLAGS_STATIC@ $@.o $< $(mylibpaths) $(mylibs) $(LIBS)
-
-tsql: librpmdb.la tsql.o
- $(LINK) @LDFLAGS_STATIC@ $@.o $< $(mylibpaths) $(mylibs) $(LIBS)
+EXTRA_PROGRAMS += tdbi
+tdbi_SOURCES = tdbi.c
+# tdbi_LDFLAGS = @LDFLAGS_STATIC@
+tdbi_LDADD = $(mylibpaths) $(mylibs)
+
+EXTRA_PROGRAMS += tsql
+tsql_SOURCES = tsql.c
+# tsql_LDFLAGS = @LDFLAGS_STATIC@
+tsql_LDADD = $(mylibpaths) $(mylibs) $(LIBS)