shithub: purgatorio

ref: 06fac9885c8349fe2e06ffdd36817f65adc0fd66
dir: /emu/FreeBSD/mkfile/

View raw version
CONF=emu			#default configuration
CONFLIST=emu
CLEANCONFLIST=

SYSTARG=FreeBSD
OBJTYPE=386
<../../mkconfig
SYSTARG=FreeBSD
OBJTYPE=386

INSTALLDIR=$ROOT/$SYSTARG/$OBJTYPE/bin	#path of directory where kernel is installed

X11LIBS= -lX11 -lXext

<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	#set vars based on target system

<| $SHELLNAME ../port/mkdevlist $CONF	#sets $IP, $DEVS, $PORT, $LIBS

OBJ=\
	asm-$OBJTYPE.$O\
	os.$O\
	$CONF.root.$O\
	lock.$O\
	$DEVS\
	$PORT\

HFILES=\

CFLAGS='-DROOT="'$ROOT'"' -DEMU -I. -I../port -I$ROOT/$SYSTARG/$OBJTYPE/include -I$ROOT/include -I$ROOT/libinterp $CTHREADFLAGS $CFLAGS $EMUOPTIONS
SYSLIBS= -lm $X11LIBS
KERNDATE=`{$NDATE}

default:V:	$O.$CONF

<../port/portmkfile

$O.$CONF:	$OBJ $CONF.c $CONF.root.h $LIBFILES
	$CC $CFLAGS '-DKERNDATE='$KERNDATE $CONF.c
	$LD $LDFLAGS -o $target $OBJ $CONF.$O $LIBFILES $SYSLIBS

install:V: $O.$CONF
	cp $O.$CONF $INSTALLDIR/$CONF

devfs.$O:	../port/devfs-posix.c