A version of the Quake 2 source tree that should be easier to compile and run on modern *nixes.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
cmake_minimum_required(VERSION 3.9)
|
|
|
|
project(quake2 C)
|
|
|
|
|
|
|
|
#set(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")
|
|
|
|
|
|
|
|
add_executable(quake2
|
|
|
|
../game_baseq2/m_flash.c
|
|
|
|
../game_baseq2/q_shared.c
|
|
|
|
|
|
|
|
client/cl_cin.c
|
|
|
|
client/cl_ents.c
|
|
|
|
client/cl_fx.c
|
|
|
|
client/cl_input.c
|
|
|
|
client/cl_inv.c
|
|
|
|
client/cl_main.c
|
|
|
|
client/cl_newfx.c
|
|
|
|
client/cl_parse.c
|
|
|
|
client/cl_pred.c
|
|
|
|
client/cl_tent.c
|
|
|
|
client/cl_scrn.c
|
|
|
|
client/cl_view.c
|
|
|
|
client/console.c
|
|
|
|
client/keys.c
|
|
|
|
client/menu.c
|
|
|
|
client/qmenu.c
|
|
|
|
client/snd_dma.c
|
|
|
|
client/snd_mem.c
|
|
|
|
client/snd_mix.c
|
|
|
|
|
|
|
|
linux/cd_linux.c
|
|
|
|
linux/glob.c
|
|
|
|
linux/net_udp.c
|
|
|
|
linux/q_shlinux.c
|
|
|
|
linux/snd_linux.c
|
|
|
|
#linux/snd_mixa.s
|
|
|
|
linux/sys_linux.c
|
|
|
|
linux/vid_menu.c
|
|
|
|
linux/vid_so.c
|
|
|
|
|
|
|
|
qcommon/cmd.c
|
|
|
|
qcommon/cmodel.c
|
|
|
|
qcommon/common.c
|
|
|
|
qcommon/crc.c
|
|
|
|
qcommon/cvar.c
|
|
|
|
qcommon/files.c
|
|
|
|
qcommon/md4.c
|
|
|
|
qcommon/net_chan.c
|
|
|
|
qcommon/pmove.c
|
|
|
|
|
|
|
|
server/sv_ccmds.c
|
|
|
|
server/sv_ents.c
|
|
|
|
server/sv_game.c
|
|
|
|
server/sv_init.c
|
|
|
|
server/sv_main.c
|
|
|
|
server/sv_send.c
|
|
|
|
server/sv_user.c
|
|
|
|
server/sv_world.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(quake2 dl m)
|