2005-08-26 17:39:27 +00:00
|
|
|
# yeah, couldn't do more simple really
|
|
|
|
|
2005-10-04 19:15:34 +00:00
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
BINEXT=.exe
|
|
|
|
else
|
|
|
|
BINEXT=
|
|
|
|
endif
|
|
|
|
|
2006-04-23 20:59:06 +00:00
|
|
|
ifeq ($(PLATFORM),sunos)
|
2005-10-29 22:05:20 +00:00
|
|
|
INSTALL=ginstall
|
|
|
|
else
|
|
|
|
INSTALL=install
|
|
|
|
endif
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
CC=gcc
|
2005-10-05 17:59:10 +00:00
|
|
|
Q3ASM_CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2005-11-26 07:46:21 +00:00
|
|
|
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
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
default: q3asm
|
|
|
|
|
|
|
|
q3asm: q3asm.c cmdlib.c
|
2005-10-05 17:59:10 +00:00
|
|
|
$(CC) $(Q3ASM_CFLAGS) -o $@ $^
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f q3asm *~ *.o
|
|
|
|
|
2005-10-04 18:34:21 +00:00
|
|
|
install: default
|
2005-10-29 22:05:20 +00:00
|
|
|
$(INSTALL) -s -m 0755 q3asm$(BINEXT) ../
|
2005-10-04 18:34:21 +00:00
|
|
|
|
|
|
|
uninstall:
|
2005-10-26 22:59:30 +00:00
|
|
|
rm -f ../q3asm$(BINEXT)
|