blob: 74b6d442bbef010223db6a7c624344993740fc8a (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#
# $FreeBSD$
#
# QuakeWorld/MVDSV Makefile for FreeBSD
#
# - now should build on non-x86
# - no longer requires gmake(1)
# - debug targets support axed out
# - couple of useful knobs added
#
# Created on Wednesday, May 21 2003 by Alexey Dokuchaev <danfe@regency.nsu.ru>
#
DO_CFLAGS = ${CFLAGS} -funsigned-char -I${LOCALBASE}/include -DSERVERONLY -Dstricmp=strcasecmp
.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
DO_CFLAGS += -Did386
.endif
.if defined(WITH_OPTIMIZED_CFLAGS)
DO_CFLAGS += -O9 -pipe -s -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
. if ${GCC_VER} == 2
DO_CFLAGS += -malign-loops=2 -malign-jumps=2 -malign-functions=2
. elif ${GCC_VER} == 3
DO_CFLAGS += -falign-loops=2 -falign-jumps=2 -falign-functions=2
. endif
.endif
########################################################################
## MVDSV
########################################################################
SV_OBJS = \
pr_cmds.o \
pr_edict.o \
pr_exec.o \
\
sv_ccmds.o \
sv_demo.o \
sv_ents.o \
sv_init.o \
sv_login.o \
sv_main.o \
sv_model.o \
sv_move.o \
sv_nchan.o \
sv_phys.o \
sv_send.o \
sv_sys_unix.o \
sv_user.o \
\
cmd.o \
common.o \
crc.o \
cvar.o \
mathlib.o \
mdfour.o \
net_chan.o \
net_udp.o \
pmove.o \
pmovetst.o \
sha1.o \
version.o \
world.o \
zone.o
.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
SV_AS_OBJS = \
math.o \
sys_x86.o \
worlda.o
.endif
SV_LIBS = -lm
########################################################################
## QWDTOOLS
########################################################################
QWDTOOLS_OBJS = \
qwdtools/dem_parse.o \
qwdtools/dem_send.o \
qwdtools/ini.o \
qwdtools/init.o \
qwdtools/main.o \
qwdtools/marge.o \
qwdtools/qwz.o \
qwdtools/sync.o \
qwdtools/tools.o
########################################################################
.c.o:
${CC} ${DO_CFLAGS} -I. -c $< -o $*.o
.s.o:
${CC} ${DO_CFLAGS} -DELF -x assembler-with-cpp -c $< -o $*.o
all: mvdsv qwdtools
mvdsv: ${SV_OBJS} ${SV_AS_OBJS}
${CC} ${CFLAGS} -o ../mvdsv ${SV_OBJS} ${SV_AS_OBJS} ${SV_LIBS}
qwdtools: ${QWDTOOLS_OBJS}
${CC} ${CFLAGS} -o ../qwdtools ${QWDTOOLS_OBJS} ${SV_LIBS}
clean:
-rm -f *.o *.core
|