1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/games/mvdsv/files/Makefile
Kirill Ponomarev ebfc367b0c - Update to version 0.1722b
- Port is not FORBIDDEN anymore

PR:		61146
Submitted by:	maintainer
2004-01-09 22:29:38 +00:00

79 lines
1.4 KiB
Makefile

#
# $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 ${MACHINE_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
.endif
########################################################################
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 \
version.o \
world.o \
zone.o
.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
SV_AS_OBJS = \
math.o \
sys_x86.o \
worlda.o
.endif
SV_LIBS = -lm
.c.o:
${CC} ${DO_CFLAGS} -c $< -o $*.o
.s.o:
${CC} ${DO_CFLAGS} -DELF -x assembler-with-cpp -c $< -o $*.o
all: ${SV_OBJS} ${SV_AS_OBJS}
${CC} ${CFLAGS} -o mvdsv ${SV_OBJS} ${SV_AS_OBJS} ${SV_LIBS}
clean:
-rm -f *.o *.core