nut-debian/tools/nut-scanner/Makefile.am

56 lines
1.7 KiB
Makefile
Raw Normal View History

2011-09-29 21:14:46 +03:00
BUILT_SOURCES = nutscan-usb.h nutscan-snmp.h
nutscan-usb.h nutscan-snmp.h:
cd ..; $(MAKE) $(AM_MAKEFLAGS) nut-scanner-deps
2012-01-24 12:22:33 +02:00
# Only build nut-scanner, and its library, if libltdl was found (required!)
if WITH_LIBLTDL
bin_PROGRAMS = nut-scanner
lib_LTLIBRARIES = libnutscan.la
endif
2011-09-29 21:14:46 +03:00
libnutscan_la_SOURCES = scan_nut.c scan_ipmi.c \
2013-11-24 17:00:12 +02:00
nutscan-device.c nutscan-ip.c nutscan-display.c \
nutscan-init.c scan_usb.c scan_snmp.c scan_xml_http.c \
scan_avahi.c scan_eaton_serial.c nutscan-serial.c \
$(top_srcdir)/drivers/serial.c \
$(top_srcdir)/drivers/bcmxcp_ser.c \
$(top_srcdir)/common/common.c
2012-06-01 16:55:19 +03:00
libnutscan_la_LIBADD = $(NETLIBS) $(LIBLTDL_LIBS)
2013-11-24 17:00:12 +02:00
libnutscan_la_LDFLAGS = $(SERLIBS) -version-info 1:0:0
libnutscan_la_CFLAGS = -I$(top_srcdir)/clients -I$(top_srcdir)/include $(LIBLTDL_CFLAGS) -I$(top_srcdir)/drivers
2011-09-29 21:14:46 +03:00
nut_scanner_SOURCES = nut-scanner.c
nut_scanner_CFLAGS = -I$(top_srcdir)/clients -I$(top_srcdir)/include
2013-11-24 17:00:12 +02:00
nut_scanner_LDADD = libnutscan.la ../../common/libcommon.la
2011-09-29 21:14:46 +03:00
if WITH_SSL
libnutscan_la_CFLAGS += $(LIBSSL_CFLAGS)
libnutscan_la_LIBADD += $(LIBSSL_LIBS)
endif
if WITH_USB
libnutscan_la_CFLAGS += $(LIBUSB_CFLAGS)
endif
if WITH_SNMP
libnutscan_la_CFLAGS += $(LIBNETSNMP_CFLAGS)
endif
2012-01-24 12:22:33 +02:00
if WITH_NEON
2011-09-29 21:14:46 +03:00
libnutscan_la_CFLAGS += $(LIBNEON_CFLAGS)
endif
if WITH_AVAHI
libnutscan_la_CFLAGS += $(LIBAVAHI_CFLAGS)
2012-01-24 12:22:33 +02:00
endif
if WITH_IPMI
libnutscan_la_CFLAGS += $(LIBIPMI_CFLAGS)
2011-09-29 21:14:46 +03:00
endif
2012-01-24 12:22:33 +02:00
dist_noinst_HEADERS = nutscan-usb.h nutscan-snmp.h
if WITH_DEV
include_HEADERS = nut-scan.h nutscan-device.h nutscan-ip.h nutscan-init.h
else
2013-11-24 17:00:12 +02:00
dist_noinst_HEADERS += nut-scan.h nutscan-device.h nutscan-ip.h nutscan-init.h nutscan-serial.h
2012-01-24 12:22:33 +02:00
endif
2011-09-29 21:14:46 +03:00
CLEANFILES = nutscan-usb.h nutscan-snmp.h