Jeff Garzik | 32c8037 | 2005-10-25 01:56:48 -0400 | [diff] [blame] | 1 | AM_CFLAGS = -Wall |
Aurelien Guillaume | 749f387 | 2012-12-02 21:21:01 +0100 | [diff] [blame] | 2 | LDADD = -lm |
Jeff Garzik | 32c8037 | 2005-10-25 01:56:48 -0400 | [diff] [blame] | 3 | |
| 4 | man_MANS = ethtool.8 |
Jeff Garzik | 2c4bd1c | 2009-01-15 17:27:10 -0500 | [diff] [blame] | 5 | EXTRA_DIST = LICENSE ethtool.8 ethtool.spec.in aclocal.m4 ChangeLog autogen.sh |
Jeff Garzik | 32c8037 | 2005-10-25 01:56:48 -0400 | [diff] [blame] | 6 | |
| 7 | sbin_PROGRAMS = ethtool |
Ben Hutchings | 7fcbc56 | 2012-05-23 00:40:55 +0100 | [diff] [blame] | 8 | ethtool_SOURCES = ethtool.c ethtool-copy.h internal.h net_tstamp-copy.h \ |
Florian Fainelli | 875616d | 2014-02-27 15:43:01 -0800 | [diff] [blame] | 9 | rxclass.c |
| 10 | if ETHTOOL_ENABLE_PRETTY_DUMP |
| 11 | ethtool_SOURCES += \ |
Vivien Didelot | cb8e980 | 2018-12-18 14:06:35 -0500 | [diff] [blame] | 12 | amd8111e.c de2104x.c dsa.c e100.c e1000.c et131x.c igb.c \ |
Vivien Didelot | 8612d8b | 2019-02-14 11:15:36 -0500 | [diff] [blame] | 13 | fec.c fec_8xx.c ibm_emac.c ixgb.c ixgbe.c natsemi.c \ |
Steve Glendinning | a5f8ce2 | 2007-07-16 20:04:40 +0100 | [diff] [blame] | 14 | pcnet32.c realtek.c tg3.c marvell.c vioc.c \ |
Alexander Duyck | 8d63f72 | 2011-05-04 11:41:51 -0700 | [diff] [blame] | 15 | smsc911x.c at76c50x-usb.c sfc.c stmmac.c \ |
Vidya Sagar Ravipati | 7a4c422 | 2016-08-23 06:30:31 -0700 | [diff] [blame] | 16 | sff-common.c sff-common.h sfpid.c sfpdiag.c \ |
Raghuram Chary J | bf66874 | 2018-04-05 11:41:28 +0530 | [diff] [blame] | 17 | ixgbevf.c tse.c vmxnet3.c qsfp.c qsfp.h fjes.c lan78xx.c |
Florian Fainelli | 875616d | 2014-02-27 15:43:01 -0800 | [diff] [blame] | 18 | endif |
Jeff Garzik | 32c8037 | 2005-10-25 01:56:48 -0400 | [diff] [blame] | 19 | |
Kevin Locke | 9b80264 | 2019-04-19 18:16:21 -0600 | [diff] [blame] | 20 | if ENABLE_BASH_COMPLETION |
| 21 | bashcompletiondir = $(BASH_COMPLETION_DIR) |
| 22 | dist_bashcompletion_DATA = shell-completion/bash/ethtool |
| 23 | endif |
| 24 | |
Ben Hutchings | f2686c1 | 2012-02-17 22:17:41 +0000 | [diff] [blame] | 25 | TESTS = test-cmdline test-features |
| 26 | check_PROGRAMS = test-cmdline test-features |
Ben Hutchings | dfacc4a | 2011-10-31 18:29:35 +0000 | [diff] [blame] | 27 | test_cmdline_SOURCES = test-cmdline.c test-common.c $(ethtool_SOURCES) |
Ben Hutchings | cfe91ed | 2011-10-31 18:42:29 +0000 | [diff] [blame] | 28 | test_cmdline_CFLAGS = -DTEST_ETHTOOL |
Ben Hutchings | f2686c1 | 2012-02-17 22:17:41 +0000 | [diff] [blame] | 29 | test_features_SOURCES = test-features.c test-common.c $(ethtool_SOURCES) |
| 30 | test_features_CFLAGS = -DTEST_ETHTOOL |
Ben Hutchings | cfe91ed | 2011-10-31 18:42:29 +0000 | [diff] [blame] | 31 | |
Jeff Garzik | 32c8037 | 2005-10-25 01:56:48 -0400 | [diff] [blame] | 32 | dist-hook: |
| 33 | cp $(top_srcdir)/ethtool.spec $(distdir) |
| 34 | |