
DEFINES += -DCONTINUATIONS -D__ELF__ -Di386 -DOTOP -DOTOP_LINUX_MAPS

objfiles := main.o otop.o pmap.o child.o pcb.o puppeteer.o \
	$(filter-out cons.o chario.o printf.o putchar.o,$(objfiles))
vpath %.c $(srcdir)/otop

# Our include files are here; make sure they PRECEDE the generic ones.
INCLUDES := -Iotop -I$(sysdep)/otop -I$(sysdep)/include -I$(sysdep) \
	$(INCLUDES)

CFLAGS += -g

kernel: otop/myldscript

LD_FOR_KERNEL := $(CC) -Wl,-T,otop/myldscript

otop/myldscript: $(srcdir)/otop/write_ld_script
	cd otop && $(MAKE) myldscript
