]> git.sur5r.net Git - cc65/commitdiff
Minor optimization.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 7 Feb 2012 17:31:32 +0000 (17:31 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 7 Feb 2012 17:31:32 +0000 (17:31 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5491 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/Makefile

index 369093dd2f3350c0fb3c59a23ced06155ca5e509..7047d9048c645a416e6354cbd82c38f06b87a3e8 100644 (file)
@@ -258,8 +258,9 @@ geos-cbmlib:
        for i in runtime common conio em joystick tgi zlib; do \
            $(MAKE) SYS=geos-cbm -C $$i || exit 1; \
            for objfile in $$i/*.o; do \
-               if [ -f geos-common/`basename $$objfile` ]; then \
-                   $(AR) a geos-cbm.lib geos-common/`basename $$objfile`; \
+               BASENAME=`basename $$objfile`; \
+               if [ -f geos-common/$$BASENAME ]; then \
+                   $(AR) a geos-cbm.lib geos-common/$$BASENAME; \
                else \
                    $(AR) a geos-cbm.lib $$objfile; \
                fi; \