[project @ 1997-10-06 17:37:23 by sof]
authorsof <unknown>
Mon, 6 Oct 1997 17:37:23 +0000 (17:37 +0000)
committersof <unknown>
Mon, 6 Oct 1997 17:37:23 +0000 (17:37 +0000)
Fix to cope with .exe suffixes for binaries under cygwin32

mk/target.mk

index 6ca1e02..977b114 100644 (file)
@@ -25,14 +25,16 @@ all ::
 all :: runtests
 endif
 
+# Bogosity needed here to cope with .exe suffix for strip & size files.
+# (shouldn't have to be our problem.)
 ifneq "$(HC_FAIL)" "YES"
 $(NOFIB_PROG) : $(OBJS)
        @echo ==nofib== $(NOFIB_PROG): time to link $(NOFIB_PROG) follows...
        @$(TIME) $(HC) $(HC_OPTS) -o $@ $^ $(LIBS)
        @if (test -f $@ ); then \
-               $(STRIP) $@; \
+               $(STRIP) $@$(exeext); \
                echo ==nofib== $(NOFIB_PROG): size of $(NOFIB_PROG) follows...; \
-               $(SIZE) $@; \
+               $(SIZE) $@$(exeext); \
        fi;
 endif