SubDir HAIKU_TOP src bin writembr ; UsePrivateHeaders shared storage ; Application writembr : writembr.cpp : be $(TARGET_LIBSUPC+++) $(TARGET_LIBSTDC++) ; # Assemble the MBR code, and convert it into a header file rule AssembleNasmBin object : source { SEARCH on $(source) = $(SUBDIR) ; MakeLocateDebug $(object) ; Depends $(object) : $(source) ; } actions AssembleNasmBin { $(HAIKU_NASM) -f bin -O5 -o $(1) $(2) } AssembleNasmBin [ FGristFiles mbr.bin ] : mbr.S ; DataFileToSourceFile [ FGristFiles MBR.h ] : [ FGristFiles mbr.bin ] : kMBR : kMBRSize ;