nut-debian/drivers/Makefile.am

364 lines
13 KiB
Makefile
Raw Normal View History

2010-03-26 01:20:59 +02:00
# Network UPS Tools: drivers
2022-07-10 10:23:45 +03:00
# Make sure out-of-dir dependencies exist (especially when dev-building parts):
$(top_builddir)/common/libcommon.la \
$(top_builddir)/common/libparseconf.la \
$(top_builddir)/clients/libupsclient.la: dummy
@cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F)
2011-01-26 11:35:08 +02:00
# by default, link programs in this directory with libcommon.la
# (libtool version of the static lib, in order to access LTLIBOBJS)
2010-03-26 01:20:59 +02:00
#FIXME: SERLIBS is only useful for LDADD_DRIVERS_SERIAL not for LDADD_COMMON
2022-07-10 10:23:45 +03:00
LDADD_COMMON = $(top_builddir)/common/libcommon.la $(top_builddir)/common/libparseconf.la
LDADD_DRIVERS = libdummy.la $(LDADD_COMMON)
LDADD_DRIVERS_SERIAL = libdummy_serial.la $(LDADD_DRIVERS) $(SERLIBS)
2010-03-26 01:20:59 +02:00
# most targets are drivers, so make this the default
LDADD = $(LDADD_DRIVERS_SERIAL)
# Avoid per-target CFLAGS, because this will prevent re-use of object
# files. In any case, CFLAGS are only -I options, so there is no harm,
# but only add them if we really use the target.
AM_CFLAGS = -I$(top_srcdir)/include
if WITH_USB
AM_CFLAGS += $(LIBUSB_CFLAGS)
endif
2012-01-24 12:22:33 +02:00
if WITH_NEON
2010-03-26 01:20:59 +02:00
AM_CFLAGS += $(LIBNEON_CFLAGS)
endif
if WITH_LIBPOWERMAN
AM_CFLAGS += $(LIBPOWERMAN_CFLAGS)
endif
2011-09-29 21:14:46 +03:00
if WITH_IPMI
AM_CFLAGS += $(LIBIPMI_CFLAGS)
endif
2022-07-10 10:23:45 +03:00
if WITH_MODBUS
AM_CFLAGS += $(LIBMODBUS_CFLAGS)
endif
2010-03-26 01:20:59 +02:00
2013-11-24 17:00:12 +02:00
SERIAL_DRIVERLIST = al175 bcmxcp belkin belkinunv bestfcom \
2010-03-26 01:20:59 +02:00
bestfortress bestuferrups bestups dummy-ups etapro everups \
2011-01-26 11:35:08 +02:00
gamatronic genericups isbmex liebert liebert-esp2 masterguard metasys \
2022-07-10 10:23:45 +03:00
mge-utalk microdowell microsol-apc mge-shut oneac optiups powercom rhino \
safenet nutdrv_siemens-sitop skel solis tripplite tripplitesu upscode2 victronups powerpanel \
blazer_ser clone clone-outlet ivtscd apcsmart apcsmart-old apcupsd-ups riello_ser
2010-03-26 01:20:59 +02:00
SNMP_DRIVERLIST = snmp-ups
2011-01-26 11:35:08 +02:00
USB_LIBUSB_DRIVERLIST = usbhid-ups bcmxcp_usb tripplite_usb \
2014-04-22 21:39:47 +03:00
blazer_usb richcomm_usb riello_usb \
2022-07-10 10:23:45 +03:00
nutdrv_atcl_usb
2010-03-26 01:20:59 +02:00
USB_DRIVERLIST = $(USB_LIBUSB_DRIVERLIST)
2022-07-10 10:23:45 +03:00
SERIAL_USB_DRIVERLIST = \
nutdrv_qx
2010-03-26 01:20:59 +02:00
NEONXML_DRIVERLIST = netxml-ups
2012-08-13 00:39:31 +03:00
MACOSX_DRIVERLIST = macosx-ups
2022-07-10 10:23:45 +03:00
MODBUS_DRIVERLIST = phoenixcontact_modbus generic_modbus huawei-ups2000 socomec_jbus adelsystem_cbi
LINUX_I2C_DRIVERLIST = asem pijuice
POWERMAN_DRIVERLIST = powerman-pdu
IPMI_DRIVERLIST = nut-ipmipsu
2010-03-26 01:20:59 +02:00
# distribute all drivers, even ones that are not built by default
2022-07-10 10:23:45 +03:00
EXTRA_PROGRAMS = $(SERIAL_DRIVERLIST) $(USB_DRIVERLIST) $(SERIAL_USB_DRIVERLIST)
EXTRA_PROGRAMS += $(SNMP_DRIVERLIST) $(NEONXML_DRIVERLIST) $(MACOSX_DRIVERLIST)
EXTRA_PROGRAMS += $(LINUX_I2C_DRIVERLIST)
2010-03-26 01:20:59 +02:00
# construct the list of drivers to build
if SOME_DRIVERS
driverexec_PROGRAMS = $(DRIVER_BUILD_LIST)
else
driverexec_PROGRAMS =
if WITH_SERIAL
2022-07-10 10:23:45 +03:00
driverexec_PROGRAMS += $(SERIAL_DRIVERLIST) $(SERIAL_USB_DRIVERLIST)
else
if WITH_USB
driverexec_PROGRAMS += $(SERIAL_USB_DRIVERLIST)
endif
2010-03-26 01:20:59 +02:00
endif
if WITH_SNMP
driverexec_PROGRAMS += $(SNMP_DRIVERLIST)
endif
if WITH_USB
driverexec_PROGRAMS += $(USB_LIBUSB_DRIVERLIST)
endif
2012-01-24 12:22:33 +02:00
if WITH_NEON
2010-03-26 01:20:59 +02:00
driverexec_PROGRAMS += $(NEONXML_DRIVERLIST)
endif
if WITH_LIBPOWERMAN
2022-07-10 10:23:45 +03:00
driverexec_PROGRAMS += $(POWERMAN_DRIVERLIST)
2010-03-26 01:20:59 +02:00
endif
2011-09-29 21:14:46 +03:00
if WITH_IPMI
2022-07-10 10:23:45 +03:00
driverexec_PROGRAMS += $(IPMI_DRIVERLIST)
2011-09-29 21:14:46 +03:00
endif
2012-08-13 00:39:31 +03:00
if WITH_MACOSX
driverexec_PROGRAMS += $(MACOSX_DRIVERLIST)
endif
2015-04-30 16:53:36 +03:00
if WITH_LINUX_I2C
driverexec_PROGRAMS += $(LINUX_I2C_DRIVERLIST)
endif
2022-07-10 10:23:45 +03:00
if WITH_MODBUS
driverexec_PROGRAMS += $(MODBUS_DRIVERLIST)
endif
2010-03-26 01:20:59 +02:00
else
driverexec_PROGRAMS += skel
endif
# always build upsdrvctl
2014-04-22 21:39:47 +03:00
sbin_PROGRAMS = upsdrvctl
2010-03-26 01:20:59 +02:00
# ==========================================================================
# Driver build details
# upsdrvctl: the all-singing all-dancing driver control program
upsdrvctl_SOURCES = upsdrvctl.c
upsdrvctl_LDADD = $(LDADD_COMMON)
# serial drivers: all of them use standard LDADD and CFLAGS
2013-11-24 17:00:12 +02:00
al175_SOURCES = al175.c
2011-09-29 21:14:46 +03:00
apcsmart_SOURCES = apcsmart.c apcsmart_tabs.c
apcsmart_old_SOURCES = apcsmart-old.c
2010-03-26 01:20:59 +02:00
bcmxcp_SOURCES = bcmxcp.c bcmxcp_ser.c
2011-01-26 11:35:08 +02:00
bcmxcp_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
belkin_SOURCES = belkin.c
belkinunv_SOURCES = belkinunv.c
bestfcom_SOURCES = bestfcom.c
2022-07-10 10:23:45 +03:00
bestfortress_SOURCES = bestfortress.c
2010-03-26 01:20:59 +02:00
bestuferrups_SOURCES = bestuferrups.c
bestups_SOURCES = bestups.c
blazer_ser_SOURCES = blazer.c blazer_ser.c
blazer_ser_LDADD = $(LDADD) -lm
etapro_SOURCES = etapro.c
everups_SOURCES = everups.c
gamatronic_SOURCES = gamatronic.c
genericups_SOURCES = genericups.c
isbmex_SOURCES = isbmex.c
isbmex_LDADD = $(LDADD) -lm
ivtscd_SOURCES = ivtscd.c
liebert_SOURCES = liebert.c
2011-01-26 11:35:08 +02:00
liebert_esp2_SOURCES = liebert-esp2.c
2010-03-26 01:20:59 +02:00
masterguard_SOURCES = masterguard.c
metasys_SOURCES = metasys.c
2022-07-10 10:23:45 +03:00
metasys_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
mge_utalk_SOURCES = mge-utalk.c
microdowell_SOURCES = microdowell.c
2022-07-10 10:23:45 +03:00
microsol_apc_SOURCES = microsol-apc.c microsol-common.c
microsol_apc_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
oneac_SOURCES = oneac.c
optiups_SOURCES = optiups.c
powercom_SOURCES = powercom.c
powercom_LDADD = $(LDADD) -lm
powerpanel_SOURCES = powerpanel.c powerp-bin.c powerp-txt.c
powerpanel_LDADD = $(LDADD) -lm
rhino_SOURCES = rhino.c
rhino_LDADD = $(LDADD) -lm
safenet_SOURCES = safenet.c
2022-07-10 10:23:45 +03:00
nutdrv_siemens_sitop_SOURCES = nutdrv_siemens_sitop.c
2010-03-26 01:20:59 +02:00
solis_SOURCES = solis.c
2016-07-18 03:11:41 +03:00
solis_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
tripplite_SOURCES = tripplite.c
tripplite_LDADD = $(LDADD) -lm
tripplitesu_SOURCES = tripplitesu.c
upscode2_SOURCES = upscode2.c
upscode2_LDADD = $(LDADD) -lm
victronups_SOURCES = victronups.c
2013-11-24 17:00:12 +02:00
riello_ser_SOURCES = riello.c riello_ser.c
riello_ser_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
# non-serial drivers: these use custom LDADD and/or CFLAGS
# dummy
dummy_ups_SOURCES = dummy-ups.c
dummy_ups_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/clients
2022-07-10 10:23:45 +03:00
dummy_ups_LDADD = $(LDADD_DRIVERS) $(top_builddir)/clients/libupsclient.la
2010-03-26 01:20:59 +02:00
if WITH_SSL
dummy_ups_CFLAGS += $(LIBSSL_CFLAGS)
2011-01-26 11:35:08 +02:00
dummy_ups_LDADD += $(LIBSSL_LIBS)
2010-03-26 01:20:59 +02:00
endif
# Clone drivers
clone_SOURCES = clone.c
clone_outlet_SOURCES = clone-outlet.c
2013-11-24 17:00:12 +02:00
# apcupsd client driver
apcupsd_ups_SOURCES = apcupsd-ups.c
apcupsd_ups_CFLAGS = $(AM_CFLAGS)
apcupsd_ups_LDADD = $(LDADD_DRIVERS)
2010-03-26 01:20:59 +02:00
# sample skeleton driver
skel_SOURCES = skel.c
skel_LDADD = $(LDADD_DRIVERS)
# USB
2022-07-10 10:23:45 +03:00
if WITH_LIBUSB_0_1
LIBUSB_IMPL = libusb0.c
endif
if WITH_LIBUSB_1_0
LIBUSB_IMPL = libusb1.c
endif
USBHID_UPS_SUBDRIVERS = apc-hid.c arduino-hid.c belkin-hid.c cps-hid.c explore-hid.c \
2013-11-24 17:00:12 +02:00
liebert-hid.c mge-hid.c powercom-hid.c tripplite-hid.c idowell-hid.c \
2023-09-01 13:22:52 +03:00
openups-hid.c powervar-hid.c delta_ups-hid.c ever-hid.c legrand-hid.c salicru-hid.c rpi-hid.c
2022-07-10 10:23:45 +03:00
usbhid_ups_SOURCES = usbhid-ups.c libhid.c $(LIBUSB_IMPL) hidparser.c \
2010-03-26 01:20:59 +02:00
usb-common.c $(USBHID_UPS_SUBDRIVERS)
2022-07-10 10:23:45 +03:00
usbhid_ups_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
tripplite_usb_SOURCES = tripplite_usb.c $(LIBUSB_IMPL) usb-common.c
2011-01-26 11:35:08 +02:00
tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
2010-03-26 01:20:59 +02:00
bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c
2015-04-30 16:53:36 +03:00
bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
blazer_usb_SOURCES = blazer.c blazer_usb.c $(LIBUSB_IMPL) usb-common.c
2011-01-26 11:35:08 +02:00
blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
2010-03-26 01:20:59 +02:00
2014-04-22 21:39:47 +03:00
nutdrv_atcl_usb_SOURCES = nutdrv_atcl_usb.c usb-common.c
nutdrv_atcl_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
2010-03-26 01:20:59 +02:00
richcomm_usb_SOURCES = richcomm_usb.c usb-common.c
2011-01-26 11:35:08 +02:00
richcomm_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
riello_usb_SOURCES = riello.c riello_usb.c $(LIBUSB_IMPL) usb-common.c
2013-11-24 17:00:12 +02:00
riello_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
2010-03-26 01:20:59 +02:00
# HID-over-serial
2012-08-13 00:39:31 +03:00
mge_shut_SOURCES = usbhid-ups.c libshut.c libhid.c hidparser.c mge-hid.c
2010-03-26 01:20:59 +02:00
# per-target CFLAGS are necessary here
2022-07-10 10:23:45 +03:00
mge_shut_CFLAGS = $(AM_CFLAGS) -DSHUT_MODE=1
mge_shut_LDADD = $(LDADD) -lm
2010-03-26 01:20:59 +02:00
# SNMP
2022-07-10 10:23:45 +03:00
# Please keep the MIB table below sorted roughly alphabetically (incidentally
# by vendor too) to ease maintenance and codebase fork resynchronisations
snmp_ups_SOURCES = snmp-ups.c snmp-ups-helpers.c \
apc-mib.c apc-pdu-mib.c \
baytech-mib.c bestpower-mib.c \
compaq-mib.c cyberpower-mib.c \
delta_ups-mib.c \
eaton-pdu-genesis2-mib.c eaton-pdu-marlin-mib.c eaton-pdu-marlin-helpers.c \
eaton-pdu-pulizzi-mib.c eaton-pdu-revelation-mib.c \
eaton-ats16-nmc-mib.c eaton-ats16-nm2-mib.c apc-ats-mib.c eaton-ats30-mib.c \
emerson-avocent-pdu-mib.c \
hpe-pdu-mib.c huawei-mib.c \
ietf-mib.c \
mge-mib.c \
netvision-mib.c \
powerware-mib.c \
raritan-pdu-mib.c raritan-px2-mib.c \
xppc-mib.c
snmp_ups_CFLAGS = $(AM_CFLAGS)
snmp_ups_CFLAGS += $(LIBNETSNMP_CFLAGS)
snmp_ups_LDADD = $(LDADD_DRIVERS) $(LIBNETSNMP_LIBS) -lm
2010-03-26 01:20:59 +02:00
# NEON XML/HTTP
netxml_ups_SOURCES = netxml-ups.c mge-xml.c
2011-01-26 11:35:08 +02:00
netxml_ups_LDADD = $(LDADD_DRIVERS) $(LIBNEON_LIBS)
2010-03-26 01:20:59 +02:00
# Powerman
powerman_pdu_SOURCES = powerman-pdu.c
2011-01-26 11:35:08 +02:00
powerman_pdu_LDADD = $(LDADD) $(LIBPOWERMAN_LIBS)
2010-03-26 01:20:59 +02:00
2011-09-29 21:14:46 +03:00
# IPMI PSU
nut_ipmipsu_SOURCES = nut-ipmipsu.c
if WITH_FREEIPMI
2022-07-10 10:23:45 +03:00
nut_ipmipsu_SOURCES += nut-libfreeipmi.c
2011-09-29 21:14:46 +03:00
endif
2022-07-10 10:23:45 +03:00
# FIXME: Hacky hot-fix for build agents of varying OS generations:
# Different versions of IPMI libs requested 'unsigned int *' or 'int *' args:
#nut_ipmipsu_CFLAGS = $(AM_CFLAGS) -Wno-pointer-sign
2011-09-29 21:14:46 +03:00
nut_ipmipsu_LDADD = $(LDADD) $(LIBIPMI_LIBS)
2012-08-13 00:39:31 +03:00
# Mac OS X metadriver
macosx_ups_LDADD = $(LDADD_DRIVERS)
macosx_ups_LDFLAGS = $(LDFLAGS) -framework IOKit -framework CoreFoundation
macosx_ups_SOURCES = macosx-ups.c
2022-07-10 10:23:45 +03:00
# Modbus drivers
phoenixcontact_modbus_SOURCES = phoenixcontact_modbus.c
phoenixcontact_modbus_LDADD = $(LDADD_DRIVERS) $(LIBMODBUS_LIBS)
generic_modbus_SOURCES = generic_modbus.c
generic_modbus_LDADD = $(LDADD_DRIVERS) $(LIBMODBUS_LIBS)
adelsystem_cbi_SOURCES = adelsystem_cbi.c
adelsystem_cbi_LDADD = $(LDADD_DRIVERS) $(LIBMODBUS_LIBS)
# Huawei UPS2000 driver
# (this is both a Modbus and a serial driver)
huawei_ups2000_SOURCES = huawei-ups2000.c
huawei_ups2000_LDADD = $(LDADD_DRIVERS_SERIAL) $(LIBMODBUS_LIBS)
# Socomec JBUS driver
# (this is a Modbus driver)
socomec_jbus_SOURCES = socomec_jbus.c
socomec_jbus_LDADD = $(LDADD_DRIVERS_SERIAL) $(LIBMODBUS_LIBS)
# Linux I2C drivers
2015-04-30 16:53:36 +03:00
asem_LDADD = $(LDADD_DRIVERS)
asem_SOURCES = asem.c
2022-07-10 10:23:45 +03:00
pijuice_LDADD = $(LDADD_DRIVERS)
pijuice_SOURCES = pijuice.c
2015-04-30 16:53:36 +03:00
2013-11-24 17:00:12 +02:00
# nutdrv_qx USB/Serial
nutdrv_qx_SOURCES = nutdrv_qx.c
nutdrv_qx_LDADD = $(LDADD_DRIVERS) -lm
nutdrv_qx_CFLAGS = $(AM_CFLAGS)
if WITH_SERIAL
nutdrv_qx_CFLAGS += -DQX_SERIAL
2022-07-10 10:23:45 +03:00
nutdrv_qx_LDADD += libdummy_serial.la $(SERLIBS)
2013-11-24 17:00:12 +02:00
endif
if WITH_USB
nutdrv_qx_CFLAGS += -DQX_USB
2022-07-10 10:23:45 +03:00
nutdrv_qx_SOURCES += $(LIBUSB_IMPL) usb-common.c
2013-11-24 17:00:12 +02:00
nutdrv_qx_LDADD += $(LIBUSB_LIBS)
endif
2015-04-30 16:53:36 +03:00
NUTDRV_QX_SUBDRIVERS = nutdrv_qx_bestups.c nutdrv_qx_blazer-common.c \
2022-07-10 10:23:45 +03:00
nutdrv_qx_masterguard.c \
2015-04-30 16:53:36 +03:00
nutdrv_qx_mecer.c nutdrv_qx_megatec.c nutdrv_qx_megatec-old.c \
nutdrv_qx_mustek.c nutdrv_qx_q1.c nutdrv_qx_voltronic.c \
2022-07-10 10:23:45 +03:00
nutdrv_qx_voltronic-qs.c nutdrv_qx_voltronic-qs-hex.c nutdrv_qx_zinto.c \
nutdrv_qx_hunnox.c nutdrv_qx_ablerex.c
2013-11-24 17:00:12 +02:00
nutdrv_qx_SOURCES += $(NUTDRV_QX_SUBDRIVERS)
2010-03-26 01:20:59 +02:00
# ----------------------------------------------------------------------
# List of header files. The purpose of this list is not dependency
# tracking (which is automatic), but to ensure these files are
# distributed by "make dist".
2022-07-10 10:23:45 +03:00
dist_noinst_HEADERS = apc-mib.h apc-iem-mib.h apc-hid.h arduino-hid.h baytech-mib.h bcmxcp.h bcmxcp_ser.h \
bcmxcp_io.h belkin.h belkin-hid.h bestpower-mib.h blazer.h cps-hid.h dstate.h \
dummy-ups.h explore-hid.h gamatronic.h genericups.h \
hidparser.h hidtypes.h ietf-mib.h libhid.h libshut.h nut_libusb.h liebert-hid.h \
main.h mge-hid.h mge-mib.h mge-utalk.h \
mge-xml.h microdowell.h microsol-apc.h microsol-common.h netvision-mib.h netxml-ups.h nut-ipmi.h oneac.h \
2010-03-26 01:20:59 +02:00
powercom.h powerpanel.h powerp-bin.h powerp-txt.h powerware-mib.h raritan-pdu-mib.h \
safenet.h serial.h snmp-ups.h solis.h tripplite.h tripplite-hid.h \
2011-09-29 21:14:46 +03:00
upshandler.h usb-common.h usbhid-ups.h powercom-hid.h compaq-mib.h idowell-hid.h \
2013-11-24 17:00:12 +02:00
apcsmart.h apcsmart_tabs.h apcsmart-old.h apcupsd-ups.h cyberpower-mib.h riello.h openups-hid.h \
2022-07-10 10:23:45 +03:00
delta_ups-mib.h nutdrv_qx.h nutdrv_qx_bestups.h nutdrv_qx_blazer-common.h \
nutdrv_qx_masterguard.h \
nutdrv_qx_mecer.h nutdrv_qx_ablerex.h \
nutdrv_qx_megatec.h nutdrv_qx_megatec-old.h nutdrv_qx_mustek.h nutdrv_qx_q1.h nutdrv_qx_hunnox.h \
2015-04-30 16:53:36 +03:00
nutdrv_qx_voltronic.h nutdrv_qx_voltronic-qs.h nutdrv_qx_voltronic-qs-hex.h nutdrv_qx_zinto.h \
2022-07-10 10:23:45 +03:00
xppc-mib.h huawei-mib.h eaton-ats16-nmc-mib.h eaton-ats16-nm2-mib.h apc-ats-mib.h raritan-px2-mib.h eaton-ats30-mib.h \
apc-pdu-mib.h ever-hid.h eaton-pdu-genesis2-mib.h eaton-pdu-marlin-mib.h eaton-pdu-marlin-helpers.h \
eaton-pdu-pulizzi-mib.h eaton-pdu-revelation-mib.h emerson-avocent-pdu-mib.h legrand-hid.h \
2023-09-01 13:22:52 +03:00
hpe-pdu-mib.h powervar-hid.h delta_ups-hid.h generic_modbus.h salicru-hid.h adelsystem_cbi.h rpi-hid.h
2010-03-26 01:20:59 +02:00
# Define a dummy library so that Automake builds rules for the
# corresponding object files. This library is not actually built,
2022-07-10 10:23:45 +03:00
# as a final product. It was necessary for Automake-technical reasons,
# because per-object CFLAGS can only be specified for libraries, not
# for object files. This library is used during the build process,
# and is not meant to be installed.
EXTRA_LTLIBRARIES = libdummy.la libdummy_serial.la
libdummy_la_SOURCES = main.c dstate.c
libdummy_la_LDFLAGS = -no-undefined -static
libdummy_serial_la_SOURCES = serial.c
libdummy_serial_la_LDFLAGS = -no-undefined -static
dummy:
CLEANFILES = $(EXTRA_LTLIBRARIES) $(EXTRA_PROGRAMS)
MAINTAINERCLEANFILES = Makefile.in .dirstamp
# NOTE: Do not clean ".deps" in SUBDIRS of the main project,
# the root Makefile.am takes care of that!
#clean-local:
# rm -rf $(builddir)/.deps