From 1a8e6884eb510faffb23955afd9ce194ed5942bc Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Tue, 8 Feb 2005 03:18:41 +0000 Subject: [PATCH] Fixed up platform protection. --- zsnes/src/makefile.ms | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/zsnes/src/makefile.ms b/zsnes/src/makefile.ms index 8c577acc..bea00a93 100644 --- a/zsnes/src/makefile.ms +++ b/zsnes/src/makefile.ms @@ -32,6 +32,10 @@ # CPU=cpu-type optimize for a particular CPU, find a list of cpu types in the GCC manual + +ifneq ($(PLATFORM),) #end if is at the bottom of the file + + CHIPDIR=chips CPUDIR=cpu DOSDIR=dos @@ -61,10 +65,6 @@ DRESOBJ=${WINDIR}/zsnes.obj CROSS=no STRIP=-Ws -s -ifeq ($(PLATFORM),) -_foo: help -endif - ifeq ($(PLATFORM),dos) CC = gcc @@ -364,10 +364,6 @@ endif clean: -ifeq ($(PLATFORM),) -_foo: help -endif - ${DELETECOMMAND} ${EXE} ${TRUTH} ${DELETECOMMAND} *${OE} ${TRUTH} ${DELETECOMMAND} ${CPUDIR}${SLASH}*${OE} ${TRUTH} @@ -380,5 +376,7 @@ endif ${DELETECOMMAND} ${WINDIR}${SLASH}*${OE} ${TRUTH} ${DELETECOMMAND} ${GUIDIR}${SLASH}*${OE} ${TRUTH} +else #else no platform specified help: @echo Please specify which platform to compile/clean for with PLATFORM=platform_name +endif #endif on the PLATFORM being empty