-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
27 lines (21 loc) · 993 Bytes
/
Makefile
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
26
27
EXTRACFLAGS=-Wall -O2
CC=gcc $(EXTRACFLAGS)
STRIP=strip
ifdef CONFIG_WINDOWS
LDFLAGS=-Lmingw32-libs/lib -lwsock32 -lwinmm
CC=x86_64-w64-mingw32-gcc
STRIP=x86_64-w64-mingw32-strip
CFLAGS=-g0 -D_DEBUG -D_WIN32_WINNT=0x0501 -D__USE_MINGW_ANSI_STDIO -Imingw32-libs/include -Wall -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-strict-aliasing -MMD ${EXTRACFLAGS}
endif
STRIPFLAGS=--strip-unneeded --remove-section=.comment
OBJS = src/cmd.o src/crc.o src/cvar.o src/forward.o src/forward_pending.o src/info.o src/main.o src/mdfour.o \
src/msg.o src/net_utils.o src/parse.o src/qw.o src/source.o src/source_cmds.o src/sys.o src/build.o src/token.o src/httpsv.o src/httpsv_generate.o \
src/cl_cmds.o src/fs.o src/ban.o src/udp.o src/sha3.o
qtv: $(OBJS) src/qtv.h src/qconst.h
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o [email protected] -lm
$(STRIP) $(STRIPFLAGS) [email protected] -o [email protected]
qtv.exe: *.c *.h
$(MAKE) qtv
mv qtv.bin qtv.exe
clean:
rm -rf qtv.bin qtv.exe qtv.db *.o