diff options
author | Tim Angus <tim@ngus.net> | 2005-12-10 02:56:06 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-12-10 02:56:06 +0000 |
commit | 08446c16acbbb9a9d12fccb21e27cfa29d076e77 (patch) | |
tree | 1dc6a6fd6c9baa4a56e01abb84601368b5de80a1 /ioq3-r437/src/tools/asm/Makefile | |
parent | 7ba4af6168b726759d45b8d9d95dbebe26aa3186 (diff) |
* Branch upstream ioq3-r437 into trunk
Diffstat (limited to 'ioq3-r437/src/tools/asm/Makefile')
-rw-r--r-- | ioq3-r437/src/tools/asm/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ioq3-r437/src/tools/asm/Makefile b/ioq3-r437/src/tools/asm/Makefile new file mode 100644 index 00000000..0d64f14d --- /dev/null +++ b/ioq3-r437/src/tools/asm/Makefile @@ -0,0 +1,44 @@ +# 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 + +ifeq ($(PLATFORM),SunOS) + INSTALL=ginstall +else + INSTALL=install +endif + +CC=gcc +Q3ASM_CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing + +ifeq ($(PLATFORM),darwin) + LCC_CFLAGS += -DMACOS_X=1 +endif + +ifndef USE_CCACHE + USE_CCACHE=0 +endif + +ifeq ($(USE_CCACHE),1) + CC := ccache $(CC) + CXX := ccache $(CXX) +endif + +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 -f ../q3asm$(BINEXT) |