fteqw/fteqtv/Makefile
Mark Olsen c0a4a2b8fe One less WTF.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2807 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-11 15:28:44 +00:00

18 lines
441 B
Makefile

CFLAGS+=-Wall -O2
CC=gcc
STRIP=strip
STRIPFLAGS=--strip-unneeded --remove-section=.comment
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
qtv: $(OBJS) qtv.h
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $@.db -lm
$(STRIP) $(STRIPFLAGS) $@.db -o $@
qtv.exe: *.c *.h
$(MAKE) qtv CFLAGS=-mno-cygwin LDFLAGS="-lwsock32 -lwinmm"
mv qtv qtv.exe
clean:
rm -rf qtv qtv.exe qtv.db *.o