2005-09-24 04:48:20 +00:00
|
|
|
EXTRACFLAGS=-Wall -O2
|
|
|
|
CC=gcc $(EXTRACFLAGS)
|
2005-09-06 16:49:40 +00:00
|
|
|
STRIP=strip
|
|
|
|
|
|
|
|
STRIPFLAGS=--strip-unneeded --remove-section=.comment
|
|
|
|
|
2006-04-13 16:58:52 +00:00
|
|
|
OBJS = netchan.o parse.o qw.o source.o bsp.o rcon.o mdfour.o crc.o
|
2005-09-06 16:49:40 +00:00
|
|
|
|
2005-09-24 04:48:20 +00:00
|
|
|
qtv: $(OBJS) qtv.h
|
|
|
|
$(CC) $(CFLAGS) $(OBJS) -o $@.db -lm $(LDFLAGS)
|
2005-09-06 16:49:40 +00:00
|
|
|
$(STRIP) $(STRIPFLAGS) $@.db -o $@
|
|
|
|
|
2005-09-24 21:36:41 +00:00
|
|
|
qtv.exe:
|
|
|
|
$(MAKE) qtv CFLAGS=-mno-cygwin LDFLAGS="-lwsock32 -lwinmm"
|
|
|
|
mv qtv qtv.exe
|
|
|
|
|
2005-09-06 16:49:40 +00:00
|
|
|
clean:
|
|
|
|
rm -rf qtv qtv.db *.o
|