shithub: riscv

ref: 29a53a52fdc3f8fc9af3d19d0253ba33b1efccba
dir: /sys/src/boot/alphapc/mkfile/

View raw version
objtype=alpha
</$objtype/mkfile

TARGET=bootalphapc
OBJ=\
	l.$O\
	main.$O\
	conf.$O\
	cons.$O\
	exec.$O\
	bootp.$O\
	memory.$O\
	mmu.$O\
	print.$O\

HFILES=\
	u.h\
	mem.h\
	conf.h\
	dat.h\
	fns.h\
	lib.h\
	ip.h\

loadaddr = 0x20000020

$TARGET:	$OBJ
	$LD -o $target -l -R8 -H3 -T$loadaddr $prereq -lc

install:V: $TARGET
	cp $TARGET /$objtype

clean nuke:V:
	rm -f *.$O $TARGET

%.$O:	%.s
	$AS $stem.s

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O: $HFILES