summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-04-10 16:39:25 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2020-04-10 16:40:03 +0100
commit40a2e5be478cc7398b99324fe4830cd979ea2a5b (patch)
tree6b78bdec3da798d121ccc004211a1763d8e38834 /Makefile
parenta1683556c7d8fdd9d5538a4f0cb5ee018832719b (diff)
Add Makefile and mii-diag.8 updates from Debian package
Add the Makefile and mii-diag.8 spelling fixes from the Debian package. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cdfc573
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+CFLAGS= -O -Wall
+CC=gcc
+INSTALL=install
+
+LIBS=libmii.o
+
+all: mii-diag mii-diag-udeb
+
+mii-diag:
+ $(CC) $(CFLAGS) -Wstrict-prototypes -O mii-diag.c -DLIBMII \
+ libmii.c -o mii-diag
+
+mii-diag-udeb:
+ $(CC) -Os -Wstrict-prototypes -O mii-diag.c -o mii-diag
+clean:
+ rm -f *.o mii-diag mii-diag-udeb *~
+
+install-mii-diag:
+ mkdir -p $(DESTDIR)/usr/sbin
+ $(INSTALL) mii-diag $(DESTDIR)/usr/sbin
+
+install-mii-diag-udeb:
+ mkdir -p $(DESTDIR)/usr/sbin
+ $(INSTALL) mii-diag-udeb $(DESTDIR)/usr/sbin/mii-diag
+
+install: all install-mii-diag