diff options
Diffstat (limited to 'code/tools/asm')
-rw-r--r-- | code/tools/asm/Makefile | 11 |
1 files changed, 9 insertions, 2 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) |