shithub: choc

ref: e13972ba77d29e118adff0c1cd0807f134a6bde8
dir: /src/mkfile/

View raw version
</$objtype/mkfile
CFLAGS=-Fpw -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -I ../textscreen/ -I../opl -I../pcsound -D__${objtype}__ -p -D__plan9_keep_main__ -DPROGRAM_PREFIX="9" -DPACKAGE_STRING="" -DPACKAGE_NAME="9" -DPACKAGE_TARNAME="9.tar"

TARG=\
	doom\
	heretic\
	hexen\

HFILES=\
	i_system.h\
	m_argv.h\
	m_misc.h\

CORE=\
	i_main.$O\
	i_system.$O\
	m_argv.$O\
	m_misc.$O\

GAME=\
	aes_prng.$O \
	d_event.$O \
	d_iwad.$O \
	d_loop.$O \
	d_mode.$O \
	deh_str.$O \
	gusconf.$O \
	i_cdmus.$O \
	i_endoom.$O \
	i_glob.$O \
#	i_input.$O \
#	i_joystick.$O \
#	i_musicpack.$O \
#	i_oplmusic.$O \
#	i_pcsound.$O \
#	i_sdlmusic.$O \
#	i_sdlsound.$O \
#	i_sound.$O \
#	i_timer.$O \
#	i_video.$O \
#	i_videohr.$O \
	i_winmusic.$O \
	midifallback.$O \
	midifile.$O \
	mus2mid.$O \
	m_bbox.$O \
	m_cheat.$O \
	m_config.$O \
	m_controls.$O \
	m_fixed.$O \
	net_client.$O \
	net_common.$O \
	net_dedicated.$O \
	net_gui.$O \
	net_io.$O \
	net_loop.$O \
	net_packet.$O \
	net_petname.$O \
	net_query.$O \
#	net_sdl.$O \
	net_server.$O \
	net_structrw.$O \
	sha1.$O \
	memio.$O \
	tables.$O \
	v_diskicon.$O \
	v_video.$O \
	w_checksum.$O \
	w_main.$O \
	w_wad.$O \
	w_file.$O \
	w_file_stdc.$O \
	w_file_posix.$O \
	w_file_win32.$O \
	w_merge.$O \

def: $O.doom

</sys/src/cmd/mkmany

$O.doom: $CORE $GAME doom/libdoom.a $LIB
	$LD $LDFLAGS -o $target $prereq

doom/libdoom.a:
	@{ cd doom && mk }