# # bootflop.mk # # This file is subject to the terms and conditions of the GNU General Public # License. See the file "COPYING" in the main directory of this archive # for more details. # # Copyright (C) 1994 by Linus Torvalds # Copyright (C) 2002 by Randy Dunlap # Uses "build" program from linux/arch/i386/boot/tools/ . # Using "build" is optional, only needed to change the boot device # from the default of 0x81 (/dev/hdb) to some other device. TOPDIR = /usr/src/linux bootflop: bootflop.o $(LD) -Ttext 0x0 -s --oformat binary -o $@ $< bootflop.o: bootflop.s $(AS) -a=bootflop.lst -o $@ $< bootflop.s: bootflop.S $(CPP) $(CPPFLAGS) -traditional $< -o $@ tools/build: tools/build.c $(HOSTCC) $(HOSTCFLAGS) -o $@ $< -I$(TOPDIR)/include clean: rm -f tools/build rm -f bootflop