quake2forge/src/Makefile.am

119 lines
2.5 KiB
Text
Raw Normal View History

# $Id$
# Process this file with automake to create Makefile.in
SUBDIRS = .
bin_PROGRAMS = quake2 ref_glx.so ref_softx.so
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 \
cl_newfx.c console.c keys.c menu.c qmenu.c \
\
snd_dma.c snd_mix.c snd_mem.c \
\
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 \
sv_send.c sv_user.c sv_world.c \
\
cd.c snd.c \
\
q_shared.c pmove.c \
\
m_flash.c \
\
#snd_mixa.S
REF_GL_COMMON = q_sh.c q_shared.c glob.c \
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
# GLX
ref_glx_so_SOURCES = $(REF_GL_COMMON) gl_glx.c
# 3dFX
#ref_fxgl_so_SOURCES = $(REF_GL_COMMON) rw_in_svgalib.c gl_fxmesa.c
# SDL
#ref_sdlgl_so_SOURCES = $(REF_GL_COMMON) rw_sdl.c
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
#ref_soft_so_SOURCES = $(REF_SOFT_COMMON) rw_svgalib.c rw_in_svgalib.c d_copy.S
# X11
ref_softx_so_SOURCES = $(REF_SOFT_COMMON) rw_x11.c
# SDL
#ref_softsdl_so_SOURCES = $(REF_SOFT_COMMON) rw_sdl.c
AM_CFLAGS = -Wall -Werror -pipe
2002-04-06 05:31:01 +00:00
AM_CPPFLAGS = -I../game
quake2_LDFLAGS = -lm -ldl -lpthread
ref_glx_so_CFLAGS = -fPIC -I/usr/X11R6/include
ref_glx_so_LDFLAGS = -shared -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm
#ref_fxgl_so_CFLAGS = -fPIC -I/usr/X11R6/include
#ref_fxgl_so_LDFLAGS = -shared -L/usr/local/glide/lib -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lvga
#ref_sdlgl_so_CFLAGS = -fPIC $(shell sdl-config --cflags) -DOPENGL
#ref_sdlgl_so_LDFLAGS = -shared $(shell sdl-config --libs)
#ref_soft_so_CFLAGS = -fPIC
#ref_soft_so_LDFLAGS = -shared -lvga
ref_softx_so_CFLAGS = -fPIC -I/usr/X11R6/include
ref_softx_so_LDFLAGS = -shared -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm
#ref_softsdl_so_CFLAGS = -fPIC $(shell sdl-config --cflags)
#ref_softsdl_so_LDFLAGS = -shared $(shell sdl-config --libs)