2007-12-11 15:28:44 +00:00
|
|
|
CFLAGS+=-Wall -O2
|
|
|
|
CC=gcc
|
2005-09-06 16:49:40 +00:00
|
|
|
STRIP=strip
|
|
|
|
|
|
|
|
STRIPFLAGS=--strip-unneeded --remove-section=.comment
|
|
|
|
|
2007-07-23 10:53:59 +00:00
|
|
|
OBJS = netchan.o parse.o msg.o qw.o source.o bsp.o rcon.o mdfour.o crc.o control.o forward.o pmove.o httpsv.o
|
2005-09-06 16:49:40 +00:00
|
|
|
|
2005-09-24 04:48:20 +00:00
|
|
|
qtv: $(OBJS) qtv.h
|
2006-09-17 01:27:32 +00:00
|
|
|
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $@.db -lm
|
2005-09-06 16:49:40 +00:00
|
|
|
$(STRIP) $(STRIPFLAGS) $@.db -o $@
|
|
|
|
|
2006-09-17 01:27:32 +00:00
|
|
|
qtv.exe: *.c *.h
|
2005-09-24 21:36:41 +00:00
|
|
|
$(MAKE) qtv CFLAGS=-mno-cygwin LDFLAGS="-lwsock32 -lwinmm"
|
|
|
|
mv qtv qtv.exe
|
|
|
|
|
2005-09-06 16:49:40 +00:00
|
|
|
clean:
|
2006-09-17 01:27:32 +00:00
|
|
|
rm -rf qtv qtv.exe qtv.db *.o
|