AS = as86 LD = ld86 CC = bcc CFLAGS = -0 LDFLAGS = -0 ##-M .SUFFIXES: .S .o .S.o: $(AS) -o $@ $< all: display.bin README.FreeBSD # The .com file is only to shortcut the development cycles when # modifying something, you won't have to reboot pcemu with the # new image over and over again. # #all: display.com display.com: display.o text.o crt0.o $(LD) $(LDFLAGS) -T 0x100 -o display.tmp crt0.o display.o text.o dd if=display.tmp of=$@ ibs=32 skip=1 rm -f display.tmp display.bin: display.o text.o lcrt0.o xcrt0.o $(LD) $(LDFLAGS) -T 0x7c00 -o display.tmp \ lcrt0.o display.o text.o xcrt0.o dd if=display.tmp of=$@ ibs=32 skip=1 obs=720k conv=osync rm -f display.tmp # o expand the tabs # o translate german ISO characters into IBM437 # o finally convert all this into assembler .ascii/.byte pseudoinstr's # text.S: help.txt txt2asm.perl expand < help.txt |\ tr '\344\366\374\304\326\334\337' '\204\224\201\216\231\232\341' |\ perl txt2asm.perl > $@ # maintain the README.FreeBSD from the help.txt # looks magic, 'eh? :^) # The readme consists of everything from section 1 up to before the # headline of section 3. The highlighting characters will be removed. # # If you've never been using Perl before, don't worry. Let the lines # below stand as they do. :-) README.FreeBSD: help.txt Makefile perl -e 'print "This is an excerpt of what you can see with";\ print " the standalone \"system\".\n -- J\366rg\n\n\n";\ while(<>) {last if /^[\001-\010\013-\037]1\./;}\ do {tr[\001-\010\013-\037]//d; print;}\ while(($$_=<>) && !m/^[\001-\010\013-\037]3\./);' \ < help.txt > $@ reallyclean: clean rm -f display.bin README.FreeBSD clean: rm -f *.tmp *~ *.core *.o *.s display.com text.S pack: all clean rm -f ../../../files/bootstrapper.uu ../../../files/README.FreeBSD gzip --best --force display.bin uuencode display.bin.gz display.bin.gz > ../../../files/bootstrapper.uu cp -p README.FreeBSD ../../../files/README.FreeBSD rm -f display.bin.gz README.FreeBSD unpack: rm -f display.bin README.FreeBSD uudecode ${FILESDIR}/bootstrapper.uu gunzip --force display.bin.gz cp -p ${FILESDIR}/README.FreeBSD README.FreeBSD