2005-08-26 17:39:27 +00:00
|
|
|
# yeah, couldn't do more simple really
|
|
|
|
|
2005-10-04 19:15:34 +00:00
|
|
|
PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z)
|
|
|
|
ifeq ($(PLATFORM),mingw32)
|
|
|
|
BINEXT=.exe
|
|
|
|
else
|
|
|
|
BINEXT=
|
|
|
|
endif
|
|
|
|
|
2005-08-26 17:39:27 +00:00
|
|
|
CC=gcc
|
2005-10-04 01:21:34 +00:00
|
|
|
CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
|
2005-08-26 17:39:27 +00:00
|
|
|
|
|
|
|
default: q3asm
|
|
|
|
|
|
|
|
q3asm: q3asm.c cmdlib.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f q3asm *~ *.o
|
|
|
|
|
2005-10-04 18:34:21 +00:00
|
|
|
install: default
|
2005-10-04 19:15:34 +00:00
|
|
|
install -s -m 0755 q3asm$(BINEXT) ../
|
2005-10-04 18:34:21 +00:00
|
|
|
|
|
|
|
uninstall:
|
2005-10-04 19:15:34 +00:00
|
|
|
-rm ../q3asm$(BINEXT)
|