Code

src/Makefile: Use LTLIBRARIES for libsysdb_scanner.
authorSebastian Harl <sh@tokkee.org>
Mon, 30 Dec 2013 18:05:12 +0000 (19:05 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 30 Dec 2013 18:05:12 +0000 (19:05 +0100)
src/Makefile.am

index 6c257bb80fdc9a4242dcddf7d29d06a6dcd60479..53f4efb4e26222063c082e3325fc3ab0a7864090 100644 (file)
@@ -40,6 +40,7 @@ pkgclientinclude_HEADERS = \
                include/client/sysdb.h
 
 lib_LTLIBRARIES = libsysdbclient.la libsysdb.la
+noinst_LTLIBRARIES =
 
 libsysdbclient_la_SOURCES = \
                client/client.c include/client/sysdb.h \
@@ -87,14 +88,14 @@ if BUILD_CLIENT
 bin_PROGRAMS += sysdb
 
 # don't use strict CFLAGS for flex code
-noinst_LIBRARIES = libsysdb_scanner.a
-libsysdb_scanner_a_SOURCES = tools/sysdb/scanner.l
-libsysdb_scanner_a_CFLAGS = -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\""
+noinst_LTLIBRARIES += libsysdb_scanner.la
+libsysdb_scanner_la_SOURCES = tools/sysdb/scanner.l
+libsysdb_scanner_la_CFLAGS = -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\""
 sysdb_SOURCES = tools/sysdb/main.c include/client/sysdb.h \
                tools/sysdb/input.c tools/sysdb/input.h
 sysdb_CFLAGS = -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\"" \
                $(AM_CFLAGS) @READLINE_CFLAGS@
-sysdb_LDADD = libsysdb_scanner.a libsysdbclient.la @READLINE_LIBS@
+sysdb_LDADD = libsysdb_scanner.la libsysdbclient.la @READLINE_LIBS@
 endif
 
 sysdbd_SOURCES = tools/sysdbd/main.c include/sysdb.h \