aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 19:15:34 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 19:15:34 +0000
commit7c862eb6a2ee070344982adf321607e2ba0508a9 (patch)
tree8a2ddb6703d2d963d98795ded1ba785d2447fe6f
parent5406eab4f3e101162b2d8c9ef4e9ea66333e2462 (diff)
downloadioquake3-aero-7c862eb6a2ee070344982adf321607e2ba0508a9.tar.gz
ioquake3-aero-7c862eb6a2ee070344982adf321607e2ba0508a9.zip
* MinGW fixes to the tools Makefiles
git-svn-id: svn://svn.icculus.org/quake3/trunk@137 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/tools/asm/Makefile11
-rw-r--r--code/tools/lcc/makefile9
2 files changed, 17 insertions, 3 deletions
diff --git a/code/tools/asm/Makefile b/code/tools/asm/Makefile
index 67bfbd4..ec314f1 100644
--- a/code/tools/asm/Makefile
+++ b/code/tools/asm/Makefile
@@ -1,5 +1,12 @@
# 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
CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
@@ -12,7 +19,7 @@ clean:
rm -f q3asm *~ *.o
install: default
- install -s -m 0755 q3asm ../
+ install -s -m 0755 q3asm$(BINEXT) ../
uninstall:
- -rm ../q3asm
+ -rm ../q3asm$(BINEXT)
diff --git a/code/tools/lcc/makefile b/code/tools/lcc/makefile
index 178e86c..1c29f32 100644
--- a/code/tools/lcc/makefile
+++ b/code/tools/lcc/makefile
@@ -3,7 +3,14 @@ HOSTFILE=etc/linux.c
TEMPDIR=/tmp
A=.a
O=.o
-E=
+
+PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z)
+ifeq ($(PLATFORM),mingw32)
+ E=.exe
+else
+ E=
+endif
+
CC=gcc
CFLAGS=-O2 -Wall -fno-strict-aliasing
LDFLAGS=