GENSYS = Linux

all: bootsect setup

% : %.asm
	nasm -f bin $<

ifeq ($(GENSYS),DOS)
clean:
	@del *.bak
	@del bootsect
	@del setup
else
clean:
	rm *.bak *~ bootsect setup
endif

