#master boot record include ../Makefile.common .PHONY: all clean STAGE2=stage2.bin MP=mp.bin CONFIG=config.inc ASM_SOURCES=$(wildcard *.asm) all: $(STAGE2) $(MP) $(CONFIG): ../kernel/config.h cat ../kernel/config.h | grep "^#define" | sed -e "s/#/%/" -e "s/\/\/.*//" > $@ $(STAGE2): $(ASM_SOURCES) $(CONFIG) $(MP): $(ASM_SOURCES) clean: -rm $(STAGE2) $(MP) $(CONFIG)