From f1eac3a0be5f5ef27a60ed009983680134631cc1 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Wed, 1 Jun 2005 04:31:54 +0000 Subject: [PATCH] Fixed multibuild problems (thanks SamB). --- zsnes/src/makefile.ms | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/zsnes/src/makefile.ms b/zsnes/src/makefile.ms index cd06a6f0..1e6d2ec0 100644 --- a/zsnes/src/makefile.ms +++ b/zsnes/src/makefile.ms @@ -230,8 +230,14 @@ else ${ASM} ${ASMOPT} -f win32 -D__WIN32__ -o $@ $< endif -%.c: %.psr - ${PSR} -D${OS} $@ $< +%${OE}: %.psr + ${PSR} -D${OS} temppsr.c $< +ifneq (${ENV},msvc) + ${CC} ${COPT} ${CFLAGS} -o $@ -c temppsr.c +else + cl /Ox /G6 /c /EHsc /D__WIN32__ /Fo$@ temppsr.c +endif + ${DELETECOMMAND} temppsr.c ALL: zsnes ${DELETECOMMAND} version${OE} @@ -368,7 +374,6 @@ ${OBJFIX}: $< gcc -O3 -o $@ objfix.c endif ${PSR}: $< -cfgparse.c: $< ${PSR} cfgparse${OE}: $< clean: