1AM_CFLAGS = -Wall 2LDADD = -lm 3 4man_MANS = ethtool.8 5EXTRA_DIST = LICENSE ethtool.8 ethtool.spec.in aclocal.m4 ChangeLog autogen.sh 6 7sbin_PROGRAMS = ethtool 8ethtool_SOURCES = ethtool.c ethtool-copy.h internal.h net_tstamp-copy.h \ 9 rxclass.c 10if ETHTOOL_ENABLE_PRETTY_DUMP 11ethtool_SOURCES += \ 12 amd8111e.c de2104x.c dsa.c e100.c e1000.c et131x.c igb.c \ 13 fec.c fec_8xx.c ibm_emac.c ixgb.c ixgbe.c natsemi.c \ 14 pcnet32.c realtek.c tg3.c marvell.c vioc.c \ 15 smsc911x.c at76c50x-usb.c sfc.c stmmac.c \ 16 sff-common.c sff-common.h sfpid.c sfpdiag.c \ 17 ixgbevf.c tse.c vmxnet3.c qsfp.c qsfp.h fjes.c lan78xx.c 18endif 19 20if ENABLE_BASH_COMPLETION 21bashcompletiondir = $(BASH_COMPLETION_DIR) 22dist_bashcompletion_DATA = shell-completion/bash/ethtool 23endif 24 25TESTS = test-cmdline test-features 26check_PROGRAMS = test-cmdline test-features 27test_cmdline_SOURCES = test-cmdline.c test-common.c $(ethtool_SOURCES) 28test_cmdline_CFLAGS = -DTEST_ETHTOOL 29test_features_SOURCES = test-features.c test-common.c $(ethtool_SOURCES) 30test_features_CFLAGS = -DTEST_ETHTOOL 31 32dist-hook: 33 cp $(top_srcdir)/ethtool.spec $(distdir) 34 35