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-09-17 01:27:32 +00:00
|
|
|
OBJS = netchan.o parse.o qw.o source.o bsp.o rcon.o mdfour.o crc.o control.o forward.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
|