--- mii-diag-2.11.orig/mii-diag.8
+++ mii-diag-2.11/mii-diag.8
@@ -61,7 +61,7 @@
 .B \-F, --fixed-speed <speed|setting>
 
 Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD, 10baseT,
-10baseT-FD, 10baseT-HD.  For more precise control an explict numeric
+10baseT-FD, 10baseT-HD.  For more precise control an explicit numeric
 register setting is also allowed.
 
 
@@ -117,7 +117,7 @@
 .PP
 The '--monitor' option allows scripting link beat changes.
 .PP
-This option is similar to --watch, but with lower overhead and simplifed
+This option is similar to --watch, but with lower overhead and simplified
 output.  It polls the interface only once a second and the output format
 is a single line per link change with three fixed words
   <unknown|down||negotiating|up> <STATUS> <PARTNER-CAP>
--- mii-diag-2.11.orig/Makefile
+++ mii-diag-2.11/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
