1999-12-29 13:58:47 +00:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# Quake general stuff
|
|
|
|
#
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-03-13 11:54:24 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
datadir = @datadir@
|
|
|
|
|
2000-03-07 23:13:00 +00:00
|
|
|
top_builddir = ..
|
2000-03-13 11:54:24 +00:00
|
|
|
PROJECT_DIR := ${top_srcdir}
|
2000-02-12 05:34:22 +00:00
|
|
|
BIN_PREFIX := qw-client
|
2000-03-06 13:26:42 +00:00
|
|
|
MODULE := qw_client
|
|
|
|
OBJ_PATTERN = $(BUILD_DIR)/common_lib/%.@OBJEXT@ $(BUILD_DIR)/%.@OBJEXT@
|
2000-01-27 17:06:02 +00:00
|
|
|
|
2000-03-07 23:13:00 +00:00
|
|
|
include $(top_builddir)/Rules.mk
|
1999-12-29 13:58:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# Client targets
|
|
|
|
#
|
|
|
|
|
|
|
|
COMMON_LIB=common_lib.a
|
|
|
|
|
|
|
|
ifeq ($(HAS_SVGA),yes)
|
|
|
|
SVGAQUAKE = $(BIN_PREFIX)-svga
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_GGI),yes)
|
|
|
|
GGIQUAKE = $(BIN_PREFIX)-ggi
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_SDL),yes)
|
|
|
|
SDLQUAKE = $(BIN_PREFIX)-sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_X11),yes)
|
|
|
|
X11QUAKE = $(BIN_PREFIX)-x11
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_MGL),yes)
|
|
|
|
MGLQUAKE = $(BIN_PREFIX)-mgl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_OGL),yes)
|
2000-02-13 09:06:11 +00:00
|
|
|
GLQUAKE =$(BIN_PREFIX)-glx
|
2000-02-12 05:34:22 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAS_TDFXGL),yes)
|
|
|
|
TDFXQUAKE= $(BIN_PREFIX)-3dfx
|
|
|
|
endif
|
2000-01-03 06:18:32 +00:00
|
|
|
|
1999-12-30 13:40:47 +00:00
|
|
|
RELEASE = @RELEASE@
|
|
|
|
ifeq ($(RELEASE),yes)
|
|
|
|
OPTFLAGS = @RELEASE_CFLAGS@
|
|
|
|
else
|
|
|
|
OPTFLAGS = -g
|
|
|
|
endif
|
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
soft_targets = $(SVGAQUAKE) $(GGIQUAKE) $(SDLQUAKE) $(X11QUAKE) $(MGLQUAKE)
|
|
|
|
gl_targets = $(GLQUAKE) $(TDFXQUAKE)
|
|
|
|
lib_targets = $(COMMON_LIB)
|
2000-03-15 01:09:48 +00:00
|
|
|
targets = $(soft_targets) $(gl_targets)
|
|
|
|
CLEAN_TARGETS = $(patsubst %,clean-%, $(lib_targets) $(targets))
|
|
|
|
.PHONY: $(lib_targets) $(targets) $(CLEAN_TARGETS)
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-03-15 01:09:48 +00:00
|
|
|
all: $(lib_targets) $(targets)
|
1999-12-29 13:58:47 +00:00
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# Source files
|
|
|
|
#
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-03-11 05:36:18 +00:00
|
|
|
ifeq ($(ASM_ARCH),i386)
|
1999-12-30 13:40:47 +00:00
|
|
|
# Source file the Intel archictecture only
|
2000-02-12 05:34:22 +00:00
|
|
|
CL_ADDITIONAL_GENERAL_SRC = sys_dosa.s math.s worlda.s
|
|
|
|
SWREND_SRC_PLAT = d_draw.s d_draw16.s d_parta.s d_polysa.s d_scana.s \
|
|
|
|
d_spr8.s d_varsa.s r_aclipa.s r_aliasa.s \
|
|
|
|
r_drawa.s r_edgea.s r_varsa.s surf16.s surf8.s
|
1999-12-30 13:40:47 +00:00
|
|
|
else
|
|
|
|
# Source files for non-Intel platforms
|
2000-02-12 05:34:22 +00:00
|
|
|
SWREND_SRC_PLAT = nonintel.c
|
1999-12-30 13:40:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# System specific source files
|
2000-01-05 19:10:52 +00:00
|
|
|
|
1999-12-31 02:10:33 +00:00
|
|
|
CD_AUDIO_SRC = cd_wrapper.c
|
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
SYS_SRC = sys_common.c @QW_CL_SYS_SRC@
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
# Networking source files
|
2000-01-05 19:10:52 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
QW_NET_SRC = @NET_SOURCE@ net_com.c mdfour.c
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
# Common source files
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
MISC_SRC = common.c crc.c cvar.c cmd.c mathlib.c register_check.c \
|
|
|
|
wad.c zone.c cvars.c qendian.c lib_replace.c quakefs.c \
|
|
|
|
quakeio.c qargs.c plugin.c
|
2000-03-04 03:06:46 +00:00
|
|
|
ifeq ($(GENERATIONS),yes)
|
|
|
|
MISC_SRC += unzip.c
|
|
|
|
endif
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
# GL renderer source
|
|
|
|
|
|
|
|
GL_REND_SRC = gl_screen.c gl_model.c gl_draw.c gl_mesh.c gl_refrag.c \
|
|
|
|
gl_rlight.c gl_rmain.c gl_rmisc.c gl_rsurf.c gl_warp.c \
|
|
|
|
nonintel.c gl_ngraph.c gl_view.c gl_rpart.c gl_cl_parse.c
|
|
|
|
|
|
|
|
# Software renderer source
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
SW_REND_SRC = screen.c $(SWREND_SRC_PLAT) draw.c \
|
|
|
|
d_edge.c d_fill.c d_init.c d_modech.c d_part.c d_polyse.c d_scan.c \
|
|
|
|
d_sky.c d_sprite.c d_surf.c d_vars.c d_zpoint.c r_aclip.c r_alias.c \
|
|
|
|
r_bsp.c r_draw.c r_edge.c r_efrag.c r_light.c r_main.c r_misc.c \
|
|
|
|
r_sky.c r_sprite.c r_surf.c r_vars.c sw_view.c sw_rpart.c sw_cl_parse.c
|
|
|
|
|
|
|
|
# Client source files
|
|
|
|
|
|
|
|
CL_SRC = cl_demo.c cl_input.c cl_main.c cl_parse.c cl_tent.c
|
|
|
|
QW_CL_SRC = cl_cam.c cl_ents.c cl_pred.c host.c world.c
|
|
|
|
CL_GUI_SRC= console.c sbar.c view.c keys.c menu.c
|
|
|
|
|
|
|
|
# Server source files
|
|
|
|
|
|
|
|
SRV_SRC = sv_main.c sv_user.c sv_move.c sv_phys.c
|
|
|
|
QW_SRV_SRC = sv_ccmds.c sv_ents.c sv_init.c sv_send.c sv_nchan.c world.c
|
|
|
|
SRV_PR_SRC = pr_cmds.c pr_edict.c pr_exec.c
|
|
|
|
|
|
|
|
|
|
|
|
QW_GENERAL_SRC = pmove.c pmovetst.c
|
|
|
|
|
|
|
|
# Source common to QW/UQuake
|
|
|
|
CL_COMMON_SRC = $(MISC_SRC) $(CL_GUI_SRC) $(CL_SRC) \
|
|
|
|
$(CL_ADDITIONAL_GENERAL_SRC) $(CD_AUDIO_SRC) r_part.c
|
2000-01-05 19:10:52 +00:00
|
|
|
|
1999-12-29 13:58:47 +00:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
#
|
|
|
|
# Directory specific stuff
|
|
|
|
#
|
2000-03-06 13:26:42 +00:00
|
|
|
CFLAGS += -DQUAKEWORLD
|
|
|
|
INCLUDES += -I$(QW_COMMON_DIR)
|
|
|
|
LDFLAGS += @SOUND_LIBS@
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
GENERAL_SRC = $(CL_COMMON_SRC) \
|
2000-03-04 16:43:53 +00:00
|
|
|
$(QW_CL_SRC) $(QW_NET_SRC) net_chan.c skin.c pcx.c\
|
2000-02-12 05:34:22 +00:00
|
|
|
$(SYS_SRC) $(QW_GENERAL_SRC)
|
1999-12-29 13:58:47 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
# FIXME: add dos/win specifc source
|
|
|
|
|
1999-12-30 13:40:47 +00:00
|
|
|
###########################################################################
|
|
|
|
#
|
2000-01-05 19:10:52 +00:00
|
|
|
# Specific target rules
|
1999-12-30 13:40:47 +00:00
|
|
|
#
|
|
|
|
|
2000-01-22 12:54:51 +00:00
|
|
|
# Lib Software targets
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_COMMON_LIB_OBJS = $(patsubst %,$(BUILD_DIR)/common_lib/%,$(addsuffix \
|
|
|
|
.@OBJEXT@, $(basename $(GENERAL_SRC) .c .s)))
|
2000-01-29 15:02:45 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_COMMON_LIB_DEPS = $(patsubst %,$(BUILD_DIR)/common_lib/%,$(addsuffix .d,\
|
|
|
|
$(basename $(GENERAL_SRC) .c .s)))
|
2000-01-22 12:54:51 +00:00
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
$(COMMON_LIB): $(BUILD_DIR)/common_lib.a
|
2000-01-22 12:54:51 +00:00
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
$(BUILD_DIR)/common_lib.a: $(ALL_COMMON_LIB_OBJS)
|
2000-02-12 05:34:22 +00:00
|
|
|
ar cru $@ $(ALL_COMMON_LIB_OBJS)
|
2000-01-29 23:18:26 +00:00
|
|
|
@RANLIB@ $@
|
2000-01-22 12:54:51 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
# X11 Software target
|
|
|
|
|
|
|
|
ifneq ($(X11QUAKE),)
|
|
|
|
|
|
|
|
ALL_X11_SRC = $(SW_REND_SRC) @X11_VID_SRC@\
|
2000-02-19 08:24:15 +00:00
|
|
|
model.c in_x11.c context_x11.c
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_X11_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(ALL_X11_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
X11_CFLAGS = -DX11 @X_CFLAGS@
|
2000-03-04 20:32:38 +00:00
|
|
|
X11_LDFLAGS = @X_LIBS@ -lX11 @X11_SHM_LIB@ @X_EXTRA_LIBS@ @DGA_LIBS@
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
# FIXME: This rule is pathological because of the seperate sunx driver,
|
2000-02-13 09:06:11 +00:00
|
|
|
# either merge it into vid_x11.c or make a seperate sun target. In either
|
2000-02-12 05:34:22 +00:00
|
|
|
# case, find the moro^wpeople responsible for this and other stupidities
|
|
|
|
# in Solaris and "educate" them.
|
|
|
|
$(BUILD_DIR)/$(addsuffix .@OBJEXT@,$(basename @X11_VID_SRC@ .c)):\
|
|
|
|
$(COMMON_DIR)/@X11_VID_SRC@
|
|
|
|
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
|
|
|
|
2000-02-29 00:00:51 +00:00
|
|
|
$(BUILD_DIR)/in_x11.@OBJEXT@: $(COMMON_DIR)/in_x11.c
|
|
|
|
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(BUILD_DIR)/context_x11.@OBJEXT@: $(COMMON_DIR)/context_x11.c
|
|
|
|
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
$(X11QUAKE): $(BUILD_DIR)/../$(X11QUAKE)
|
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(X11QUAKE): $(ALL_X11_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_X11_OBJS) $(X11_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(X11QUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# SVGALib software target
|
|
|
|
|
|
|
|
ifneq ($(SVGAQUAKE),)
|
|
|
|
ALL_SVGA_SRC = $(SW_REND_SRC) \
|
2000-02-19 08:44:02 +00:00
|
|
|
vid_svgalib.c d_copy.s model.c in_svgalib.c
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_SVGA_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(ALL_SVGA_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
SVGA_CFLAGS = @SVGA_CFLAGS@
|
|
|
|
SVGA_LDFLAGS = @SVGA_LIBS@
|
|
|
|
|
|
|
|
# Not sure why this -O is needed, but it is...
|
|
|
|
$(BUILD_DIR)/vid_svgalib.@OBJEXT@: $(COMMON_DIR)/vid_svgalib.c
|
|
|
|
$(CC) -O $(CFLAGS) $(SVGA_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(BUILD_DIR)/d_copy.@OBJEXT@: $(COMMON_DIR)/d_copy.s
|
|
|
|
$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
|
|
|
|
|
|
|
$(SVGAQUAKE): $(BUILD_DIR)/../$(SVGAQUAKE)
|
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(SVGAQUAKE): $(ALL_SVGA_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_SVGA_OBJS) $(SVGA_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(SVGAQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# GGI software target
|
|
|
|
|
|
|
|
ifneq ($(GGIQUAKE),)
|
|
|
|
|
|
|
|
# Map the list of source files into a list of object files
|
|
|
|
ALL_GGI_SRC = $(SW_REND_SRC) vid_ggi.c\
|
|
|
|
model.c
|
|
|
|
ALL_GGI_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(ALL_GGI_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
GGI_SRC = vid_ggi.c
|
|
|
|
GGI_CFLAGS = -DGGI @GGI_CFLAGS@
|
|
|
|
GGI_LDFLAGS = @GGI_LIBS@
|
|
|
|
|
|
|
|
$(BUILD_DIR)/vid_ggi.@OBJEXT@: $(COMMON_DIR)/vid_ggi.c
|
|
|
|
$(CC) $(CFLAGS) $(GGI_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(GGIQUAKE): $(BUILD_DIR)/../$(GGIQUAKE)
|
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(GGIQUAKE): $(ALL_GGI_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_GGI_OBJS) $(GGI_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(GGIQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# SDL software target
|
|
|
|
|
|
|
|
ifneq ($(SDLQUAKE),)
|
|
|
|
ALL_SDL_SRC = $(SW_REND_SRC) $(SDL_SRC) vid_sdl.c cd_sdl.c\
|
|
|
|
model.c
|
|
|
|
ALL_SDL_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(ALL_SDL_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
SDL_CFLAGS = @SDL_CFLAGS@ -DSDL
|
|
|
|
SDL_LDFLAGS = @SDL_LIBS@
|
|
|
|
|
|
|
|
$(BUILD_DIR)/vid_sdl.@OBJEXT@: $(COMMON_DIR)/vid_sdl.c
|
|
|
|
$(CC) $(CFLAGS) $(SDL_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(BUILD_DIR)/cd_sdl.@OBJEXT@: $(COMMON_DIR)/cd_sdl.c
|
|
|
|
$(CC) $(CFLAGS) $(SDL_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(SDLQUAKE): $(BUILD_DIR)/../$(SDLQUAKE)
|
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(SDLQUAKE): $(ALL_SDL_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_SDL_OBJS) $(SDL_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(SDLQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# MGL software target
|
|
|
|
|
|
|
|
ifneq ($(MGLQUAKE),)
|
|
|
|
|
|
|
|
# Map the list of source files into a list of object files
|
|
|
|
ALL_MGL_SRC = $(SW_REND_SRC) \
|
|
|
|
vid_win.c model.c
|
|
|
|
ALL_MGL_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(ALL_MGL_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
MGL_CFLAGS = -DMGL @MGL_CFLAGS@
|
|
|
|
MGL_LDFLAGS = @MGL_LIBS@ -lm
|
|
|
|
|
|
|
|
$(BUILD_DIR)/vid_mgl.@OBJEXT@: $(COMMON_DIR)/vid_mgl.c
|
|
|
|
$(CC) $(CFLAGS) $(MGL_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(MGLQUAKE): $(BUILD_DIR)/../$(MGLQUAKE)
|
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(MGLQUAKE): $(ALL_MGL_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_MGL_OBJS) $(MGL_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(MGLQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# X11 GL target
|
|
|
|
|
|
|
|
ifneq ($(GLQUAKE),)
|
|
|
|
|
2000-02-19 08:24:15 +00:00
|
|
|
GLX_GL_SRC = gl_vidglx.c dga_check.c in_x11.c context_x11.c
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_GL_SRC = $(GL_REND_SRC) $(GLX_GL_SRC)
|
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
GL_REND_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
2000-02-12 05:34:22 +00:00
|
|
|
$(basename $(GL_REND_SRC) .c .s)))
|
|
|
|
|
|
|
|
GLX_GL_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
|
|
|
$(basename $(GLX_GL_SRC) .c .s)))
|
2000-03-19 15:59:51 +00:00
|
|
|
|
2000-02-12 05:34:22 +00:00
|
|
|
ALL_GL_OBJS = $(GLX_GL_OBJS) $(GL_REND_OBJS) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
GL_CFLAGS = @OGL_CFLAGS@
|
2000-02-12 11:42:56 +00:00
|
|
|
GL_LDFLAGS = $(X11_LDFLAGS) @OGL_LIBS@ @DGA_LIBS@
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
$(BUILD_DIR)/gl_vidglx.@OBJEXT@: $(COMMON_DIR)/gl_vidglx.c
|
|
|
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
$(BUILD_DIR)/dga_check.@OBJEXT@: $(COMMON_DIR)/dga_check.c
|
|
|
|
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
$(GLQUAKE): $(BUILD_DIR)/../$(GLQUAKE)
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(GLQUAKE): $(ALL_GL_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_GL_OBJS) $(GL_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(GLQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# 3Dfx GL MCD target
|
|
|
|
|
|
|
|
ifneq ($(TDFXQUAKE),)
|
|
|
|
|
|
|
|
ALL_TDFX_SRC = $(GL_REND_SRC) \
|
2000-02-19 08:24:15 +00:00
|
|
|
gl_vidlinux_3dfx.c in_svgalib.c
|
2000-03-06 13:26:42 +00:00
|
|
|
ALL_TDFX_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
2000-02-12 05:34:22 +00:00
|
|
|
$(basename $(ALL_TDFX_SRC) .c .s))) \
|
|
|
|
$(BUILD_DIR)/common_lib.a $(TARGET_DIR)/sound_lib.a
|
|
|
|
|
|
|
|
TDFX_CFLAGS = @OGL_CFLAGS@ @GLIDE_CFLAGS@
|
|
|
|
TDFX_LDFLAGS = @SVGA_LIBS@ @TDFXGL_LIBS@
|
|
|
|
|
|
|
|
$(BUILD_DIR)/gl_vidlinux_3dfx.@OBJEXT@: $(COMMON_DIR)/gl_vidlinux_3dfx.c
|
|
|
|
$(CC) $(CFLAGS) $(TDFX_CFLAGS) -o $@ -c $<
|
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
$(TDFXQUAKE): $(BUILD_DIR)/../$(TDFXQUAKE)
|
2000-02-12 05:34:22 +00:00
|
|
|
|
|
|
|
$(BUILD_DIR)/../$(TDFXQUAKE): $(ALL_TDFX_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(ALL_TDFX_OBJS) $(TDFX_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
|
|
|
-o $(BUILD_DIR)/../$(TDFXQUAKE)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1999-12-30 13:40:47 +00:00
|
|
|
|
2000-01-03 06:18:32 +00:00
|
|
|
###########################################################################
|
|
|
|
#
|
2000-01-05 19:10:52 +00:00
|
|
|
# Misc targets
|
2000-01-03 06:18:32 +00:00
|
|
|
#
|
|
|
|
|
2000-01-05 19:10:52 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
2000-01-03 06:18:32 +00:00
|
|
|
|
2000-01-05 19:10:52 +00:00
|
|
|
$(CLEAN_TARGETS):
|
|
|
|
rm -f $(BUILD_DIR)/../$(subst clean-,,$@)
|
2000-01-04 23:38:36 +00:00
|
|
|
|
2000-03-06 13:26:42 +00:00
|
|
|
clean: $(CLEAN_TARGETS)
|
|
|
|
-rm -rf $(BUILD_DIR)/*
|
2000-01-03 08:03:01 +00:00
|
|
|
|
|
|
|
install: $(targets)
|
2000-01-08 21:35:03 +00:00
|
|
|
$(PROJECT_DIR)/mkinstalldirs $(DESTDIR)/$(bindir)
|
2000-03-23 23:04:48 +00:00
|
|
|
for i in x-dummy $(targets); do \
|
|
|
|
if test "$$i" != x-dummy; then \
|
|
|
|
$(PROJECT_DIR)/install-sh -m 755 $(TARGET_DIR)/$$i \
|
|
|
|
$(DESTDIR)/$(bindir)/$$i; \
|
|
|
|
fi \
|
2000-01-03 08:03:01 +00:00
|
|
|
done
|
1999-12-30 13:40:47 +00:00
|
|
|
|
|
|
|
check:
|
|
|
|
@echo check not implemented
|