
CC		:= d:/gnu/bin/gcc.ttp
CFLAGS	:= -Wall -O2 -fno-defer-pop -mint -s
LD		:= d:/gnu/bin/gcc.ttp
LDFLAGS	:= -mint -D__GNUC__
AS		:= d:/gnu/bin/gcc.ttp -c

bootstra.ttp: boot_asm.o bootstra.o
	$(LD) $(LDFLAGS) -o $@ $^
	prgflags 7 7 $@
	cp $@ d:/linux

bootstra.o: bootstra.c bootinfo.h

gen_nlis.o: gen_nlis.c

boot_asm.o: boot_asm.S

%.s: %.c
	$(CC) $(CFLAGS) -S $^ -o $@

