Bring tdbi and tsql under automake control.
authorRalf Corsépius <corsepiu@fedoraproject.org>
Thu, 9 Aug 2007 13:04:18 +0000 (15:04 +0200)
committerRalf Corsépius <corsepiu@fedoraproject.org>
Thu, 9 Aug 2007 13:04:18 +0000 (15:04 +0200)
rpmdb/Makefile.am

index ff2d2ee..08bd1f0 100644 (file)
@@ -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)