* MinGW fixes to the tools Makefiles

This commit is contained in:
Tim Angus 2005-10-04 19:15:34 +00:00
parent e414f46c4d
commit 12b5f3bded
2 changed files with 17 additions and 3 deletions

View file

@ -1,5 +1,12 @@
# yeah, couldn't do more simple really # yeah, couldn't do more simple really
PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z)
ifeq ($(PLATFORM),mingw32)
BINEXT=.exe
else
BINEXT=
endif
CC=gcc CC=gcc
CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
@ -12,7 +19,7 @@ clean:
rm -f q3asm *~ *.o rm -f q3asm *~ *.o
install: default install: default
install -s -m 0755 q3asm ../ install -s -m 0755 q3asm$(BINEXT) ../
uninstall: uninstall:
-rm ../q3asm -rm ../q3asm$(BINEXT)

View file

@ -3,7 +3,14 @@ HOSTFILE=etc/linux.c
TEMPDIR=/tmp TEMPDIR=/tmp
A=.a A=.a
O=.o O=.o
E=
PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z)
ifeq ($(PLATFORM),mingw32)
E=.exe
else
E=
endif
CC=gcc CC=gcc
CFLAGS=-O2 -Wall -fno-strict-aliasing CFLAGS=-O2 -Wall -fno-strict-aliasing
LDFLAGS= LDFLAGS=