--- /dev/null
+--- dmsdos-0.9.2.2/src/Makefile.orig Fri Oct 22 18:17:28 1999
++++ dmsdos-0.9.2.2/src/Makefile Wed Apr 3 14:57:01 2002
+@@ -12,24 +12,24 @@
+ # guess some special flags for CPU type - used for optimization only
+ CPUFLAGS=
+ ifeq ($(CONFIG_M386),y)
+-CPUFLAGS= -m386 -DCPU=386 -DUSE_ASM
++CPUFLAGS= -DCPU=386 -DUSE_ASM
+ endif
+ ifeq ($(CONFIG_M486),y)
+-CPUFLAGS= -m486 -DCPU=486 -DUSE_ASM
++CPUFLAGS= -DCPU=486 -DUSE_ASM
+ endif
+ ifeq ($(CONFIG_M586),y)
+-CPUFLAGS= -m486 -DCPU=586 -DUSE_ASM
++CPUFLAGS= -DCPU=586 -DUSE_ASM
+ endif
+ # this one is new in 2.2.x kernels...
+ ifeq ($(CONFIG_M586TSC),y)
+-CPUFLAGS= -m486 -DCPU=586 -DUSE_ASM
++CPUFLAGS= -DCPU=586 -DUSE_ASM
+ endif
+ ifeq ($(CONFIG_M686),y)
+-CPUFLAGS= -m486 -DCPU=686 -DUSE_ASM
++CPUFLAGS= -DCPU=686 -DUSE_ASM
+ endif
+ # this one is new in 2.3.x kernels...
+ ifeq ($(CONFIG_MK7),y)
+-CPUFLAGS= -m486 -DCPU=686 -DUSE_ASM
++CPUFLAGS= -DCPU=686 -DUSE_ASM
+ endif
+ #
+ # Okay, that's it :)
+@@ -72,7 +72,7 @@
+ #
+ # CFLAGS for dmsdos module
+ # note: some macro expansions require at least -O
+-CFLAGS= -Wall -Wstrict-prototypes -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE
++CFLAGS= -Wall -Wstrict-prototypes $(OPT) -fomit-frame-pointer -D__KERNEL__ -DMODULE
+ CFLAGS+= $(CPUFLAGS)
+ #
+ # The next lines add some stuff automatically for people using modversions
+@@ -83,12 +83,12 @@
+ #
+ # CFLAGS for the dmsdos daemon
+ # note: some macro expansions require at least -O
+-DCFLAGS= -Wall -O3 -D__DMSDOS_DAEMON__
++DCFLAGS= -Wall $(OPT) -D__DMSDOS_DAEMON__
+ DCFLAGS+= $(CPUFLAGS)
+ #
+ # CFLAGS for the dmsdos library
+ # note: some macro expansions require at least -O
+-LCFLAGS= -Wall -O -ggdb -D__DMSDOS_LIB__ -DUSE_FLOCK
++LCFLAGS= -Wall $(OPT) -D__DMSDOS_LIB__ -DUSE_FLOCK
+ LCFLAGS+= $(CPUFLAGS) $(LIBC6FLAGS)
+ # uncomment the next line if you want a shared library
+ # LIB_SHARED = 1