Fixed cross compiling clean. Made GCC on MS OS happy.

This commit is contained in:
n-a-c-h
2005-01-12 13:52:07 +00:00
parent 095c34d11d
commit ee540d59c4
2 changed files with 10 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifdef __LINUX__
#include "gblhdr.h"
#else
#include <stdio.h>
#include <string.h>
#endif

View File

@@ -65,7 +65,7 @@ ifeq ($(PLATFORM),win32-cross)
endif
ifeq (${CROSS},no)
DELETECOMMAND = del
DELETECOMMAND=del
SLASH=\${BLAHBLAHBLAH}
endif
@@ -293,6 +293,7 @@ ${WINDIR}/winlink.o: ${WINDIR}/winlink.cpp ${WINDIR}/resource.h
${CPPC} -O0 ${CFLAGS} -masm=intel -o $@ -c ${WINDIR}/winlink.cpp
clean:
ifeq (${DELETECOMMAND},del)
${DELETECOMMAND} ${EXE}
${DELETECOMMAND} *.o
${DELETECOMMAND} ${CPUDIR}${SLASH}*.o
@@ -304,6 +305,13 @@ clean:
${DELETECOMMAND} ${DOSDIR}${SLASH}*.o
${DELETECOMMAND} ${WINDIR}${SLASH}*.o
${DELETECOMMAND} ${GUIDIR}${SLASH}*.o
endif
ifeq (${DELETECOMMAND},rm)
${DELETECOMMAND} ${EXE} *.o ${CPUDIR}${SLASH}*.o ${VIDEODIR}${SLASH}*.o ${CHIPDIR}${SLASH}*.o\
${EFFECTSDIR}${SLASH}*.o ${ZIPDIR}${SLASH}*.o ${JMADIR}${SLASH}*.o ${DOSDIR}${SLASH}*.o\
${WINDIR}${SLASH}*.o ${GUIDIR}${SLASH}*.o
endif
help:
@echo Please specify which platform to compile for with PLATFORM=platform_name