ando.o:	ando.asm
#	nasm -f elf32 -g -F stabs ando.asm
	nasm -f elf32 ando.asm

ando:	ando.o
	ld -nostdlib -s -m elf_i386 -o ando ando.o
	ls -l ando

%.o:	%.asm
	nasm $< -f elf64 -o $@

%:	%.o
	$(LD) -nostdlib -s -static $< -o $@

tinyecho:	tinyecho.o
	$(LD) -nostdlib -s -static $< -o $@
	ls -l $@

tinyecho64:	tinyecho64.o
	$(LD) -nostdlib -s -static $< -o $@
	ls -l $@

teensyecho64:	teensyecho64.o
	$(LD) -nostdlib -s -static $< -o $@
	ls -l $@

42:	42.o
#	$(LD) -nostdlib -s -static $< -o $@
	$(LD) -nostdlib -static $< -o $@
	ls -l $@

clean:
	rm tinyecho64 tinyecho64.o || true
	rm 42 42.o || true
