aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools/lcc/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/tools/lcc/makefile')
-rw-r--r--code/tools/lcc/makefile9
1 files changed, 8 insertions, 1 deletions
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=