ioef/code/tools/asm/Makefile
Tim Angus 490c84d907 * Applied q3asm-turbo patches from http://www.icculus.org/~phaethon/q3/q3asm-turbo/q3asm-turbo.html
* Added -m option to q3asm to write a map file (which is now disabled by default)
* q3asm now returns an error code on failure
2005-10-05 17:59:10 +00:00

25 lines
405 B
Makefile

# 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
Q3ASM_CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
default: q3asm
q3asm: q3asm.c cmdlib.c
$(CC) $(Q3ASM_CFLAGS) -o $@ $^
clean:
rm -f q3asm *~ *.o
install: default
install -s -m 0755 q3asm$(BINEXT) ../
uninstall:
-rm ../q3asm$(BINEXT)