summaryrefslogtreecommitdiff
path: root/Makefile.wnm
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.wnm')
-rw-r--r--Makefile.wnm7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile.wnm b/Makefile.wnm
index 2e1cb60ac4dbc..1127328932ffd 100644
--- a/Makefile.wnm
+++ b/Makefile.wnm
@@ -20,7 +20,7 @@ LIBS = user32.lib
# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.
-.c.obj:
+.c.obj::
$(CC) $(CFLAGS) $<
OBJ = \
@@ -33,11 +33,8 @@ OBJ = \
all: less.exe lesskey.exe
-# This is really horrible, but the command line is too long for
-# MS-DOS if we try to link ${OBJ}.
less.exe: $(OBJ)
- -del lesskey.obj
- $(LD) $(LDFLAGS) *.obj $(LIBS) /out:$@
+ $(LD) $(LDFLAGS) $** $(LIBS) /out:$@
lesskey.exe: lesskey.obj version.obj
$(LD) $(LDFLAGS) lesskey.obj version.obj $(LIBS) /out:$@