Fixed up platform protection.

This commit is contained in:
n-a-c-h
2005-02-08 03:18:41 +00:00
parent 299b21454d
commit 1a8e6884eb

View File

@@ -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