From 79b848f98c76658ee947b02a749f1ba5df527524 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 20 Mar 2008 00:20:25 +0000 Subject: [PATCH] - Fixed: Make clean for snes_spc/Makefile didn't work outside of Windows. - Fixed: ccdv-posix segfaulted if you tried to run ar through it. SVN r821 (trunk) --- ccdv-posix.c | 6 +----- snes_spc/Makefile | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ccdv-posix.c b/ccdv-posix.c index 7e2aa8bfd..e0842a90a 100644 --- a/ccdv-posix.c +++ b/ccdv-posix.c @@ -304,11 +304,7 @@ int main(int argc, char **argv) snprintf(gAction, sizeof(gAction), "Running %s", Basename(argv[1])); memset(gArgsStr, 0, sizeof(gArgsStr)); - if(strcmp(gAction+8, "ar") == 0) - { - snprintf(gTarget, sizeof(gTarget), "%s", Basename(argv[i + 1])); - } - else if(strcmp(gAction+8, "cc") == 0 || + if(strcmp(gAction+8, "cc") == 0 || strcmp(gAction+8, "ld") == 0 || strcmp(gAction+8, "gcc") == 0 || strcmp(gAction+8, "g++") == 0 || diff --git a/snes_spc/Makefile b/snes_spc/Makefile index c32c06cc7..11c244759 100644 --- a/snes_spc/Makefile +++ b/snes_spc/Makefile @@ -1,5 +1,6 @@ # Makefile for snes_spc, derived from zlib/Makefile.mgw. +CMD=0 ifeq (Windows_NT,$(OS)) CMD=1 endif