]> git.sur5r.net Git - cc65/commitdiff
Allow system specific common and runtime files
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Jul 2001 14:55:08 +0000 (14:55 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Jul 2001 14:55:08 +0000 (14:55 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@785 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/Makefile

index cd662e93c1ad9ce6d5047ca7d8f11308b1d5f197..a77fd2d237800e2ef59c1def5520d2a1b1242cd4 100644 (file)
@@ -126,7 +126,13 @@ geoslib:
            $(MAKE) -C $$i || exit 1; \
        done
        for i in common runtime; do \
-           $(AR) a geos.lib $$i/*.o;\
+           for objfile in $$i/*.o; do \
+               if [ -f geos/$$objfile ]; then \
+                   $(AR) a geos.lib geos/$$objfile; \
+               else \
+                   $(AR) a geos.lib $$objfile; \
+               fi; \
+           done \
        done
 
 #-----------------------------------------------------------------------------