CLIENT_C_FILES := \
	Ctrl \
	Ctrl_EditBox \
	Ctrl_PageViewer \
	Ctrl_ScrollBar \
	Ctrl_Tab \
	EX_FileList \
	EX_browser \
	EX_browser_net \
	EX_browser_pathfind \
	EX_browser_ping \
	EX_browser_qtvlist \
	EX_browser_sources \
	ez_controls \
	ez_scrollbar \
	ez_scrollpane \
	ez_label \
	ez_slider \
	ez_button \
	ez_window \
	auth \
	cl_cam \
	cl_cmd \
	cl_demo \
	cl_nqdemo \
	cl_ents \
	cl_input \
	cl_main \
	cl_parse \
	cl_pred \
	cl_screen \
	cl_slist \
	cl_tcl \
	cl_tent \
	cl_view \
	common_draw \
	console \
	config_manager \
	demo_controls \
	document_rendering \
	fchecks \
	fmod \
	fragstats \
	help \
	help_files \
	hud \
	hud_common \
	hud_editor \
	ignore \
	image \
	irc \
	keys \
	logging \
	match_tools \
	menu \
	menu_demo \
	menu_ingame \
	menu_mp3player \
	menu_multiplayer \
	menu_options \
	menu_proxy \
	modules \
	movie \
	mp3_player \
	mp3_audacious \
	mp3_xmms \
	mp3_xmms2 \
	mp3_mpd \
	mp3_winamp \
	mvd_autotrack \
	mvd_utils \
	mvd_xmlstats \
	parser \
	plugin \
	qtv \
	r_part \
	rulesets \
	sbar \
	settings_page \
	sha1 \
	skin \
	snd_dma \
	snd_mem \
	snd_mix \
	snd_ov \
	stats_grid \
	teamplay \
	tp_msgs \
	tp_triggers \
	textencoding \
	utils \
	vx_tracker \
	wad \
	xsd \
	xsd_command \
	xsd_document \
	xsd_variable 

SERVER_C_FILES := \
	pmove \
	pmovetst \
	pr_cmds \
	pr_edict \
	pr_exec \
	pr2_cmds \
	pr2_edict \
	pr2_exec \
	pr2_vm \
	sv_ccmds \
	sv_ents \
	sv_init \
	sv_main \
	sv_master \
	sv_move \
	sv_nchan \
	sv_phys \
	sv_save \
	sv_send \
	sv_user \
	sv_world \
	sv_demo \
	sv_demo_misc \
	sv_demo_qtv \
	sv_login \
	sv_mod_frags

COMMON_C_FILES := \
	cmodel \
	cmd \
	com_msg \
	common \
	crc \
	cvar \
	fs \
	vfs_os \
	vfs_pak \
	vfs_zip \
	vfs_tcp \
	vfs_gzip \
	vfs_doomwad \
	vfs_mmap \
	vfs_tar \
	hash \
	host \
	mathlib \
	md4 \
	net \
	net_chan \
	q_shared \
	version \
	zone \
	zone2

GL_C_FILES := \
	collision \
	gl_draw \
	gl_bloom \
	gl_md3 \
	gl_mesh \
	gl_model \
	gl_ngraph \
	gl_refrag \
	gl_rlight \
	gl_rmain \
	gl_rmisc \
	gl_rpart \
	gl_rsurf \
	gl_texture \
	gl_warp \
	vx_camera \
	vx_coronas \
	vx_motiontrail \
	vx_stuff \
	vx_vertexlights \
	vid_common_gl 

SW_C_FILES := \
	d_edge \
	d_fill \
	d_init \
	d_modech \
	d_polyse \
	d_scan \
	d_sky \
	d_sprite \
	d_surf \
	d_vars \
	d_zpoint \
	r_aclip \
	r_alias \
	r_bsp \
	r_draw \
	r_edge \
	r_efrag \
	r_light \
	r_main \
	r_misc \
	r_model \
	r_rast \
	r_sky \
	r_sprite \
	r_surf \
	r_vars \

LINUX_C_FILES := \
	cd_linux \
	in_linux \
	keymap_x11 \
	localtime_linux \
	mumble \
	snd_alsa \
	snd_linux \
	snd_oss \
	sys_linux

GLX_C_FILES := $(COMMON_C_FILES) $(CLIENT_C_FILES) $(SERVER_C_FILES) $(GL_C_FILES) $(LINUX_C_FILES) \
	linux_glimp \
	tr_init \
	linux_signals

X11_C_FILES := $(COMMON_C_FILES) $(CLIENT_C_FILES) $(SERVER_C_FILES) $(SW_C_FILES) $(LINUX_C_FILES) \
	vid_x11

SVGA_C_FILES := $(COMMON_C_FILES) $(CLIENT_C_FILES) $(SERVER_C_FILES) $(SW_C_FILES) $(LINUX_C_FILES) \
	vid_svgalib

MAC_C_FILES := $(COMMON_C_FILES) $(CLIENT_C_FILES) $(SERVER_C_FILES) $(GL_C_FILES) \
	CarbonSndPlayDB \
	cd_null \
	in_mac \
	localtime_linux \
	mac_prefs \
	snd_mac \
	sys_mac \
	vid_mac

ifeq ($(ARCH),x86)
COMMON_S_FILES := \
	cl_math \
	math \
	snd_mixa \
	sys_x86 \
	worlda

SW_S_FILES := \
	d_copy \
	d_draw \
	d_draw16 \
	d_parta \
	d_polysa \
	d_scana \
	d_spr8 \
	d_varsa \
	r_aclipa \
	r_aliasa \
	r_drawa \
	r_edgea \
	r_varsa \
	surf8

GL_S_FILES :=
endif

GLX_S_FILES := $(COMMON_S_FILES) $(GL_S_FILES)
X11_S_FILES := $(COMMON_S_FILES) $(SW_S_FILES)
SVGA_S_FILES := $(COMMON_S_FILES) $(SW_S_FILES)
MAC_S_FILES :=
