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