r137 - in trunk/code/tools: asm lcc
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Oct 4 15:15:34 EDT 2005
Author: tma
Date: 2005-10-04 15:15:34 -0400 (Tue, 04 Oct 2005)
New Revision: 137
Modified:
trunk/code/tools/asm/Makefile
trunk/code/tools/lcc/makefile
Log:
* MinGW fixes to the tools Makefiles
Modified: trunk/code/tools/asm/Makefile
===================================================================
--- trunk/code/tools/asm/Makefile 2005-10-04 18:34:21 UTC (rev 136)
+++ trunk/code/tools/asm/Makefile 2005-10-04 19:15:34 UTC (rev 137)
@@ -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 @@
rm -f q3asm *~ *.o
install: default
- install -s -m 0755 q3asm ../
+ install -s -m 0755 q3asm$(BINEXT) ../
uninstall:
- -rm ../q3asm
+ -rm ../q3asm$(BINEXT)
Modified: trunk/code/tools/lcc/makefile
===================================================================
--- trunk/code/tools/lcc/makefile 2005-10-04 18:34:21 UTC (rev 136)
+++ trunk/code/tools/lcc/makefile 2005-10-04 19:15:34 UTC (rev 137)
@@ -3,7 +3,14 @@
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=
More information about the quake3-commits
mailing list