| 1 |
AUTOMAKE_OPTIONS = subdir-objects |
| 2 |
|
| 3 |
lib_LTLIBRARIES = |
| 4 |
libincludedir = $(includedir)/blockdev |
| 5 |
|
| 6 |
if WITH_SMART |
| 7 |
libinclude_HEADERS = smart.h |
| 8 |
else |
| 9 |
if WITH_SMARTMONTOOLS |
| 10 |
libinclude_HEADERS = smart.h |
| 11 |
endif |
| 12 |
endif |
| 13 |
|
| 14 |
|
| 15 |
if WITH_SMART |
| 16 |
|
| 17 |
lib_LTLIBRARIES += libbd_smart.la |
| 18 |
|
| 19 |
libbd_smart_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(SMART_CFLAGS) $(DRIVEDB_H_CFLAGS) -Wall -Wextra -Werror |
| 20 |
libbd_smart_la_LIBADD = ${builddir}/../../utils/libbd_utils.la $(GLIB_LIBS) $(GIO_LIBS) $(SMART_LIBS) |
| 21 |
libbd_smart_la_LDFLAGS = -L${srcdir}/../../utils/ -version-info 3:0:0 -Wl,--no-undefined -export-symbols-regex '^bd_.*' |
| 22 |
libbd_smart_la_CPPFLAGS = -I${builddir}/../../../include/ -I${srcdir}/../ -I. -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" |
| 23 |
|
| 24 |
libbd_smart_la_SOURCES = \ |
| 25 |
smart.h \ |
| 26 |
smart-private.h \ |
| 27 |
smart-common.c \ |
| 28 |
drivedb-parser.c \ |
| 29 |
libatasmart.c \ |
| 30 |
../check_deps.c \ |
| 31 |
../check_deps.h |
| 32 |
|
| 33 |
endif |
| 34 |
|
| 35 |
|
| 36 |
if WITH_SMARTMONTOOLS |
| 37 |
|
| 38 |
lib_LTLIBRARIES += libbd_smartmontools.la |
| 39 |
|
| 40 |
libbd_smartmontools_la_CFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS) $(JSON_GLIB_CFLAGS) $(DRIVEDB_H_CFLAGS) -Wall -Wextra -Werror |
| 41 |
libbd_smartmontools_la_LIBADD = ${builddir}/../../utils/libbd_utils.la $(GLIB_LIBS) $(GIO_LIBS) $(JSON_GLIB_LIBS) |
| 42 |
libbd_smartmontools_la_LDFLAGS = -L${srcdir}/../../utils/ -version-info 3:0:0 -Wl,--no-undefined -export-symbols-regex '^bd_.*' |
| 43 |
libbd_smartmontools_la_CPPFLAGS = -I${builddir}/../../../include/ -I${srcdir}/../ -I. -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" |
| 44 |
|
| 45 |
libbd_smartmontools_la_SOURCES = \ |
| 46 |
smart.h \ |
| 47 |
smart-private.h \ |
| 48 |
smart-common.c \ |
| 49 |
drivedb-parser.c \ |
| 50 |
smartmontools.c \ |
| 51 |
../check_deps.c \ |
| 52 |
../check_deps.h |
| 53 |
|
| 54 |
endif |