2002-04-02 06:23:02 +00:00
|
|
|
# $Id$
|
|
|
|
|
2002-04-06 06:30:19 +00:00
|
|
|
# swap comments to build the modpacks
|
2002-04-08 05:42:08 +00:00
|
|
|
SUBDIRS = . baseq2 ctf
|
|
|
|
#SUBDIRS = . baseq2 ctf xatrix rogue
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-07 01:07:20 +00:00
|
|
|
bin_PROGRAMS = quake2 \
|
|
|
|
ref_soft.so ref_softx.so ref_softsdl.so \
|
|
|
|
ref_glx.so ref_sdlgl.so
|
2002-04-08 05:09:20 +00:00
|
|
|
# ref_gl.so
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-02 06:23:02 +00:00
|
|
|
quake2_SOURCES = main.c q_sh.c vid_menu.c vid_so.c glob.c net_udp.c \
|
|
|
|
\
|
|
|
|
cl_cin.c cl_ents.c cl_fx.c cl_input.c cl_inv.c \
|
|
|
|
cl_main.c cl_parse.c cl_pred.c cl_tent.c cl_scrn.c cl_view.c \
|
2002-04-02 08:14:08 +00:00
|
|
|
cl_newfx.c console.c keys.c menu.c qmenu.c \
|
|
|
|
\
|
|
|
|
snd_dma.c snd_mix.c snd_mem.c \
|
2002-04-02 06:23:02 +00:00
|
|
|
\
|
|
|
|
checksum.c cmd.c cmodel.c common.c crc.c cvar.c files.c \
|
|
|
|
mdfour.c net_chan.c \
|
|
|
|
\
|
|
|
|
sv_ccmds.c sv_ents.c sv_game.c sv_init.c sv_main.c \
|
2002-04-02 08:14:08 +00:00
|
|
|
sv_send.c sv_user.c sv_world.c \
|
|
|
|
\
|
|
|
|
cd.c snd.c \
|
2002-04-02 06:23:02 +00:00
|
|
|
\
|
|
|
|
q_shared.c pmove.c \
|
|
|
|
\
|
2002-04-02 08:14:08 +00:00
|
|
|
m_flash.c \
|
|
|
|
\
|
|
|
|
#snd_mixa.S
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-06 05:03:53 +00:00
|
|
|
REF_GL_COMMON = q_sh.c q_shared.c glob.c \
|
2002-04-05 00:24:29 +00:00
|
|
|
qgl.c \
|
|
|
|
\
|
|
|
|
gl_draw.c \
|
|
|
|
gl_image.c \
|
|
|
|
gl_light.c \
|
|
|
|
gl_mesh.c \
|
|
|
|
gl_model.c \
|
|
|
|
gl_rmain.c \
|
|
|
|
gl_rmisc.c \
|
|
|
|
gl_rsurf.c \
|
|
|
|
gl_warp.c
|
|
|
|
|
2002-04-06 05:03:53 +00:00
|
|
|
# GLX
|
|
|
|
ref_glx_so_SOURCES = $(REF_GL_COMMON) gl_glx.c
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-06 05:03:53 +00:00
|
|
|
# 3dFX
|
2002-04-08 04:57:31 +00:00
|
|
|
#ref_gl_so_SOURCES = $(REF_GL_COMMON) rw_in_svgalib.c gl_fxmesa.c
|
2002-04-05 00:24:29 +00:00
|
|
|
|
2002-04-06 05:03:53 +00:00
|
|
|
# SDL
|
2002-04-07 01:07:20 +00:00
|
|
|
ref_sdlgl_so_SOURCES = $(REF_GL_COMMON) rw_sdl.c
|
2002-04-06 05:03:53 +00:00
|
|
|
|
|
|
|
REF_SOFT_COMMON = \
|
|
|
|
r_aclip.c \
|
|
|
|
r_alias.c \
|
|
|
|
r_bsp.c \
|
|
|
|
r_draw.c \
|
|
|
|
r_edge.c \
|
|
|
|
r_image.c \
|
|
|
|
r_light.c \
|
|
|
|
r_main.c \
|
|
|
|
r_misc.c \
|
|
|
|
r_model.c \
|
|
|
|
r_part.c \
|
|
|
|
r_poly.c \
|
|
|
|
r_polyse.c \
|
|
|
|
r_rast.c \
|
|
|
|
r_scan.c \
|
|
|
|
r_sprite.c \
|
|
|
|
r_surf.c \
|
|
|
|
q_shared.c \
|
|
|
|
q_sh.c \
|
|
|
|
glob.c
|
|
|
|
|
|
|
|
REF_SOFT_ASM = \
|
|
|
|
r_aclipa.S \
|
|
|
|
r_draw16.S \
|
|
|
|
r_drawa.S \
|
|
|
|
r_edgea.S \
|
|
|
|
r_scana.S \
|
|
|
|
r_spr8.S\
|
|
|
|
r_surf8.S \
|
|
|
|
math.S \
|
|
|
|
d_polysa.S \
|
|
|
|
r_varsa.S \
|
|
|
|
sys_dosa.S
|
|
|
|
|
|
|
|
# SVGAlib
|
2002-04-08 04:57:31 +00:00
|
|
|
ref_soft_so_SOURCES = $(REF_SOFT_COMMON) $(REF_SOFT_ASM) rw_svgalib.c rw_in_svgalib.c d_copy.S
|
2002-04-06 05:03:53 +00:00
|
|
|
|
|
|
|
# X11
|
2002-04-08 04:57:31 +00:00
|
|
|
ref_softx_so_SOURCES = $(REF_SOFT_COMMON) $(REF_SOFT_ASM) rw_x11.c
|
2002-04-06 05:03:53 +00:00
|
|
|
|
|
|
|
# SDL
|
2002-04-08 04:57:31 +00:00
|
|
|
ref_softsdl_so_SOURCES = $(REF_SOFT_COMMON) $(REF_SOFT_ASM) rw_sdl.c
|
2002-04-06 05:03:53 +00:00
|
|
|
|
2002-04-08 04:57:31 +00:00
|
|
|
AM_CFLAGS = -Wall -Werror -pipe -I/usr/X11R6/include $(shell sdl-config --cflags) -DOPENGL -fPIC
|
2002-04-05 00:45:27 +00:00
|
|
|
|
2002-04-06 05:56:23 +00:00
|
|
|
quake2_LDFLAGS = -lm -ldl -lpthread
|
|
|
|
|
2002-04-08 05:42:08 +00:00
|
|
|
ref_glx_so_LDFLAGS = -shared
|
|
|
|
ref_glx_so_LDADD = -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lGL
|
2002-04-06 05:03:53 +00:00
|
|
|
|
2002-04-08 04:57:31 +00:00
|
|
|
#ref_gl_so_LDFLAGS = -shared -L/usr/local/glide/lib -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lvga
|
2002-04-08 05:42:08 +00:00
|
|
|
#ref_gl_so_LDFADD = -L/usr/local/glide/lib -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lvga
|
2002-04-06 05:03:53 +00:00
|
|
|
|
2002-04-08 05:42:08 +00:00
|
|
|
sdl_flags = @SDL_FLAGS@
|
2002-04-06 05:03:53 +00:00
|
|
|
|
2002-04-08 05:42:08 +00:00
|
|
|
ref_sdlgl_so_LDFLAGS = -shared
|
|
|
|
ref_sdlgl_so_LDADD = $(sdl_flags)
|
2002-04-05 00:45:27 +00:00
|
|
|
|
2002-04-08 05:42:08 +00:00
|
|
|
ref_soft_so_LDFLAGS = -shared
|
|
|
|
ref_soft_so_LDADD = -lvga
|
2002-04-05 00:45:27 +00:00
|
|
|
|
2002-04-08 05:42:08 +00:00
|
|
|
ref_softx_so_LDFLAGS = -shared
|
|
|
|
ref_softx_so_LDADD = -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm
|
|
|
|
|
|
|
|
ref_softsdl_so_LDFLAGS = -shared
|
|
|
|
ref_softsdl_so_LDADD = $(sdl_flags)
|