aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools/asm/Makefile
blob: a6202ae353d376c3c20daec983b2e7bf1405faa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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 -f ../q3asm$(BINEXT)