## -----------------------------------------------------------------------
##  Configuration

# these should realy be set in the master make file

#list = -l../kernel.lst
#debug = -g

## -----------------------------------------------------------------------
##  Variables

flags = $(debug) $(list) -felf

includes = \
	loops.1 memory.1 stack.1 logic.1 \
	math.1 exec.1 compile.1 io.1

kernel: kernel.o 
	ld -o../kernel.com ../kernel.o  
	@ls -al ../kernel.com;strip -R .comment ../kernel.com;ls -al ../kernel.com

kernel.o: isforth.asm $(includes) Makefile syscalls.1
	nasm $(flags) isforth.asm -o ../kernel.o

linux:
	cd .. && make linux

freebsd:
	cd .. && make freebsd

## =======================================================================
